Oracle 11g RAC 常用命令
1.檢查叢集狀態
[grid@rac1 ~]$ crsctl check cluster
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
2.檢查所有例項狀態
[grid@rac1 ~]$ srvctl status database -d orcl
Instance orcl1 is running on node rac1
Instance orcl2 is running on node rac2
3.節點應用程式狀態
[grid@rac1 ~]$ srvctl status nodeapps
VIP rac1-vip is enabled
VIP rac1-vip is running on node: rac1
VIP rac2-vip is enabled
VIP rac2-vip is running on node: rac2
Network is enabled
Network is running on node: rac1
Network is running on node: rac2
GSD is disabled
GSD is not running on node: rac1
GSD is not running on node: rac2
ONS is enabled
ONS daemon is running on node: rac1
ONS daemon is running on node: rac2
4.資料庫配置
[grid@rac1 ~]$ srvctl config database -d orcl -a
Database unique name: orcl
Database name: orcl
Oracle home: /u01/app/oracle/product/11.2.0/db_1
Oracle user: oracle
Spfile: +DATADG/orcl/spfileorcl.ora
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: orcl
Database instances: orcl1,orcl2
Disk Groups: DATADG,SYSTEMDG
Mount point paths:
Services:
Type: RAC
Database is enabled
Database is administrator managed
5.ASM狀態及配置
[grid@rac1 ~]$ srvctl status asm
ASM is running on rac2,rac1
[grid@rac1 ~]$ srvctl config asm -a
ASM home: /u01/app/11.2.0/grid
ASM listener: LISTENER
ASM is enabled.
6.TNS監聽狀態及配置
[grid@rac1 ~]$ srvctl status listener
Listener LISTENER is enabled
Listener LISTENER is running on node(s): rac2,rac1
[grid@rac1 ~]$ srvctl config listener -a
Name: LISTENER
Network: 1, Owner: grid
Home: <CRS home>
/u01/app/11.2.0/grid on node(s) rac1,rac2
End points: TCP:1521
7.SCAN狀態及配置
[grid@rac1 ~]$ srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node rac1
[grid@rac1 ~]$ srvctl config scan
SCAN name: rac-cluster-scan, Network: 1/192.168.8.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /rac-cluster-scan/192.168.8.225
8.VIP各個節點的狀態及配置
[grid@rac1 ~]$ srvctl status vip -n rac1
VIP rac1-vip is enabled
VIP rac1-vip is running on node: rac1
[grid@rac1 ~]$ srvctl status vip -n rac2
VIP rac2-vip is enabled
VIP rac2-vip is running on node: rac2
[grid@rac1 ~]$ srvctl config vip -n rac1
VIP exists: /rac1-vip/192.168.8.222/192.168.8.0/255.255.255.0/eth0, hosting node rac1
[grid@rac1 ~]$ srvctl config vip -n rac2
VIP exists: /rac2-vip/192.168.8.224/192.168.8.0/255.255.255.0/eth0, hosting node rac2
10.驗證所有叢集節點間的時鐘同步
[grid@rac1 ~]$ cluvfy comp clocksync -verbose
Verifying Clock Synchronization across the cluster nodes
Checking if Clusterware is installed on all nodes...
Check of Clusterware install passed
Checking if CTSS Resource is running on all nodes...
Check: CTSS Resource running on all nodes
Node Name Status
------------------------------------ ------------------------
rac1 passed
Result: CTSS resource check passed
Querying CTSS for time offset on all nodes...
Result: Query of CTSS for time offset passed
Check CTSS state started...
Check: CTSS state
Node Name State
------------------------------------ ------------------------
rac1 Active
CTSS is in Active state. Proceeding with check of clock time offsets on all nodes...
Reference Time Offset Limit: 1000.0 msecs
Check: Reference Time Offset
Node Name Time Offset Status
------------ ------------------------ ------------------------
rac1 0.0 passed
Time offset is within the specified limits on the following set of nodes:
"[rac1]"
Result: Check of clock time offsets passed
Oracle Cluster Time Synchronization Services check passed
Verification of Clock Synchronization across the cluster nodes was successful.
[grid@rac1 ~]$ crsctl check cluster
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
2.檢查所有例項狀態
[grid@rac1 ~]$ srvctl status database -d orcl
Instance orcl1 is running on node rac1
Instance orcl2 is running on node rac2
3.節點應用程式狀態
[grid@rac1 ~]$ srvctl status nodeapps
VIP rac1-vip is enabled
VIP rac1-vip is running on node: rac1
VIP rac2-vip is enabled
VIP rac2-vip is running on node: rac2
Network is enabled
Network is running on node: rac1
Network is running on node: rac2
GSD is disabled
GSD is not running on node: rac1
GSD is not running on node: rac2
ONS is enabled
ONS daemon is running on node: rac1
ONS daemon is running on node: rac2
4.資料庫配置
[grid@rac1 ~]$ srvctl config database -d orcl -a
Database unique name: orcl
Database name: orcl
Oracle home: /u01/app/oracle/product/11.2.0/db_1
Oracle user: oracle
Spfile: +DATADG/orcl/spfileorcl.ora
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: orcl
Database instances: orcl1,orcl2
Disk Groups: DATADG,SYSTEMDG
Mount point paths:
Services:
Type: RAC
Database is enabled
Database is administrator managed
5.ASM狀態及配置
[grid@rac1 ~]$ srvctl status asm
ASM is running on rac2,rac1
[grid@rac1 ~]$ srvctl config asm -a
ASM home: /u01/app/11.2.0/grid
ASM listener: LISTENER
ASM is enabled.
6.TNS監聽狀態及配置
[grid@rac1 ~]$ srvctl status listener
Listener LISTENER is enabled
Listener LISTENER is running on node(s): rac2,rac1
[grid@rac1 ~]$ srvctl config listener -a
Name: LISTENER
Network: 1, Owner: grid
Home: <CRS home>
/u01/app/11.2.0/grid on node(s) rac1,rac2
End points: TCP:1521
7.SCAN狀態及配置
[grid@rac1 ~]$ srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node rac1
[grid@rac1 ~]$ srvctl config scan
SCAN name: rac-cluster-scan, Network: 1/192.168.8.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /rac-cluster-scan/192.168.8.225
8.VIP各個節點的狀態及配置
[grid@rac1 ~]$ srvctl status vip -n rac1
VIP rac1-vip is enabled
VIP rac1-vip is running on node: rac1
[grid@rac1 ~]$ srvctl status vip -n rac2
VIP rac2-vip is enabled
VIP rac2-vip is running on node: rac2
[grid@rac1 ~]$ srvctl config vip -n rac1
VIP exists: /rac1-vip/192.168.8.222/192.168.8.0/255.255.255.0/eth0, hosting node rac1
[grid@rac1 ~]$ srvctl config vip -n rac2
VIP exists: /rac2-vip/192.168.8.224/192.168.8.0/255.255.255.0/eth0, hosting node rac2
10.驗證所有叢集節點間的時鐘同步
[grid@rac1 ~]$ cluvfy comp clocksync -verbose
Verifying Clock Synchronization across the cluster nodes
Checking if Clusterware is installed on all nodes...
Check of Clusterware install passed
Checking if CTSS Resource is running on all nodes...
Check: CTSS Resource running on all nodes
Node Name Status
------------------------------------ ------------------------
rac1 passed
Result: CTSS resource check passed
Querying CTSS for time offset on all nodes...
Result: Query of CTSS for time offset passed
Check CTSS state started...
Check: CTSS state
Node Name State
------------------------------------ ------------------------
rac1 Active
CTSS is in Active state. Proceeding with check of clock time offsets on all nodes...
Reference Time Offset Limit: 1000.0 msecs
Check: Reference Time Offset
Node Name Time Offset Status
------------ ------------------------ ------------------------
rac1 0.0 passed
Time offset is within the specified limits on the following set of nodes:
"[rac1]"
Result: Check of clock time offsets passed
Oracle Cluster Time Synchronization Services check passed
Verification of Clock Synchronization across the cluster nodes was successful.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29812844/viewspace-1988790/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 管理oracle 11g RAC 常用命令Oracle
- (網路資料)管理oracle 11g RAC 常用命令Oracle
- oracle 11g 常用命令Oracle
- 安裝Oracle RAC 11gOracle
- oracle 11G Rac service管理Oracle
- oracle 11g rac 程式理解Oracle
- Oracle 11G RAC CTSS服務Oracle
- Oracle 11g修改RAC SCAN IPOracle
- Oracle 11g Rac清理指令碼Oracle指令碼
- Oracle 11g rac add nodeOracle
- Oracle 11g RAC檔案目錄Oracle
- Oracle 11g r2 racOracle
- oracle10g rac常用命令整理Oracle
- Oracle 11g RAC 監聽日常管理Oracle
- Oracle 11g RAC Silent Install For NFSOracleNFS
- Oracle 11g RAC手動新增serviceOracle
- ORACLE 11g RAC EM手動配置Oracle
- oracle RAC 11G 時間同步策略Oracle
- oracle 11g rac TAF 測試方案Oracle
- oracle 11g rac 修改字符集Oracle
- oracle 11g rac install for linuxOracleLinux
- oracle 11g rac 叢集操作命令Oracle
- Redhat Linux AS 5 + Oracle 11g RACRedhatLinuxOracle
- 總結:ORACLE RAC 常用命令之CRS(1)Oracle
- Oracle 11G RAC叢集安裝(3)——安裝OracleOracle
- rac常用命令
- Oracle 11G RAC ntp時間同步配置Oracle
- Oracle 11g RAC重新新增節點Oracle
- Oracle 11g RAC 如何生成AWR報告?Oracle
- Oracle 11G RAC GRID主要架構Oracle架構
- Oracle 11g RAC生成 AWR 報告方法Oracle
- Oracle 11g RAC修改靜態引數Oracle
- Oracle 11g RAC Data Guard 物理standby 建立Oracle
- ORACLE 11G RAC--日誌路徑Oracle
- oracle 11g rac 靜默解除安裝Oracle
- oracle 11G RAC 建立詳細過程Oracle
- ORACLE 11g RAC時鐘同步問題Oracle
- Oracle 11g RAC 配置單例項 DataGuardOracle單例