one command 一键收集 oracle 巡检信息(包括dbhc,awr reports)
2016-02-01 14:24
447 查看
初步效果图例如以下
SQL> @nb
------Oracle Database health Check STRAT
------Starting Collect Data Information!
------Part 1.DB Overview...
------Part 2.DB File Overview...
------Part 3.Perfermance Overview...
------Part 4.Security and Privilege Overview...
------Part 5.Objects Overview...
------Part 6.RAC Overview...
------Part 7.Backup Controlfile...
--------------start collect AWR reports
Enter value for trace_file_name:
------Oracle Database Health Check END
/home/oracle
-rw-r--r-- 1 oracle oinstall 242088 Jul 28 16:58 ./dbhc.lixora.2014-07-28/awr.lixora.html
-rw-r--r-- 1 oracle oinstall 280758 Jul 28 16:58 ./dbhc.lixora.2014-07-28/db_health_check_lixora.2014-07-281658.html
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
[oracle@lixora ~]$ ls -trl
-rw-r--r-- 1 oracle oinstall 48803 Jul 28 16:58 nb.sql
drwxr-xr-x 2 oracle oinstall 4096 Jul 28 16:58 dbhc.lixora.2014-07-28
[oracle@lixora ~]$ cd dbhc.lixora.2014-07-28/
[oracle@lixora dbhc.lixora.2014-07-28]$ ls -trl
total 524
-rw-r--r-- 1 oracle oinstall 280758 Jul 28 16:58 db_health_check_lixora.2014-07-281658.html
-rw-r--r-- 1 oracle oinstall 242088 Jul 28 16:58 awr.lixora.html
SQL> @nb
------Oracle Database health Check STRAT
------Starting Collect Data Information!
------Part 1.DB Overview...
------Part 2.DB File Overview...
------Part 3.Perfermance Overview...
------Part 4.Security and Privilege Overview...
------Part 5.Objects Overview...
------Part 6.RAC Overview...
------Part 7.Backup Controlfile...
--------------start collect AWR reports
Enter value for trace_file_name:
------Oracle Database Health Check END
/home/oracle
-rw-r--r-- 1 oracle oinstall 242088 Jul 28 16:58 ./dbhc.lixora.2014-07-28/awr.lixora.html
-rw-r--r-- 1 oracle oinstall 280758 Jul 28 16:58 ./dbhc.lixora.2014-07-28/db_health_check_lixora.2014-07-281658.html
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
[oracle@lixora ~]$ ls -trl
-rw-r--r-- 1 oracle oinstall 48803 Jul 28 16:58 nb.sql
drwxr-xr-x 2 oracle oinstall 4096 Jul 28 16:58 dbhc.lixora.2014-07-28
[oracle@lixora ~]$ cd dbhc.lixora.2014-07-28/
[oracle@lixora dbhc.lixora.2014-07-28]$ ls -trl
total 524
-rw-r--r-- 1 oracle oinstall 280758 Jul 28 16:58 db_health_check_lixora.2014-07-281658.html
-rw-r--r-- 1 oracle oinstall 242088 Jul 28 16:58 awr.lixora.html
相关文章推荐
- Oracle Ebs R12 SLA与GL关系变化
- oracle GoldenGate 值得一学!
- Oracle 笔记
- oracle创建表空间,创建用户,导入dmp数据
- oracle备份还原数据库
- Oracle修改字段类型方法总结
- jsp+oracle 排序分页+Pageutil类
- Oracle 根据sid查询pid
- Oracle 分块导出数据备份
- Oracle 基于Windows访问带端口的远程服务器
- Oracle 额外增加表空间
- Oracle 查看正在运行的Job
- Oracle 创建表空间
- Oracle 查看表空间信息
- windows上安装oracle 12c到69%时卡住不动解决方案
- Oracle 重新解析表中索引令其查询速度加快
- Oracle 统计一个字段中某字符出现的次数
- Oracle 删除表空间
- oracle的sqlnet.ora , tnsnames.ora , Listener.ora 文件的作用
- Oracle 查询那些表存在外键