Enter valuefor end_snap: 56 <<<<<<< 輸入結(jié)束snap_id
End Snapshot Id specified: 56
Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name is awrrpt_1_52_56.html.To use this name,
press <return>tocontinue, otherwise enter an alternative.
Enter valuefor report_name:/oracle/app/oracle/admin/gyl/dpdump/awr_rac.html
整個(gè)過程都很簡(jiǎn)單,但有幾點(diǎn)需要注意:
1、不能將同一個(gè)數(shù)據(jù)庫的AWR數(shù)據(jù)導(dǎo)出后再導(dǎo)入到自己,這樣會(huì)遇到下面的錯(cuò)誤
ERROR at line 1:
ORA-20105: unable to move AWR data to SYS
ORA-06512: at "SYS.DBMS_SWRF_INTERNAL", line 2950
ORA-20107: not allowed to move AWR data for local dbid
ORA-06512: at line 3
2、在導(dǎo)入的時(shí)候,在輸入值時(shí),盡量用大寫;
3、如果不再需要的數(shù)據(jù),可以用如下存儲(chǔ)過程刪除:
SQL> exec DBMS_SWRF_INTERNAL.UNREGISTER_DATABASE(bdid); --將dbid換成需要?jiǎng)h除的dbid號(hào)