It is a relatively time-consuming task to analyze and generate an AWR report. Of course, it is not time-consuming to generate only one AWR report. However, we may need to analyze the system in detail.
It is a relatively time-consuming task to analyze and generate an AWR report. Of course, it is not time-consuming to generate only one AWR report. However, we may need to analyze the system in detail.
The customer's production system is always so important that you will not perform operations on their production machines for a long time. However, analyzing and generating AWR reports is a relatively time-consuming task ,, of course, it is not time-consuming to generate only one AWR report. However, to analyze the system in detail, we may need all the AWR data for a period of time, which should be selected based on the actual situation. In this case, we need to export and analyze the AWR data of the customer. This operation mainly involves three stages: Export, Import, and generate the AWR data. Each step is described in detail.
1. Export
2. Import
Copy the dump file generated above to a directory on the target machine, and then import it as follows.
3. Generate Reports
Generate a Report on the target machine
The entire process is simple, but there are several points to note:
1. You cannot export AWR data of the same database to yourself before importing it. This will cause the following error:
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. Try to use uppercase letters when entering values during import;
3. if you no longer need data, you can use the following stored procedure to delete it:
SQL> exec DBMS_SWRF_INTERNAL.UNREGISTER_DATABASE (bdid); -- replace dbid with the dbid to be deleted
This article permanently updates the link address: