Oracle10g使用$ORACLE_HOME/rdbms/admin/awrrpt.sql報錯
Enter value for report_name:
Using the report name awrrpt_1_591_593.html
select output from table(dbms_workload_repository.awr_report_html( :dbid,
*
ERROR at line 1:
ORA-04063: package body "SYS.DBMS_WORKLOAD_REPOSITORY" has errors
Report written to awrrpt_1_591_593.html
檢視無效物件:
DBMS_SWRF_REPORT_INTERNAL和DBMS_WORKLOAD_REPOSITORY均無效
嘗試編譯DBMS_WORKLOAD_REPOSITORY,報錯:物件DBMS_SWRF_REPORT_INTERNAL無效
嘗試編譯DBMS_SWRF_REPORT_INTERNAL報錯:
PLS-00753:malformed or corrupted wrapped unit
DBMS_SWRF_REPORT_INTERNAL
使用如下命令,檢視錯誤程式碼
$ 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
查詢相關資料,使用如下sql修復包
$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
測試環境測試透過
正在正式環境也測試:
Using the report name awrrpt_1_52549_52550.html
select output from table(dbms_workload_repository.awr_report_html( :dbid,
*
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 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
排查:
根據文件
Diagnosing and Resolving ORA-4030 Errors (文件 ID 233869.1)排查
Oracle建議重建awr庫:
How to Recreate The AWR ( AUTOMATIC WORKLOAD ) Repository ? (文件 ID 782974.1)
但是動作太大,無法在產品環境試驗
Using the report name awrrpt_1_591_593.html
select output from table(dbms_workload_repository.awr_report_html( :dbid,
*
ERROR at line 1:
ORA-04063: package body "SYS.DBMS_WORKLOAD_REPOSITORY" has errors
Report written to awrrpt_1_591_593.html
檢視無效物件:
DBMS_SWRF_REPORT_INTERNAL和DBMS_WORKLOAD_REPOSITORY均無效
嘗試編譯DBMS_WORKLOAD_REPOSITORY,報錯:物件DBMS_SWRF_REPORT_INTERNAL無效
嘗試編譯DBMS_SWRF_REPORT_INTERNAL報錯:
PLS-00753:malformed or corrupted wrapped unit
DBMS_SWRF_REPORT_INTERNAL
使用如下命令,檢視錯誤程式碼
$ 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
查詢相關資料,使用如下sql修復包
$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
測試環境測試透過
正在正式環境也測試:
Using the report name awrrpt_1_52549_52550.html
select output from table(dbms_workload_repository.awr_report_html( :dbid,
*
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 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
排查:
根據文件
Diagnosing and Resolving ORA-4030 Errors (文件 ID 233869.1)排查
Oracle建議重建awr庫:
How to Recreate The AWR ( AUTOMATIC WORKLOAD ) Repository ? (文件 ID 782974.1)
但是動作太大,無法在產品環境試驗
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29135257/viewspace-1775377/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle10g使用10046 報錯Oracle
- 執行awrrpt.sql生成awr報告報ora-06502錯誤SQL
- Oracle 11.2.0.3.0中執行awrrpt.sql生成awr報告報ora-06502錯誤OracleSQL
- 安裝報錯,輸入新的admin密碼後提交報錯.密碼
- Laravel-admin 建立控制器報錯Laravel
- 在Oracle 11.2.0.3.0中執行awrrpt.sql生成awr報告報ora-06502錯誤OracleSQL
- awrrpt.sqlSQL
- windows7安裝oracle10g報錯WindowsOracle
- 使用文字處理命令抽取/ORACLE/RDBMS/admin目錄下指令碼的註釋資訊(可以使用正規表示式匹配)Oracle指令碼
- 7.29 除錯及admin除錯
- 使用Oracle10g Flashback database功能恢復使用者錯誤OracleDatabase
- Oracle10g 報錯'java.lang.Exception: No such metric'的解決方法OracleJavaException
- Oracle10g 目錄$ORACLE_HOME/dbs 下有檔案 hc_.dat ,用處是 ?Oracle
- Laravel 6.8 + Laravel-admin 1.7.8 新建專案報錯的解決方法Laravel
- 使用友盟元件報錯元件
- vscode使用chrome除錯報錯VSCodeChrome除錯
- AIX上安裝ORACLE9i出錯 ins_rdbms.mkAIOracle
- CentOS5.6下安裝Oracle10G軟體 【保留報錯經驗】CentOSOracle
- Oracle10g 報錯'java.lang.Exception: No such metric'的解決方法[轉載]OracleJavaException
- 使用Admin監控
- hive使用報錯解決方法Hive
- Swoole 使用on()繫結事件報錯事件
- mysqld_multi 命令使用報錯MySql
- supervisor使用報錯解決
- oracle10g官方例子(很不錯)Oracle
- Oracle10g Flashback database功能恢復使用者錯誤(zt)OracleDatabase
- 使用uview元件報錯border-color: $u-border-color!important報錯View元件Import
- RDBMS VS XML VS NoSQLXMLSQL
- Oracle RDBMS History Over the YearsOracle
- 在rhel5上靜默(silent)安裝oracle10g(10.2.0.1)報錯Oracle
- oracle10g rac 報ora-12545錯誤的解決方案(zt)Oracle
- iview admin 使用爬坑View
- Spring Boot Admin 使用Spring Boot
- 使用exp進行SQL報錯注入SQL
- 使用URLClassLoader報錯not class found exceptionException
- mysql 8.0 使用 navicat 登入報錯MySql
- Django使用終端建立superuser報錯。Django
- 使用laravel/passport 4.0異常報錯LaravelPassport