天天看點

oracle rac 維護經驗,Oracle RAC日常基本維護指令

歡迎進入Oracle社群論壇,與200萬技術人員互動交流 >>進入 所有執行個體和服務的狀态 $ srvctl status database -d orcl Instance orcl1 is running on node linux1 Instance orcl2 is running on node linux2 單個執行個體的狀态 $ srvctl status instance -d orcl

歡迎進入Oracle社群論壇,與200萬技術人員互動交流 >>進入

所有執行個體和服務的狀态

$ srvctl status database -d orcl

Instance orcl1 is running on node linux1

Instance orcl2 is running on node linux2

單個執行個體的狀态

$ srvctl status instance -d orcl -i orcl2

Instance orcl2 is running on node linux2

在資料庫全局命名服務的狀态

$ srvctl status service -d orcl -s orcltest

Service orcltest is running on instance(s) orcl2, orcl1

特定節點上節點應用程式的狀态

$ srvctl status nodeapps -n linux1

VIP is running on node: linux1

GSD is running on node: linux1

Listener is running on node: linux1

ONS daemon is running on node: linux1

ASM 執行個體的狀态

$ srvctl status asm -n linux1

ASM instance +ASM1 is running on node linux1.

列出配置的所有資料庫

$ srvctl config database

orcl

顯示 RAC 資料庫的配置

$ srvctl config database -d orcl

linux1 orcl1 /u01/app/oracle/product/10.2.0/db_1

linux2 orcl2 /u01/app/oracle/product/10.2.0/db_1

顯示指定叢集資料庫的所有服務

$ srvctl config service -d orcl

orcltest PREF: orcl2 orcl1 AVAIL:

顯示節點應用程式的配置 ―(VIP、GSD、ONS、監聽器)

$ srvctl config nodeapps -n linux1 -a -g -s -l

VIP exists.: /linux1-vip/192.168.1.200/255.255.255.0/eth0:eth1

GSD exists.

ONS daemon exists.

Listener exists.

顯示 ASM 執行個體的配置

$ srvctl config asm -n linux1

+ASM1 /u01/app/oracle/product/10.2.0/db_1

叢集中所有正在運作的執行個體

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;

INST_ID INST_NO INST_NAME PAR STATUS DB_STATUS STATE HOST

-------- -------- ---------- --- ------- ------------ --------- -------

1 1 orcl1 YES OPEN ACTIVE NORMAL rac1

2 2 orcl2 YES OPEN ACTIVE NORMAL rac2

[1] [2]

oracle rac 維護經驗,Oracle RAC日常基本維護指令

本文原創釋出php中文網,轉載請注明出處,感謝您的尊重!