oracle10g using $oracle_home/rdbms/admin/awrrpt.sql Error

Source: Internet
Author: User
Tags sql error sqlplus

Enter value for Report_name:
Using the report name awrrpt_1_591_593.html
Select Output from table (dbms_workload_repository.awr_report_html (:d bid,
*
ERROR at line 1:
Ora-04063:package Body "SYS. Dbms_workload_repository "has errors
Report written to awrrpt_1_591_593.html

To view invalid objects:
Dbms_swrf_report_internal and dbms_workload_repository are not valid
Attempt to compile Dbms_workload_repository, Error: Object dbms_swrf_report_internal invalid
Attempt to compile dbms_swrf_report_internal error:
pls-00753:malformed or corrupted wrapped unit
Dbms_swrf_report_internal
Use the following command to view the error code
$ sqlplus/as SYSDBA
Sql>set Serveroutput on
Sql> alter package dbms_swrf_report_internal compile;
Sql>show Error
Sql> ALTER package dbms_swrf_report_internal compile body;
Sql>show Error
Sql> alter package dbms_workload_repository compile;
Sql> ALTER package dbms_workload_repository compile body;
Sql>show Error
To find the relevant information, use the following SQL repair package
$sqlplus "/as sysdba"
Sql> @?/rdbms/admin/catawrtb.sql
Sql> @?/rdbms/admin/dbmsawr.sql
Sql> @?/rdbms/admin/prvtawr.plb
Sql> @?/rdbms/admin/utlrp.sql
Sql> @?/rdbms/admin/awrrpt.sql
--if error still exists, please restart the database and try again ....
sql> shutdown Immediate
Sql> Startup
Sql> @?/rdbms/admin/awrrpt.sql

Test environment Test Passed
is also being tested in the formal environment:
Using the report name awrrpt_1_52549_52550.html
Select Output from table (dbms_workload_repository.awr_report_html (:d bid,
*
ERROR at line 1:
Ora-04045:errors during recompilation/revalidation of SYS. Dbms_swrf_report_internal
Ora-04030:out of process memory when trying to allocate 4120 bytes (PLS non-lib hp,pdz2m87_allocate_permanent)
Ora-06508:pl/sql:could not the Find program unit being called: "SYS. Dbms_swrf_report_internal "
Ora-06512:at "SYS. Dbms_workload_repository ", line 309
Ora-06512:at Line 1
Report written to awrrpt_1_52549_52550.html

Investigation:
According to the document
Diagnosing and resolving ORA-4030 Errors (document ID 233869.1) troubleshooting
Oracle recommends rebuilding the AWR library:
How to recreate the AWR (AUTOMATIC WORKLOAD) Repository? (Document ID 782974.1)
But the action is too big to be tested in the product environment

oracle10g using $oracle_home/rdbms/admin/awrrpt.sql Error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.