SQL> BEGINDBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT (); 2END;/ 3 4BEGIN*ERROR at line 1:ORA-13516: AWR Operation failed: AW...
SQL> select status from v$instance;STATUS------------OPENSQL> @?/rdbms/admin/CATNOAWR.SQLSP2-0310: unable to open file"/te...
Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table drop...
Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table drop...
Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table drop...
Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table drop...
Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table drop...
Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table drop...
Table altered.Table created.Table created.Table created.Table created.Table created.Table created.Table created.Table crea...
Table created.drop table WRH$_SYSTEM_EVENT_BL*ERROR at line 1:ORA-00942: table or view does not existTable created.Table a...
Table created.Table altered.Table created.drop table WRH$_LATCH_PARENT_BL*ERROR at line 1:ORA-00942: table or view does no...
ERROR at line 1:ORA-00942: table or view does not existTable created.Table altered.Table created.Table created.drop table ...
Table created.Table created.Table created.Table created.Table created.Table created.Table created.Table created.drop table...
Table altered.Table created.drop table WRH$_PARAMETER_BL*ERROR at line 1:ORA-00942: table or view does not existTable crea...
Index created.Table created.Index created.Table created.Index created.Table created.drop table WRH$_DLM_MISC_BL*ERROR at l...
Table altered.Table created.drop table WRH$_TABLESPACE_STAT_BL*ERROR at line 1:ORA-00942: table or view does not existTabl...
Table created.Table created.Table created.Table created.Table created.Table created.Table created.Table created.Table crea...
Type created.Synonym created.Synonym created.Grant succeeded.Grant succeeded.Type created.Type created.Synonym created.Syn...
Synonym created.Synonym created.Synonym created.Synonym created.Synonym created.Synonym created.Grant succeeded.Grant succ...
Synonym created.Grant succeeded.Grant succeeded.Grant succeeded.Grant succeeded.Table created.Table created.Table created....
Using 2028137520 for database IdUsing 1 for instance numberdeclare*ERROR at line 1:ORA-20200: Database/Instance 2028137520...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~DB Id Inst Num DB Name Instance Host------------ -------- ------------ -------...
Upcoming SlideShare
Loading in …5
×

Awr

286 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
286
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Awr

  1. 1. SQL> BEGINDBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT (); 2END;/ 3 4BEGIN*ERROR at line 1:ORA-13516: AWR Operation failed: AWR Schema not initializedORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 14ORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 37ORA-06512: at line 2SQL> show userUSER is "SYS"SQL> BEGINDBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT (); 2END;/ 3 4BEGIN*ERROR at line 1:ORA-13516: AWR Operation failed: AWR Schema not initializedORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 14ORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 37ORA-06512: at line 2SQL> exec DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT ();BEGIN DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT (); END;*ERROR at line 1:ORA-13516: AWR Operation failed: AWR Schema not initializedORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 14ORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 37ORA-06512: at line 1SQL> conn /as sysdbaConnected.SQL>SQL> exec DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT ();BEGIN DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT (); END;*ERROR at line 1:ORA-13516: AWR Operation failed: AWR Schema not initializedORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 14ORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 37ORA-06512: at line 1SQL> ORA-13516SP2-0042: unknown command "ORA-13516" - rest of line ignored.SQL>SQL>SQL> select open_mode fro2SQL> select status from v$database;select status from v$database*ERROR at line 1:ORA-00904: "STATUS": invalid identifier
  2. 2. SQL> select status from v$instance;STATUS------------OPENSQL> @?/rdbms/admin/CATNOAWR.SQLSP2-0310: unable to open file"/testdb/oradb/db/tech_st/11.1.0/rdbms/admin/CATNOAWR.SQL"SQL> @?/rdbms/admin/catnoawr.sqlPL/SQL procedure successfully completed.Type dropped.Type dropped.Type dropped.Type dropped.Type dropped.Type dropped.Type dropped.Type dropped.Type dropped.Type dropped.Type dropped.Type dropped.Type dropped.Type dropped.Type dropped.Type dropped.
  3. 3. Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.
  4. 4. Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.
  5. 5. Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.
  6. 6. Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.
  7. 7. Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.
  8. 8. Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.Table dropped.SQL> @?/rdbms/admin/catawrtb.sqlSession altered.Table created.drop table WRH$_FILESTATXS_BL*ERROR at line 1:ORA-00942: table or view does not existTable created.
  9. 9. Table altered.Table created.Table created.Table created.Table created.Table created.Table created.Table created.Table created.Table created.Index created.drop table WRH$_SQLSTAT_BL*ERROR at line 1:ORA-00942: table or view does not existTable created.Table altered.Index created.Table created.Table created.Table created.Table created.Table created.
  10. 10. Table created.drop table WRH$_SYSTEM_EVENT_BL*ERROR at line 1:ORA-00942: table or view does not existTable created.Table altered.Table created.Table created.Table created.Table created.drop table WRH$_WAITSTAT_BL*ERROR at line 1:ORA-00942: table or view does not existTable created.Table altered.Table created.Table created.drop table WRH$_LATCH_BL*ERROR at line 1:ORA-00942: table or view does not existTable created.Table altered.Table created.drop table WRH$_LATCH_CHILDREN_BL*ERROR at line 1:ORA-00942: table or view does not exist
  11. 11. Table created.Table altered.Table created.drop table WRH$_LATCH_PARENT_BL*ERROR at line 1:ORA-00942: table or view does not existTable created.Table altered.Table created.drop table WRH$_LATCH_MISSES_SUMMARY_BL*ERROR at line 1:ORA-00942: table or view does not existTable created.Table altered.Table created.drop table WRH$_EVENT_HISTOGRAM_BL*ERROR at line 1:ORA-00942: table or view does not existTable created.Table altered.Table created.Table created.Table created.drop table WRH$_DB_CACHE_ADVICE_BL*
  12. 12. ERROR at line 1:ORA-00942: table or view does not existTable created.Table altered.Table created.Table created.drop table WRH$_ROWCACHE_SUMMARY_BL*ERROR at line 1:ORA-00942: table or view does not existTable created.Table altered.Table created.Table created.drop table WRH$_SGASTAT_BL*ERROR at line 1:ORA-00942: table or view does not existTable created.Table altered.Table created.Table created.Table created.Table created.Table created.Table created.
  13. 13. Table created.Table created.Table created.Table created.Table created.Table created.Table created.Table created.drop table WRH$_SYSSTAT_BL*ERROR at line 1:ORA-00942: table or view does not existTable created.Table altered.Table created.drop table WRH$_SYS_TIME_MODEL_BL*ERROR at line 1:ORA-00942: table or view does not existTable created.Table altered.Table created.drop table WRH$_OSSTAT_BL*ERROR at line 1:ORA-00942: table or view does not existTable created.
  14. 14. Table altered.Table created.drop table WRH$_PARAMETER_BL*ERROR at line 1:ORA-00942: table or view does not existTable created.Table altered.Table created.Table created.Table created.Table created.Table created.drop table WRH$_SEG_STAT_BL*ERROR at line 1:ORA-00942: table or view does not existTable created.Table altered.Table created.Table created.Table created.Index created.Table created.Index created.Table created.
  15. 15. Index created.Table created.Index created.Table created.Index created.Table created.drop table WRH$_DLM_MISC_BL*ERROR at line 1:ORA-00942: table or view does not existTable created.Table altered.Table created.Table created.Table created.drop table WRH$_INST_CACHE_TRANSFER_BL*ERROR at line 1:ORA-00942: table or view does not existTable created.Table altered.Table created.drop table WRH$_ACTIVE_SESSION_HISTORY_BL*ERROR at line 1:ORA-00942: table or view does not existTable created.
  16. 16. Table altered.Table created.drop table WRH$_TABLESPACE_STAT_BL*ERROR at line 1:ORA-00942: table or view does not existTable created.Table altered.Table created.Table created.Table created.Index created.Table created.Table created.drop table WRH$_SERVICE_STAT_BL*ERROR at line 1:ORA-00942: table or view does not existTable created.Table altered.Table created.drop table WRH$_SERVICE_WAIT_CLASS_BL*ERROR at line 1:ORA-00942: table or view does not existTable created.Table altered.
  17. 17. Table created.Table created.Table created.Table created.Table created.Table created.Table created.Table created.Table created.Table created.Table created.Table created.Table created.Table created.Table created.Table created.Table created.drop table WRH$_INTERCONNECT_PINGS_BL*ERROR at line 1:ORA-00942: table or view does not existTable created.Table altered.Type created.
  18. 18. Type created.Synonym created.Synonym created.Grant succeeded.Grant succeeded.Type created.Type created.Synonym created.Synonym created.Grant succeeded.Grant succeeded.Type created.Type created.Type created.Type created.Type created.Type created.Type created.Type created.Synonym created.Synonym created.
  19. 19. Synonym created.Synonym created.Synonym created.Synonym created.Synonym created.Synonym created.Grant succeeded.Grant succeeded.Grant succeeded.Grant succeeded.Grant succeeded.Grant succeeded.Grant succeeded.Grant succeeded.Type created.Type created.Type created.Type created.Synonym created.Synonym created.Synonym created.
  20. 20. Synonym created.Grant succeeded.Grant succeeded.Grant succeeded.Grant succeeded.Table created.Table created.Table created.Table created.Table created.Table created.Table created.Table created.Session altered.SQL> @?/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~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  21. 21. 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 23Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 -64bit ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing optionsYou have mail in /usr/spool/mail/oratest$ ORA-20200: Database/Instance 2028137520/1 does not exist inksh: ORA-20200:: not found.$$ 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.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
  22. 22. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~DB Id Inst Num DB Name Instance Host------------ -------- ------------ ------------ ------------* 2028137520 1 HLIT HLIT hlifetestUsing 2028137520 for database IdUsing 1 for instance numberSpecify the number of days of snapshots to choose from~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Entering the number of days (n) will result in the most recent(n) days of snapshots being listed. Pressing <return> withoutspecifying a number lists all completed snapshots.Enter value for num_days: 1Listing the last days Completed SnapshotsSpecify the Begin and End Snapshot Ids~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Enter value for begin_snap: 1Begin Snapshot Id specified: 1Enter value for end_snap: 1End Snapshot Id specified: 1

×