AWR報告輸出前的參數SnapId有空段無法跨越

做AWR報告,啓動AWR,

SQL> @?/rdbms/admin/awrrpt;

 

Current Instance

~~~~~~~~~~~~~~~~

 

   DB Id    DB Name      Inst Num Instance

----------- ------------ -------- ------------

 2843528876 DEAN                1 dean

 

 

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: text

 

Type Specified:                  text

 

 

Instances in this Workload Repository schema

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

   DB Id     Inst Num DB Name      Instance     Host

------------ -------- ------------ ------------ ------------

* 2843528876        1 DEAN         dean         CENTOS5.5

 

Using 2843528876 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: 2

 

Listing the last 2 days of Completed Snapshots

 

                                                        Snap

Instance     DB Name        Snap Id    Snap Started    Level

------------ ------------ --------- ------------------ -----

dean         DEAN                80 18 Dec 2012 13:22      1

 

                                 81 19 Dec 2012 14:55      1

                                 82 19 Dec 2012 16:00      1

                                 83 19 Dec 2012 17:00      1

 

 

 

Specify the Begin and End Snapshot Ids

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Enter value for begin_snap: 80

Begin Snapshot Id specified: 80

 

Enter value for end_snap: 83

End   Snapshot Id specified: 83

 

 

declare

*

ERROR at line 1:

ORA-20200: The instance was shutdown between snapshots 80 and 83

ORA-06512: at line 42

 

可以看到,選擇80——83這段是出錯,提示在這段裏有shutdown發生,注意看80段下一行是空的,查了資料,才知道原來這意思是這一段有數據庫重啓發生,所以AWR不能跨越空的段,隨後重新選擇81——83

 

成功顯示出AWR報告

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章