一.產生AWR報告
[ractest@sun880-1 /u01/app/oracle/orahome/rdbms/admin]$ cd $ORACLE_HOME/rdbms/admin
[ractest@sun880-1 /u01/app/oracle/orahome/rdbms/admin]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Sun Jan 27 20:47:38 2008
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SQL> @awrrpt
......
//根據Oracle提示產生報告......
注:報告產生在$ORACLE_HOME/rdbms/admin/目錄下。
二.修改awr的預設設定
//半小時採集一次,採集資訊儲存3天。
SQL>exec dbms_workload_repository.modify_snapshot_settings (interval=>30,retention =>3*24*60);
三.關閉AWR自動收集
SQL>exec dbms_workload_repository.modify_snapshot_settings (interval=>0,retention =>24*60);
注:10g預設是自動開啟awr資訊收集的,會對系統有一定的影響(很小);如果要關閉awr資訊收集,只需設定interval參數為0即可。但interval設0後,AWR報告無法產生。
一.產生AWR報告
[ractest@sun880-1 /u01/app/oracle/orahome/rdbms/admin]$ cd $ORACLE_HOME/rdbms/admin
[ractest@sun880-1 /u01/app/oracle/orahome/rdbms/admin]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Sun Jan 27 20:47:38 2008
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SQL> @awrrpt
......
//根據Oracle提示產生報告......
注:報告產生在$ORACLE_HOME/rdbms/admin/目錄下。
二.修改awr的預設設定
//半小時採集一次,採集資訊儲存3天。
SQL>exec dbms_workload_repository.modify_snapshot_settings (interval=>30,retention =>3*24*60);
三.關閉AWR自動收集
SQL>exec dbms_workload_repository.modify_snapshot_settings (interval=>0,retention =>24*60);
注:10g預設是自動開啟awr資訊收集的,會對系統有一定的影響(很小);如果要關閉awr資訊收集,只需設定interval參數為0即可。但interval設0後,AWR報告無法產生。