標籤:style blog http io color os ar 使用 sp
3.6. 叢集管理命令3.6.1. RAC的啟動與關閉
oracle rac預設會開機自啟動,如需維護時可使用以下命令: |
關閉: crsctl stop cluster 停止本節點叢集服務 crsctl stop cluster –all 停止所有節點服務 開啟: crsctl start cluster 開啟本節點叢集服務 crsctl stop cluster –all 開啟所有節點服務 註:以上命令需以 root使用者執行 |
3.6.2.RAC檢查健全狀態
以grid 使用者運行 |
[[email protected] ~]$ crsctl check cluster CRS-4537: Cluster Ready Services is online CRS-4529: Cluster Synchronization Services is online CRS-4533: Event Manager is online |
3.6.3.禁止資料庫啟動,停止資料庫
以grid 使用者運行:prod為安裝時所定義的全域服務名 |
[[email protected] ~]$ srvctl disable database -d prod [[email protected] ~]$ srvctl stop database -d prod |
3.6.4.禁止LISTNER的啟動,停止所有節點LISTENER
以grid 使用者運行 |
[[email protected] ~]$ srvctl disable listener [[email protected] ~]$ srvctl stop listener |
3.6.5.Database檢查例狀態
以grid 使用者運行 |
[[email protected] ~]$ srvctl status database -d prod Instance prod1 is running on node linuxrac1 Instance prod2 is running on node linuxrac2 |
3.6.6.檢查節點應用狀態及配置
以oracle 使用者運行 |
[[email protected] ~]$ srvctl status nodeapps VIP linuxrac1-vip is enabled VIP linuxrac1-vip is running on node: linuxrac1 VIP linuxrac2-vip is enabled VIP linuxrac2-vip is running on node: linuxrac2 Network is enabled Network is running on node: linuxrac1 Network is running on node: linuxrac2 GSD is disabled GSD is not running on node: linuxrac1 GSD is not running on node: linuxrac2 ONS is enabled ONS daemon is running on node: linuxrac1 ONS daemon is running on node: linuxrac2 eONS is enabled eONS daemon is running on node: linuxrac1 eONS daemon is running on node: linuxrac2 [[email protected] ~]$ srvctl config nodeapps -a -g -s -l -l option has been deprecated and will be ignored. VIP exists.:linuxrac1 VIP exists.: /linuxrac1-vip/10.10.97.181/255.255.255.0/eth0 VIP exists.:linuxrac2 VIP exists.: /linuxrac2-vip/10.10.97.183/255.255.255.0/eth0 GSD exists. ONS daemon exists. Local port 6100, remote port 6200 Name: LISTENER Network: 1, Owner: grid Home: <CRS home> /u01/app/11.2.0/grid on node(s) linuxrac2,linuxrac1 End points: TCP:1521 |
3.6.7.查看資料庫配置
以oracle 使用者運行 |
[[email protected] ~]$ srvctl config database -d prod -a Database unique name: prod Database name: prod Oracle home: /u01/app/oracle/product/11.2.0/db_1 Oracle user: oracle Spfile: +DATA/prod/spfileprod.ora Domain: Start options: open Stop options: immediate Database role: PRIMARY Management policy: AUTOMATIC Server pools: prod Database instances: prod1,prod2 Disk Groups: DATA,FRA Services: Database is enabled Database is administrator managed |
3.6.8.檢查 ASM狀態及配置
以oracle 使用者運行 |
[[email protected] ~]$ srvctl status asm ASM is running on linuxrac1,linuxrac2 [[email protected] ~]$ srvctl config asm -a ASM home: /u01/app/11.2.0/grid ASM listener: LISTENER ASM is enabled. |
3.6.9.檢查 TNS的狀態及配置
以oracle 使用者運行 |
[[email protected] ~]$ srvctl status listener Listener LISTENER is enabled Listener LISTENER is running on node(s): linuxrac1,linuxrac2 [[email protected] ~]$ srvctl config listener -a Name: LISTENER Network: 1, Owner: grid Home: <CRS home> /u01/app/11.2.0/grid on node(s) linuxrac2,linuxrac1 End points: TCP:1521 |
3.6.10.檢查 SCAN 的狀態及配置
以oracle 使用者運行 |
[[email protected] ~]$ srvctl status scan SCAN VIP scan1 is enabled SCAN VIP scan1 is running on node linuxrac1 [[email protected] ~]$ srvctl config scan SCAN name: linuxrac-scan, Network: 1/10.10.97.0/255.255.255.0/eth0 SCAN VIP name: scan1, IP: /linuxrac-scan/10.10.97.193 |
3.6.11.檢查 VIP的狀態及配置
以oracle 使用者運行 |
[[email protected] ~]$ srvctl status vip -n linuxrac1 VIP linuxrac1-vip is enabled VIP linuxrac1-vip is running on node: linuxrac1 [[email protected] ~]$ srvctl status vip -n linuxrac2 VIP linuxrac2-vip is enabled VIP linuxrac2-vip is running on node: linuxrac2 [[email protected] ~]$ srvctl config vip -n linuxrac1 VIP exists.:linuxrac1 VIP exists.: /linuxrac1-vip/10.10.97.181/255.255.255.0/eth0 [[email protected] ~]$ srvctl config vip -n linuxrac2 VIP exists.:linuxrac2 VIP exists.: /linuxrac2-vip/10.10.97.183/255.255.255.0/eth0 |
基於CentOS與VmwareStation10搭建Oracle11G RAC 64叢集環境所有連結:
基於CentOS與VmwareStation10搭建Oracle11G RAC 64叢集環境:1.資源準備
http://www.cnblogs.com/HondaHsu/p/4046352.html
基於CentOS與VmwareStation10搭建Oracle11G RAC 64叢集環境:2.搭建環境-2.1建立虛擬機器
http://www.cnblogs.com/HondaHsu/p/4046378.html
基於CentOS與VmwareStation10搭建Oracle11G RAC 64叢集環境:2.搭建環境-2.2安裝作業系統CentOS5.4
http://www.cnblogs.com/HondaHsu/p/4046384.html
基於CentOS與VmwareStation10搭建Oracle11G RAC 64叢集環境:2.搭建環境-2.3配置共用磁碟
http://www.cnblogs.com/HondaHsu/p/4046389.html
基於CentOS與VmwareStation10搭建Oracle11G RAC 64叢集環境:2.搭建環境-2.4. 安裝JDK
http://www.cnblogs.com/HondaHsu/p/4046430.html
基於CentOS與VmwareStation10搭建Oracle11G RAC 64叢集環境:2.搭建環境-2.5. 配置網路
http://www.cnblogs.com/HondaHsu/p/4046443.html
基於CentOS與VmwareStation10搭建Oracle11G RAC 64叢集環境:2.搭建環境-2.6. 安裝Oracle所依賴的必要包
http://www.cnblogs.com/HondaHsu/p/4054216.html
基於CentOS與VmwareStation10搭建Oracle11G RAC 64叢集環境:2.搭建環境-2.7. 配置資源與參數
http://www.cnblogs.com/HondaHsu/p/4054238.html
基於CentOS與VmwareStation10搭建Oracle11G RAC 64叢集環境:2.搭建環境-2.8. 配置使用者環境
http://www.cnblogs.com/HondaHsu/p/4054259.html
基於CentOS與VmwareStation10搭建Oracle11G RAC 64叢集環境:2.搭建環境-2.9. 配置使用者等效性(可選項)
http://www.cnblogs.com/HondaHsu/p/4054277.html
基於CentOS與VmwareStation10搭建Oracle11G RAC 64叢集環境:2.搭建環境-2.10.配置使用者NTF服務
http://www.cnblogs.com/HondaHsu/p/4054333.html
基於CentOS與VmwareStation10搭建Oracle11G RAC 64叢集環境:3.安裝Oracle RAC-3.1.安裝並配置ASM驅動
http://www.cnblogs.com/HondaHsu/p/4054367.html
基於CentOS與VmwareStation10搭建Oracle11G RAC 64叢集環境:3.安裝Oracle RAC-3.2.安裝 cvuqdisk 軟體包
http://www.cnblogs.com/HondaHsu/p/4054395.html
基於CentOS與VmwareStation10搭建Oracle11G RAC 64叢集環境:3.安裝Oracle RAC-3.3.安裝前檢查
http://www.cnblogs.com/HondaHsu/p/4054481.html
基於CentOS與VmwareStation10搭建Oracle11G RAC 64叢集環境:3.安裝Oracle RAC-3.4.安裝Grid Infrastructure
http://www.cnblogs.com/HondaHsu/p/4054518.html
基於CentOS與VmwareStation10搭建Oracle11G RAC 64叢集環境:3.安裝Oracle RAC-3.5.安裝oracle11gr2 database 軟體與建立資料庫
http://www.cnblogs.com/HondaHsu/p/4054586.html
基於CentOS與VmwareStation10搭建Oracle11G RAC 64叢集環境:3.安裝Oracle RAC-3.6.叢集管理命令
http://www.cnblogs.com/HondaHsu/p/4054635.html
基於CentOS與VmwareStation10搭建Oracle11G RAC 64叢集環境:3.安裝Oracle RAC-3.6.叢集管理命令