Oracle10gRAC crs_stat 工具用法
Oracle10gRAC提供一個工具crs_stat可以用以檢視RAC中各資源狀態,該工具主要的常用用法如下:
1.透過-h引數可以得到系統提示
bash-2.05$ crs_stat -h
Usage: crs_stat [resource_name [...]] [-v] [-l] [-q] [-c cluster_member]
crs_stat [resource_name [...]] -t [-v] [-q] [-c cluster_member]
crs_stat -p [resource_name [...]] [-q]
crs_stat [-a] application -g
crs_stat [-a] application -r [-c cluster_member]
crs_stat -f [resource_name [...]] [-q] [-c cluster_member]
crs_stat -ls [resource_name [...]] [-q]
2.透過crs_stat -t 檢視各種資源的狀態
datadb1#[/]crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....B1.lsnr application ONLINE ONLINE datadb1
ora....db1.gsd application ONLINE ONLINE datadb1
ora....db1.ons application ONLINE ONLINE datadb1
ora....db1.vip application ONLINE ONLINE datadb1
ora....B2.lsnr application ONLINE ONLINE datadb2
ora....db2.gsd application ONLINE ONLINE datadb2
ora....db2.ons application ONLINE ONLINE datadb2
ora....db2.vip application ONLINE ONLINE datadb2
ora.gzdcdb.db application ONLINE ONLINE datadb1
ora....c1.inst application ONLINE ONLINE datadb1
ora....c2.inst application ONLINE ONLINE datadb2
ora....dcdb.cs application ONLINE ONLINE datadb2
ora....dc1.srv application ONLINE ONLINE datadb1
ora....dc2.srv application ONLINE ONLINE datadb2
3.透過ls命令檢視RAC中各資源
bash-2.05$ crs_stat -ls
Name Owner Primary PrivGrp Permission
-----------------------------------------------------------------
ora....C1.lsnr oracle dba rwxrwxr--
ora....ac1.gsd oracle dba rwxr-xr--
ora....ac1.ons oracle dba rwxr-xr--
ora....ac1.vip root dba rwxr-xr--
ora....C2.lsnr oracle dba rwxrwxr--
ora....ac2.gsd oracle dba rwxr-xr--
ora....ac2.ons oracle dba rwxr-xr--
ora....ac2.vip root dba rwxr-xr--
ora.eygle.db oracle dba rwxrwxr--
ora....ygle.cs oracle dba rwxrwxr--
ora....le1.srv oracle dba rwxrwxr--
ora....le2.srv oracle dba rwxrwxr--
ora....e1.inst oracle dba rwxrwxr--
ora....e2.inst oracle dba rwxrwxr--
3.直接使用crs_stat工具列出所有資源的具體資訊
bash-2.05$ crs_stat
NAME=ora.db210-rac1.LISTENER_DB210-RAC1.lsnr
TYPE=application
TARGET=ONLINE
STATE=ONLINE on db210-rac1NAME=ora.db210-rac1.gsd
TYPE=application
TARGET=ONLINE
STATE=ONLINE on db210-rac1NAME=ora.db210-rac1.ons
TYPE=application
TARGET=ONLINE
STATE=ONLINE on db210-rac1NAME=ora.db210-rac1.vip
TYPE=application
TARGET=ONLINE
STATE=ONLINE on db210-rac1NAME=ora.db210-rac2.LISTENER_DB210-RAC2.lsnr
TYPE=application
TARGET=ONLINE
STATE=ONLINE on db210-rac2NAME=ora.db210-rac2.gsd
TYPE=application
TARGET=ONLINE
STATE=ONLINE on db210-rac2NAME=ora.db210-rac2.ons
TYPE=application
TARGET=ONLINE
STATE=ONLINE on db210-rac2NAME=ora.db210-rac2.vip
TYPE=application
TARGET=ONLINE
STATE=ONLINE on db210-rac2NAME=ora.eygle.db
TYPE=application
TARGET=ONLINE
STATE=ONLINE on db210-rac1NAME=ora.eygle.eygle.cs
TYPE=application
TARGET=OFFLINE
STATE=OFFLINENAME=ora.eygle.eygle.eygle1.srv
TYPE=application
TARGET=OFFLINE
STATE=OFFLINENAME=ora.eygle.eygle.eygle2.srv
TYPE=application
TARGET=OFFLINE
STATE=OFFLINENAME=ora.eygle.eygle1.inst
TYPE=application
TARGET=ONLINE
STATE=ONLINE on db210-rac1NAME=ora.eygle.eygle2.inst
TYPE=application
TARGET=ONLINE
STATE=ONLINE on db210-rac2
4.檢視具體資源的狀態
bash-2.05$ crs_stat -p ora.db210-rac2.vip
NAME=ora.db210-rac2.vip
TYPE=application
ACTION_SCRIPT=/opt/oracle/product/10.2.0/Crs10g/bin/racgwrap
ACTIVE_PLACEMENT=1
AUTO_START=1
CHECK_INTERVAL=60
DESCRIPTION=CRS application for VIP on a node
FAILOVER_DELAY=0
FAILURE_INTERVAL=0
FAILURE_THRESHOLD=0
HOSTING_MEMBERS=db210-rac2
OPTIONAL_RESOURCES=
PLACEMENT=favored
REQUIRED_RESOURCES=
RESTART_ATTEMPTS=0
SCRIPT_TIMEOUT=60
START_TIMEOUT=0
STOP_TIMEOUT=0
UPTIME_THRESHOLD=7d
USR_ORA_ALERT_NAME=
USR_ORA_CHECK_TIMEOUT=0
USR_ORA_CONNECT_STR=/ as sysdba
USR_ORA_DEBUG=0
USR_ORA_DISCONNECT=false
USR_ORA_FLAGS=
USR_ORA_IF=bge0
USR_ORA_INST_NOT_SHUTDOWN=
USR_ORA_LANG=
USR_ORA_NETMASK=255.255.255.0
USR_ORA_OPEN_MODE=
USR_ORA_OPI=false
USR_ORA_PFILE=
USR_ORA_PRECONNECT=none
USR_ORA_SRV=
USR_ORA_START_TIMEOUT=0
USR_ORA_STOP_MODE=immediate
USR_ORA_STOP_TIMEOUT=0
USR_ORA_VIP=172.16.19.21
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-487265/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oradim工具的用法
- oradim 工具的用法
- Oracle10gRAC在Linux AS5.3上的安裝配置OracleLinux
- 抓包工具tcpdump用法說明TCP
- geogebra幾何畫圖工具用法
- MySQL的mysqldump工具的基本用法MySql
- tkprof命令列工具用法小結命令列
- 硬碟測試工具fio用法總結硬碟
- INFORMIX長事務及onstat工具用法ORM
- 關於SHOW_SPACE()工具的用法
- 介紹一個自己寫的crs_stat指令碼指令碼
- 解決crs_stat狀態為UNKNOWN問題
- 【RAC】如何讓Oracle RAC crs_stat 命令顯示完整Oracle
- 處理crs_stat -t顯示host列為空
- Python pip(管理模組工具)基礎用法Python
- MiniProfiler效能分析工具— .Net Core中用法
- Chrome 開發者工具 performance 標籤頁的用法ChromeORM
- Apache工具類ToStringBuilder用法簡介ApacheUI
- 關於SHOW_SPACE()工具的用法(轉)
- RAC crs_stat unknown資源狀態處理(ZT)
- 處理crs_stat -t狀態unknown一例
- Pandas資料視覺化工具——Seaborn用法整理視覺化
- oracle 10g awr效能收集工具的用法Oracle 10g
- Oracle 11g RAC crs_stat 命令結果完整顯示Oracle
- crs_stat -v 檢視crs 各application 配置狀態資訊APP
- crs_stat -t CRS-0184: Cannot communicate with the CRS daemon
- node包管理工具npm的更多用法NPM
- 很棒的遠端執行工具psexec的用法
- xmlstarlet toolkit 指令碼操作xml的好工具, 用法心得XML指令碼
- 如何讓crs_stat命令結果中的name列完全顯示
- 解決crs_stat -t看到資源為UNKNOWN的情況
- oracle 12c grid 已經廢棄crs_stat這個命令Oracle
- 效能工具perf的用法以及如何繪製效能火焰圖
- tkprof命令列工具用法小結,獻給初學者朋友命令列
- mssql bcp 工具用法和檢視角色儲存過程SQL儲存過程
- Web應用程式測試的工具selenium用法詳解Web
- 安裝oracle10gRAC在node2節點上執行root.sh失敗的問題Oracle
- 短小精悍之 Redis 命令列工具有趣的罕見用法Redis命令列