(網路資料)管理oracle 11g RAC 常用命令
1)、檢查叢集狀態:
[grid@rac02 ~]$ crsctl check cluster
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
2)、所有 Oracle 例項 —(資料庫狀態):
[grid@rac02 ~]$ srvctl status database -d racdb
Instance racdb1 is running on node rac01
Instance racdb2 is running on node rac02
3)、檢查單個例項狀態:
[grid@rac02 ~]$ srvctl status instance -d racdb -i racdb1
Instance racdb1 is running on node rac01
4)、節點應用程式狀態:
[grid@rac02 ~]$ srvctl status nodeapps
VIP rac01-vip is enabled
VIP rac01-vip is running on node: rac01
VIP rac02-vip is enabled
VIP rac02-vip is running on node: rac02
Network is enabled
Network is running on node: rac01
Network is running on node: rac02
GSD is disabled
GSD is not running on node: rac01
GSD is not running on node: rac02
ONS is enabled
ONS daemon is running on node: rac01
ONS daemon is running on node: rac02
eONS is enabled
eONS daemon is running on node: rac01
eONS daemon is running on node: rac02
5)、列出所有的配置資料庫:
[grid@rac02 ~]$ srvctl config database
racdb
6)、資料庫配置:
[grid@rac02 ~]$ srvctl config database -d racdb -a
Database unique name: racdb
Database name: racdb
Oracle home: /u01/app/oracle/product/11.2.0/dbhome_1
Oracle user: oracle
Spfile: +RACDB_DATA/racdb/spfileracdb.ora
Domain: xzxj.edu.cn
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: racdb
Database instances: racdb1,racdb2
Disk Groups: RACDB_DATA,FRA
Services:
Database is enabled
Database is administrator managed
7)、ASM狀態以及ASM配置:
[grid@rac02 ~]$ srvctl status asm
ASM is running on rac01,rac02
[grid@rac02 ~]$ srvctl config asm -a
ASM home: /u01/app/11.2.0/grid
ASM listener: LISTENER
ASM is enabled.
8)、TNS監聽器狀態以及配置:
[grid@rac02 ~]$ srvctl status listener
Listener LISTENER is enabled
Listener LISTENER is running on node(s): rac01,rac02
[grid@rac02 ~]$ srvctl config listener -a
Name: LISTENER
Network: 1, Owner: grid
Home: <CRS home>
/u01/app/11.2.0/grid on node(s) rac02,rac01
End points: TCP:1521
9)、SCAN狀態以及配置:
[grid@rac02 ~]$ srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node rac02
[grid@rac02 ~]$ srvctl config scan
SCAN name: rac-scan.xzxj.edu.cn, Network: 1/192.168.1.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /rac-scan.xzxj.edu.cn/192.168.1.55
10)、VIP各個節點的狀態以及配置:
[grid@rac02 ~]$ srvctl status vip -n rac01
VIP rac01-vip is enabled
VIP rac01-vip is running on node: rac01
[grid@rac02 ~]$ srvctl status vip -n rac02
VIP rac02-vip is enabled
VIP rac02-vip is running on node: rac02
[grid@rac02 ~]$ srvctl config vip -n rac01
VIP exists.:rac01
VIP exists.: /rac01-vip/192.168.1.53/255.255.255.0/eth0
[grid@rac02 ~]$ srvctl config vip -n rac02
VIP exists.:rac02
VIP exists.: /rac02-vip/192.168.1.54/255.255.255.0/eth0
11)、節點應用程式配置 —(VIP、GSD、ONS、監聽器)
[grid@rac02 ~]$ srvctl config nodeapps -a -g -s -l
-l option has been deprecated and will be ignored.
VIP exists.:rac01
VIP exists.: /rac01-vip/192.168.1.53/255.255.255.0/eth0
VIP exists.:rac02
VIP exists.: /rac02-vip/192.168.1.54/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) rac02,rac01
End points: TCP:1521
12)、驗證所有叢集節點間的時鐘同步:
[grid@rac02 ~]$ 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
------------------------------------ ------------------------
rac02 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
------------------------------------ ------------------------
rac02 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
------------ ------------------------ ------------------------
rac02 0.0 passed
Time offset is within the specified limits on the following set of nodes:
"[rac02]"
Result: Check of clock time offsets passed
Oracle Cluster Time Synchronization Services check passed
Verification of Clock Synchronization across the cluster nodes was successful.
13)、叢集中所有正在執行的例項 — (SQL):
SELECT inst_id , instance_number inst_no , instance_name inst_name , parallel , status ,
database_status db_status , active_state state , host_name host FROM gv$instance ORDER BY inst_id;
14)、所有資料庫檔案及它們所在的 ASM 磁碟組 — (SQL):
15)、ASM 磁碟卷:
16)、啟動和停止叢集:
以下操作需用root使用者執行。
(1)、在本地伺服器上停止Oracle Clusterware 系統:
[root@rac01 ~]# /u01/app/11.2.0/grid/bin/crsctl stop cluster
注:在執行“crsctl stop cluster”命令之後,如果 Oracle Clusterware 管理的
資源中有任何一個還在執行,則整個命令失敗。使用 -f 選項無條件地停止所有資源並
停止 Oracle Clusterware 系統。
另請注意,可透過指定 -all 選項在叢集中所有伺服器上停止 Oracle Clusterware
系統。如下所示,在rac01和rac02上停止oracle clusterware系統:
[root@rac02 ~]# /u01/app/11.2.0/grid/bin/crsctl stop cluster –all
在本地伺服器上啟動oralce clusterware系統:
[root@rac01 ~]# /u01/app/11.2.0/grid/bin/crsctl start cluster
注:可透過指定 -all 選項在叢集中所有伺服器上啟動 Oracle Clusterware 系統。
[root@rac02 ~]# /u01/app/11.2.0/grid/bin/crsctl start cluster –all
還可以透過列出伺服器(各伺服器之間以空格分隔)在叢集中一個或多個指定的
伺服器上啟動 Oracle Clusterware 系統:
[root@rac01 ~]# /u01/app/11.2.0/grid/bin/crsctl start cluster -n rac01 rac02
使用 SRVCTL 啟動/停止所有例項:
[oracle@rac01 ~]#srvctl stop database -d racdb
[oracle@rac01 ~]#srvctl start database -d racdb
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28211342/viewspace-2129052/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 管理oracle 11g RAC 常用命令Oracle
- Oracle 11g RAC 常用命令Oracle
- oracle 11G Rac service管理Oracle
- 為ORACLE RAC GUARD配置網路——RAC GUARD概念和管理Oracle
- Oracle 11g RAC 監聽日常管理Oracle
- 【RAC】Oracle RAC如何修改心跳網路Oracle
- ORACLE 11G RAC--日誌路徑Oracle
- 使用OEM管理RAC資料庫——RAC管理資料庫
- Oracle 11g rac資料庫字符集轉換Oracle資料庫
- linux-網路管理(常用命令)Linux
- oracle 11g 常用命令Oracle
- AIX 安裝Oracle 11g RAC 記憶體及網路引數說明AIOracle記憶體
- oracle 11g rac更改public的網路卡名稱Oracle
- Oracle RAC Cache Fusion 系列九:Oracle RAC 分散式資源管理(二)Oracle分散式
- Oracle RAC Cache Fusion 系列八:Oracle RAC 分散式資源管理(一)Oracle分散式
- oracle 11g rac 共享儲存壞掉後資料庫恢復Oracle資料庫
- 安裝Oracle RAC 11gOracle
- oracle 11g rac 程式理解Oracle
- Oracle資料庫常用命令Oracle資料庫
- 管理ORACLE RAC GUARD——RAC GUARD概念和管理Oracle
- oracle 管理常用命令Oracle
- 使用srvctl管理RAC資料庫資料庫
- Oracle RAC基本管理Oracle
- Oracle 10g RAC 網路設定Oracle 10g
- Oracle 11G R2 RAC 關閉叢集自啟資料庫Oracle資料庫
- ORACLE RAC的DRM (動態資源管理)Oracle
- Oracle 11g資料庫Oracle資料庫
- 2015.05.15 網路公開課 《Oracle 11G RAC深入探索之RAC和RAC One Node之間的切換》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
- 【Oracle】Oracle 11g 中的自動資料庫維護任務管理Oracle資料庫
- oracle10g rac常用命令整理Oracle
- oracle 10g rac 網路故障處理Oracle 10g
- 多個資料庫是否可以共有一個Oracle 11g RAC例項KG資料庫Oracle