11G RAC 簡單命令
1、檢視叢集狀態:
[root@rac1 ~]# su - grid
[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 yoon
Instance yoon1 is running on node rac1
Instance yoon2 is running on node rac2
3、單例項狀態:
[grid@rac1 ~]$ srvctl status instance -d yoon -i yoon1
Instance yoon1 is running on node rac1
[grid@rac1 ~]$ srvctl status instance -d yoon -i yoon2
Instance yoon2 is running on node rac2
4、node應用程式狀態:
[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
5、所有的配置資料庫:
[grid@rac1 ~]$ srvctl config database
yoon
7、資料庫配置資訊:
[grid@rac1 ~]$ srvctl config database -d yoon -a
Database unique name: yoon
Database name: yoon
Oracle home: /u01/app/oracle/11.2.0/db_1
Oracle user: oracle
Spfile: +DATA/yoon/spfileyoon.ora
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: yoon
Database instances: yoon1,yoon2
Disk Groups: DATA,FLUSH
Mount point paths:
Services:
Type: RAC
Database is enabled
Database is administrator managed
8、ASM狀態:
[grid@rac1 ~]$ srvctl status asm
ASM is running on rac2,rac1
9、ASM配置資訊:
[grid@rac1 ~]$ srvctl config asm -a
ASM home: /u01/app/grid/11.2.0
ASM listener: LISTENER
ASM is enabled.
10、監聽狀態:
[grid@rac1 ~]$ srvctl status listener
Listener LISTENER is enabled
Listener LISTENER is running on node(s): rac2,rac1
11、監聽配置資訊:
[grid@rac1 ~]$ srvctl config listener -a
Name: LISTENER
Network: 1, Owner: grid
Home:
/u01/app/grid/11.2.0 on node(s) rac2,rac1
End points: TCP:1521
12、SCAN狀態:
[grid@rac1 ~]$ srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node rac2
13、SCAN配置資訊:
[grid@rac1 ~]$ srvctl config scan
SCAN name: rac-scan, Network: 1/192.168.1.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /rac-scan/192.168.1.10
14、節點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
15、VIP配置資訊:
[grid@rac1 ~]$ srvctl config vip -n rac1
VIP exists: /rac1-vip/192.168.1.18/192.168.1.0/255.255.255.0/eth0, hosting node rac1
[grid@rac1 ~]$ srvctl config vip -n rac2
VIP exists: /rac2-vip/192.168.1.19/192.168.1.0/255.255.255.0/eth0, hosting node rac2
16、節點應用程式配置系資訊:
[grid@rac1 ~]$ srvctl config nodeapps -a -g -s -l
Warning:-l option has been deprecated and will be ignored.
Network exists: 1/192.168.1.0/255.255.255.0/eth0, type static
VIP exists: /rac1-vip/192.168.1.18/192.168.1.0/255.255.255.0/eth0, hosting node rac1
VIP exists: /rac2-vip/192.168.1.19/192.168.1.0/255.255.255.0/eth0, hosting node rac2
GSD exists
ONS exists: Local port 6100, remote port 6200, EM port 2016
Name: LISTENER
Network: 1, Owner: grid
Home:
/u01/app/grid/11.2.0 on node(s) rac2,rac1
End points: TCP:1521
17、啟動和停止叢集:
[root@rac1 ~]#/u01/app/grid/11.2.0/bin/crsctl stop cluster -all
[root@rac1 ~]#/u01/app/grid/11.2.0/bin/crsctl start cluster -all
[root@rac1 ~]#srvctl stop database -d yoon
[root@rac1 ~]#srvctl start database -d yoon
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28939273/viewspace-1061468/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 11g RAC到單例項OGG同步Oracle單例
- 11g rac新增節點步驟(11g)
- 11G RAC+DG搭建
- 11g rac監聽配置解析
- Oracle 11g RAC Silent Install For NFSOracleNFS
- zookeeper簡單命令
- git簡單命令Git
- Oracle 11g RAC 監聽日常管理Oracle
- rhel7 安裝11g rac
- Oracle 11g RAC手動新增serviceOracle
- 11g rac 等待事件resmgr:cpu quantum事件
- rac新增節點步驟(11g)
- ORACLE 11g RAC日常執行中一些基本啟停等命令總結Oracle
- Oracle 11g RAC重新新增節點Oracle
- 11G RAC檢查各元件狀態元件
- Tuning CPU 100% in Oracle 11g rac-20220215Oracle
- shell簡單命令大全。
- Linux簡單命令(一)Linux
- 簡單使用rpm命令
- docker命令簡單使用Docker
- Oracle 11g RAC SCAN ip的原理及配置Oracle
- oracle 11g rac配置em dbconsole ORA-12514Oracle
- 簡單介紹 ldd 命令
- git stash 命令簡單使用Git
- Oracle 11g RAC自動打GI PSU補丁Oracle
- Oracle 11G RAC叢集安裝(2)——安裝gridOracle
- Oracle 11G RAC叢集安裝(3)——安裝OracleOracle
- rac新增節點容易遇到的問題(11g)
- oracle 11g RAC 安裝前準備指令碼Oracle指令碼
- 11g rac新增節點容易遇到的問題
- oracle 11G RAC的建立(VM虛擬環境)Oracle
- EasyReact的簡單試用及和RAC的對比React
- linux簡單常用命令Linux
- Linux下history命令簡單原理Linux
- LInux簡單安裝和命令Linux
- sed命令簡單使用示例分享
- DB2_簡單命令列DB2命令列
- 11g RAC叢集下agent的作用和說明
- Oracle 11g RAC之HAIP相關問題總結OracleAI