檢查節點應用程序狀態
[grid@db
VIP db
VIP db
VIP db
VIP db
Network is enabled
Network is running on node: db
Network is running on node: db
GSD is disabled
GSD is not running on node: db
GSD is not running on node: db
ONS is enabled
ONS daemon is running on node: db
ONS daemon is running on node: db
檢查節點vip狀態及配置
[grid@db
VIP db
VIP db
[grid@db
VIP db
VIP db
[grid@db
VIP exists: /db
[grid@db
VIP exists: /db
檢查節點監聽與監聽配置
[grid@db
Listener LISTENER is enabled
Listener LISTENER is running on node(s)
grid@db
Name: LISTENER
Network:
Home: <CRS home>
/u
End points: TCP:
檢查數據庫實例狀態
[grid@db
Instance dmzdb
Instance dmzdb
[grid@db
Instance dmzdb
Instance dmzdb
數據庫配置
[grid@db
Database unique name: dmzdb
Database name: dmzdb
Oracle home: /u
Oracle user: oracle
Spfile: +DATA/dmzdb/spfiledmzdb
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: dmzdb
Database instances: dmzdb
Disk Groups: DATA
Mount point paths:
Services:
Type: RAC
Database is enabled
Database is administrator managed
asm狀態及配置
[grid@db
ASM is running on db
[grid@db
ASM home: /u
ASM listener: LISTENER
ASM is enabled
scan狀態及配置
[grid@db
SCAN VIP scan
SCAN VIP scan
grid@db
SCAN name: dbscan
SCAN VIP name: scan
停止db
[grid@db
[grid@db
Listener LISTENER is enabled on node(s)
Listener LISTENER is not running on node(s)
停實例db
[grid@db
[grid@db
Instance dmzdb
Instance dmzdb
啟動db
[grid@db
[grid@db
Instance dmzdb
啟動db
[grid@db
[grid@db
Listener LISTENER is enabled on node(s)
Listener LISTENER is running on node(s)
srvctl 查看幫助
[grid@db
The SRVCTL status command displays the current state of the object
Usage: srvctl status database
Usage: srvctl status instance
Usage: srvctl status service
Usage: srvctl status nodeapps
Usage: srvctl status vip {
Usage: srvctl status listener [
Usage: srvctl status asm [
Usage: srvctl status scan [
Usage: srvctl status scan_listener [
Usage: srvctl status srvpool [
Usage: srvctl status server
Usage: srvctl status oc
Usage: srvctl status home
Usage: srvctl status filesystem
Usage: srvctl status diskgroup
Usage: srvctl status cvu [
Usage: srvctl status gns [
For detailed help on each command and object and its options use:
srvctl <command> <object>
[grid@db
The SRVCTL start command starts
Usage: srvctl start database
Usage: srvctl start instance
Usage: srvctl start service
Usage: srvctl start nodeapps [
Usage: srvctl start vip {
Usage: srvctl start asm [
Usage: srvctl start listener [
Usage: srvctl start scan [
Usage: srvctl start scan_listener [
Usage: srvctl start oc
Usage: srvctl start home
Usage: srvctl start filesystem
Usage: srvctl start diskgroup
Usage: srvctl start gns [
Usage: srvctl start cvu [
For detailed help on each command and object and its options use:
srvctl <command> <object>
[grid@db
The SRVCTL stop command stops
Usage: srvctl stop database
Usage: srvctl stop instance
Usage: srvctl stop service
Usage: srvctl stop nodeapps [
Usage: srvctl stop vip {
Usage: srvctl stop asm [
Usage: srvctl stop listener [
Usage: srvctl stop scan [
Usage: srvctl stop scan_listener [
Usage: srvctl stop oc
Usage: srvctl stop home
Usage: srvctl stop filesystem
Usage: srvctl stop diskgroup
Usage: srvctl stop gns [
Usage: srvctl stop cvu [
For detailed help on each command and object and its options use:
srvctl <command> <object>
From:http://tw.wingwit.com/Article/program/Oracle/201311/18697.html