您好,登錄后才能下訂單哦!
目錄
文檔控制 2
一. 數據庫基本狀態和信息 5
二. 數據庫參數信息 5
2.1 常見參數 5
2.2 常見隱含參數 6
三. 數據庫對象和備份信息 6
3.1 數據庫對象信息 6
3.2 失效的對象 6
3.3 大表 TOP10 6
3.4 數據庫備份信息 6
四. 數據庫文件信息 7
4.1 表空間信息 7
4.2 數據文件信息 7
4.3 臨時文件信息 7
4.4 控制文件信息 7
4.5 控制文件限制 7
4.6 日志文件信息 8
4.7 回滾段 8
4.8 歸檔頻率 8
4.9 參數文件目錄 8
4 . 1 0 監聽文件 8
4.11 ASM 信息 9
4.12 OCR 10
4.13 OLR 11
4.14 VOTEDISK 11
4.15 網卡 11
五.數據庫集群信息 11
5.1 查看集群名稱 11
5.2 查看集群狀態 12
5.3 集群資源 12
5.4 查看 CRS 狀態 14
5.5 查看 OHASD 狀態 14
5.6 查看節點信息 14
5.7 查看數據庫名稱 15
5.8 查看 SCAN 15
5.9 查看 LISTENER 16
5.10 查看節點信息 16
六 . 數據庫連接信息 17
七 . 數據庫資源限制 17
八 . 數據庫權限 18
九 . 數據庫高水位 18
十 . 性能 18
10 .1 TOP SQL 信息 18
10 .2 等待事件 19
10.3 數據庫各個時間段負載 19
10.4 查看系統統計信息 19
十 一 . 數據庫日志信息 20
十 二 . 數據庫補丁信息 20
十 三 . 操作系統信息 21
十 四 . 巡檢腳本 21
二.數據庫參數信息
三.數據庫對象和備份信息
4.4控制文件信息
4.6日志文件信息
---listener.ora
---tnsname.ora
---sqlnet.ora
[root@rac01 bin]# ./ocrconfig -showbackup rac01 2020/06/20 18:25:57 /u01/app/11.2.0/grid/cdata/rac-cluster/backup00.ocr rac01 2020/06/20 14:25:53 /u01/app/11.2.0/grid/cdata/rac-cluster/backup01.ocr rac01 2020/05/02 12:37:15 /u01/app/11.2.0/grid/cdata/rac-cluster/backup02.ocr rac01 2020/06/20 14:25:53 /u01/app/11.2.0/grid/cdata/rac-cluster/day.ocr rac01 2020/06/20 14:25:53 /u01/app/11.2.0/grid/cdata/rac-cluster/week.ocr PROT-25: Manual backups for the Oracle Cluster Registry are not available
4.15 網卡
[root@rac01 bin]# ./cemutlo -n
rac-cluster
或
[root@rac01 bin]# ./olsnodes -c
rac-cluster
5.2 查看集群狀態
[root@rac01 bin]# ./crsctl stat res -t
或
[root@rac01 bin]# ./crsctl check crs CRS-4638: Oracle High Availability Services is online CRS-4537: Cluster Ready Services is online CRS-4529: Cluster Synchronization Services is online
5.5查看 OHASD狀態
[root@rac01 bin]# ./crsctl check has CRS-4638: Oracle High Availability Services is online
5.6 查看節點信息
[root @ rac01 bin ]# . / olsnodes
rac01
rac02
[root@rac01 bin]# ./srvctl config database cjcdb [root@rac01 bin]# ./srvctl config database -d cjcdb Database unique name: cjcdb Database name: cjcdb Oracle home: /u01/app/oracle/product/11.2.0/db_1 Oracle user: oracle Spfile: +DATA/cjcdb/spfilecjcdb.ora Domain: Start options: open Stop options: immediate Database role: PRIMARY Management policy: AUTOMATIC Server pools: cjcdb Database instances: cjcdb1,cjcdb2 Disk Groups: DATA Mount point paths: Services: Type: RAC Database is administrator managed [root@rac01 bin]# ./srvctl status database -d cjcdb -v Instance cjcdb1 is running on node rac01. Instance status: Open. Instance cjcdb2 is running on node rac02. Instance status: Open.
5.8 查看 SCAN
配置
[root@rac01 bin]# ./srvctl config scan SCAN name: rac-scan.cjc.com, Network: 1/192.168.31.0/255.255.255.0/eth0 SCAN VIP name: scan1, IP: /rac-scan.cjc.com/192.168.31.60 SCAN VIP name: scan2, IP: /rac-scan.cjc.com/192.168.31.70 SCAN VIP name: scan3, IP: /rac-scan.cjc.com/192.168.31.50
[root@rac01 bin]# nslookup rac-scan.cjc.com Server: 192.168.31.90 Address: 192.168.31.90#53 Name: rac-scan.cjc.com Address: 192.168.31.60 Name: rac-scan.cjc.com Address: 192.168.31.70 Name: rac-scan.cjc.com Address: 192.168.31.50
狀態
[root@rac01 bin]# ./srvctl status scan SCAN VIP scan1 is enabled SCAN VIP scan1 is running on node rac02 SCAN VIP scan2 is enabled SCAN VIP scan2 is running on node rac01 SCAN VIP scan3 is enabled SCAN VIP scan3 is running on node rac01
SCAN_LISTENER狀態
[root@rac01 bin]# ./srvctl status scan_listener SCAN Listener LISTENER_SCAN1 is enabled SCAN listener LISTENER_SCAN1 is running on node rac02 SCAN Listener LISTENER_SCAN2 is enabled SCAN listener LISTENER_SCAN2 is running on node rac01 SCAN Listener LISTENER_SCAN3 is enabled SCAN listener LISTENER_SCAN3 is running on node rac01
5.9 查看 LISTENER
配置
[root@rac01 bin]# ./srvctl config listener -a Name: LISTENER Network: 1, Owner: grid Home: <CRS home> /u01/app/11.2.0/grid on node(s) rac01,rac02 End points: TCP:1521
狀態
[root@rac01 bin]# ./srvctl status listener Listener LISTENER is enabled Listener LISTENER is running on node(s): rac02,rac01
5.10 查看節點信息
[root@rac01 bin]# ./olsnodes rac01 rac02 [root@rac01 bin]# ./srvctl status nodeapps -n rac01 VIP rac01-vip is enabled VIP rac01-vip is running on node: rac01 Network is enabled Network is running on node: rac01 GSD is disabled GSD is not running on node: rac01 ONS is enabled ONS daemon is running on node: rac01 [root@rac01 bin]# ./srvctl status nodeapps -n rac02 VIP rac02-vip is enabled VIP rac02-vip is running on node: rac02 Network is enabled Network is running on node: rac02 GSD is disabled GSD is not running on node: rac02 ONS is enabled ONS daemon is running on node: rac02
六 .數據庫連接信息
角色
系統權限
表權限
列權限
……
[grid@rac01 ~]$ ls /u01/app/11.2.0/grid/log/rac01/crsd/crsd.log /u01/app/11.2.0/grid/log/rac01/crsd/crsd.log [grid@rac01 ~]$ ls /u01/app/11.2.0/grid/log/rac01/cssd/ocssd.log /u01/app/11.2.0/grid/log/rac01/cssd/ocssd.log [grid@rac01 ~]$ ls /u01/app/11.2.0/grid/log/rac01/evmd/evmd.log /u01/app/11.2.0/grid/log/rac01/evmd/evmd.log [grid@rac01 ~]$ ls /u01/app/11.2.0/grid/log/rac01/alertrac01.log /u01/app/11.2.0/grid/log/rac01/alertrac01.log
十 二 .數據庫補丁信息
巡檢內容見我的博客專欄《 Oracle 日常運維-常用腳本匯總》
http://blog.itpub.net/29785807/viewspace-2699676/
歡迎關注我的微信公眾號"IT小Chen",共同學習,共同成長!!!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。