AWR报告提取方法
AWR报告提取方法
关键字
AWR报告
内容描述
AWR报告的提取方法
涉及设备
oracle 10g
操作说明
【问题现象描述】
现场提取AWR报告
【分析结论及解决方案】
Awr报告生成方法
进入$ORACLE_HOME/rdbms/admin目录,在sqlplus下运行@$ORACLE_HOME/rdbms/admin/awrrpt.sql脚本,按照提示一步一步就可以达成,导出的格式有两种,txt格式和html格式,用html格式的比较好看一点
具体操作方法如下:
bash-3.00$ echo $ORACLE_HOME
/export/home/oracle/product/10.2.0
bash-3.00$ cd /export/home/oracle/product/10.2.0/rdbms/admin/
bash-3.00$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Oct 14 16:55:19 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> @/export/home/oracle/product/10.2.0/rdbms/admin/awrrpt.sql;
Current Instance
~~~~~~~~~~~~~~~~
DB Id DB Name Inst Num Instance
----------- ------------ -------- ------------
3664984659 V233 1 v233
Specify the Report Type
~~~~~~~~~~~~~~~~~~~~~~~
Would you like an HTML report, or a plain text report?
Enter 'html' for an HTML report, or 'text' for plain text
Defaults to 'html'
Enter value for report_type: html
Type Specified: html
Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DB Id Inst Num DB Name Instance Host
------------ -------- ------------ ------------ ------------
* 3664984659 1 V233 v233 M4000
Using 3664984659 for database Id
Using 1 for instance number
Specify the number of days of snapshots to choose from
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Entering the number of days (n) will result in the most recent
(n) days of snapshots being listed. Pressing <return> without
specifying a number lists all completed snapshots.
Enter value for num_days: 3
Listing the last 3 days of Completed Snapshots
Snap
Instance DB Name Snap Id Snap Started Level
------------ ------------ --------- ------------------ -----
v233 V233 659 12 Oct 2010 00:00 1
660 12 Oct 2010 01:00 1
661 12 Oct 2010 02:00 1
662 12 Oct 2010 03:01 1
663 12 Oct 2010 04:00 1
664 12 Oct 2010 05:00 1
665 12 Oct 2010 06:00 1
666 12 Oct 2010 07:01 1
667 12 Oct 2010 08:00 1
668 12 Oct 2010 09:00 1
669 12 Oct 2010 10:00 1
670 12 Oct 2010 11:01 1
671 12 Oct 2010 12:00 1
672 12 Oct 2010 13:00 1
673 12 Oct 2010 14:00 1
674 12 Oct 2010 15:00 1
675 12 Oct 2010 16:00 1
676 12 Oct 2010 17:00 1
677 12 Oct 2010 18:00 1
678 12 Oct 2010 19:00 1
679 12 Oct 2010 20:00 1
680 12 Oct 2010 21:00 1
681 12 Oct 2010 22:00 1
682 12 Oct 2010 23:00 1
683 13 Oct 2010 00:00 1
684 13 Oct 2010 01:01 1
685 13 Oct 2010 02:00 1
686 13 Oct 2010 03:00 1
687 13 Oct 2010 04:00 1
688 13 Oct 2010 05:00 1
689 13 Oct 2010 06:00 1
690 13 Oct 2010 07:00 1
691 13 Oct 2010 08:00 1
692 13 Oct 2010 09:00 1
693 13 Oct 2010 10:00 1
694 13 Oct 2010 11:00 1
695 13 Oct 2010 12:00 1
696 13 Oct 2010 13:00 1
697 13 Oct 2010 14:00 1
698 13 Oct 2010 15:00 1
699 13 Oct 2010 16:00 1
700 13 Oct 2010 17:00 1
701 13 Oct 2010 18:00 1
702 13 Oct 2010 19:00 1
703 13 Oct 2010 20:00 1
704 13 Oct 2010 21:00 1
705 13 Oct 2010 22:00 1
706 13 Oct 2010 23:00 1
707 14 Oct 2010 00:01 1
708 14 Oct 2010 01:00 1
709 14 Oct 2010 02:00 1
710 14 Oct 2010 03:00 1
711 14 Oct 2010 04:00 1
712 14 Oct 2010 05:00 1
713 14 Oct 2010 06:00 1
714 14 Oct 2010 07:00 1
Snap
Instance DB Name Snap Id Snap Started Level
------------ ------------ --------- ------------------ -----
v233 V233 715 14 Oct 2010 08:00 1
716 14 Oct 2010 09:00 1
717 14 Oct 2010 10:01 1
718 14 Oct 2010 11:00 1
719 14 Oct 2010 12:00 1
720 14 Oct 2010 13:00 1
721 14 Oct 2010 14:00 1
722 14 Oct 2010 15:00 1
723 14 Oct 2010 16:00 1
Specify the Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter value for begin_snap: 669
Begin Snapshot Id specified: 669
Enter value for end_snap: 672
End Snapshot Id specified: 672
Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name is awrrpt_1_669_672.html. To use this name,
press <return> to continue, otherwise enter an alternative.
Enter value for report_name: 回车
将/export/home/oracle/product/10.2.0/rdbms/admin/ 目录下 awrrpt_1_669_672.html 发回来。
1.1 ORACLE日志提取方法
关键字
oracle、alert、日志、提取方法
内容描述
ORACLE日志:alert。
涉及设备
ORACLE 10g
操作说明
1.1.1 日志说明
alert日志记录的是ORACLE的一些实例级别的变化,对数据库的任何配置的修改和数据库的任何异常都将记录在alert日志中,在数据库发生问题时,能够第一时间的定位到数据库的问题所在。
1.1.2 日志提取方法
alert日志路径:$ORACLE_HOME/admin/实例名/bdump下以alert打头的文件。