您好,登录后才能下订单哦!
目录
文档控制 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进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。