Awr report error
Upcoming SlideShare
Loading in...5
×
 

Awr report error

on

  • 975 views

 

Statistics

Views

Total Views
975
Views on SlideShare
975
Embed Views
0

Actions

Likes
0
Downloads
6
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft Word

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Awr report error Awr report error Document Transcript

  • Error -1ORA-13516: AWR Operation failed: SWRF Schema not initializedProblem DescriptionWhile executing dbms_workload_repository package the following error message is reported.sql> exec dbms_workload_repository.modify_snapshot_settings(interval=>0);BEGIN dbms_workload_repository.modify_snapshot_settings(interval=>0); END;ERROR at line 1:ORA-13516: AWR Operation failed: SWRF Schema not initializedORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 85ORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 133ORA-06512: at line 1Cause of the ProblemThese errors have happened because of wrong or invalid objects with respect to AWR.Solution of the ProblemIn order to resolve the issue you need to drop and recreate the AWR objects, which you can do by runningCATNOAWR.SQL and CATAWR.SQL scripts.Note that from 10.2 onwards, the script name has changed. The catalog script for AWR Tables, used tocreate the Workload Repository Schema is CATAWRTB.SQL .In case of Oracle 10gR1,To re-create the AWR objects, by running the catnoawr.sql and catawr.sql scripts located in$ORACLE_HOME/rdbms/admin.SQL> @$ORACLE_HOME/rdbms/admin/catnoawr.sqlSQL> @$ORACLE_HOME/rdbms/admin/catawr.sqlSQL> shut immediateSQL> startupIn case of Oracle 10gR2,SQL> @$ORACLE_HOME/rdbms/admin/CATAWRTB.sql
  • SQL> shut immediate;SQL> startupOn re-start of the database instance, the AWR tables will be populated with the required data.Note that, the CATNOAWR.SQL scripts is no longer available in 10.2 and cannot be foundin the $ORACLE_HOME/rdbms/admin directory.Error -2SQL> @?/rdbms/admin/awrrpt.sqlCurrent Instance~~~~~~~~~~~~~~~~DB Id DB Name Inst Num Instance----------- ------------ -------- ------------2028137520 HLIT 1 HLITSpecify the Report Type~~~~~~~~~~~~~~~~~~~~~~~Would you like an HTML report, or a plain text report?Enter html for an HTML report, or text for plain textDefaults to htmlEnter value for report_type: htmlType Specified: htmlInstances in this Workload Repository schema~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • Using 2028137520 for database IdUsing 1 for instance numberdeclare*ERROR at line 1:ORA-20200: Database/Instance 2028137520/1 does not exist inDBA_HIST_DATABASE_INSTANCEORA-06512: at line 23Solution*************$ sqlplus /as sysdbaSQL*Plus: Release 11.1.0.7.0 - Production on Wed May 15 12:13:54 2013Copyright (c) 1982, 2008, Oracle. All rights reserved.Connected to:Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL> select dbid from v$database;DBID----------2028137520SQL> select instance_number from v$instance;
  • INSTANCE_NUMBER---------------1SQL> define dbid=2028137520SQL> define inst_num=1SQL> @?/rdbms/admin/awrrpt.sqlERROR at line 1:ORA-20200: Database/Instance 2028137520/1 does not exist inDBA_HIST_DATABASE_INSTANCEORA-06512: at line 23Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing options$ ^[[Aksh: ^[[A: not found.$$ sqlplus /as sysdbaSQL*Plus: Release 11.1.0.7.0 - Production on Wed May 15 12:15:01 2013Copyright (c) 1982, 2008, Oracle. All rights reserved.Connected to:
  • Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL> define dbid=2028137520SQL> select name from v$database;NAME---------HLITSQL> select inst_^?^?2 3SQL> select instance_number from v$instance;INSTANCE_NUMBER---------------1SQL> define dbid=2028137520SQL> define inst_num=1SQL> @?/rdbms/admin/awrrpt.sql
  • Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL> define dbid=2028137520SQL> select name from v$database;NAME---------HLITSQL> select inst_^?^?2 3SQL> select instance_number from v$instance;INSTANCE_NUMBER---------------1SQL> define dbid=2028137520SQL> define inst_num=1SQL> @?/rdbms/admin/awrrpt.sql