





{"id":1869,"date":"2011-05-03T22:32:22","date_gmt":"2011-05-04T02:32:22","guid":{"rendered":"http:\/\/www.killtest.hk\/?p=1869"},"modified":"2011-05-03T22:32:22","modified_gmt":"2011-05-04T02:32:22","slug":"oracle-awr","status":"publish","type":"post","link":"https:\/\/www.killtest.hk\/index.php\/oracle\/oracle-awr\/","title":{"rendered":"\u5982\u4f55\u751f\u6210Oracle AWR\u5831\u544a"},"content":{"rendered":"<p>Oracle\u6027\u80fd\u5206\u6790\u5165\u9580\u5b78\u7fd2\u4e2d\uff0c\u9047\u5230Oracle\u6578\u64da\u5eab\u7684\u6027\u80fd\u554f\u984c\uff0c\u58f9\u822c\u9996\u8981\u7684\u6b65\u9a5f\u5c31\u662f\u5c0e\u51faAWR\u7684\u5206\u6790\u5831\u544a\uff0cAWR\u662f10g\u4e2d\u65b0\u5f15\u5165\u7684\u58f9\u500b\u5de5\u5177\uff0c\u5728\u9019\u4e4b\u524d\u58f9\u822c\u662f\u5229\u7528statspack\u3002\u8981\u5c0e\u51faAWR\u5831\u544a\uff0c\u53ea\u8981\u5229\u7528Oracle\u7684\u58f9\u500b\u8173\u672c\u5373\u53ef\u4ee5\u5b8c\u6210\uff0c\u4e0b\u9762\u662f\u6211\u5229\u7528script\u9304\u5236\u7684\u58f9\u6bb5\u5c0e\u51faAWR report\u7684\u904e\u7a0b\u3002<br \/>\n\u00a0\u00a0\u00a0 \u9996\u5148\u9032\u5165$ORACLE_HOME\/rdbms\/admin\u76ee\u9304\uff0c\u5728sqlplus\u4e0b\u904b\u884c@awrrpt\u8173\u672c\uff0c\u6309\u7167\u63d0\u793a\u58f9\u6b65\u58f9\u6b65\u5c31\u53ef\u4ee5\u9054\u6210\uff0c\u5c0e\u51fa\u7684\u683c\u5f0f\u6709\u5169\u7a2e\uff0ctxt\u683c\u5f0f\u548chtml\u683c\u5f0f\u3002<br \/>\n\u00a0\u00a0\u00a0 \u5728OTN\u4e0a\uff0c\u6709\u58f9\u500bDBA\u65b0feature\u7cfb\u5217\uff0c\u7b2c\u516d\u5468\u5c31\u662f\u5c08\u9580\u8b1b\u7684\u9019\u500bfeature\uff0c\u5927\u5bb6\u53ef\u4ee5\u53bb\u90a3\u88cf\u4e86\u89e3\u58f9\u4e0b\uff08\u4e2d\u6587\u7684\uff09<br \/>\n\u00a0\u00a0\u00a0 Script started on Sun 27 Jan 2008 08:47:15 PM PST<br \/>\n\u00a0\u00a0\u00a0 [ractest@sun880-1 \/u01\/app\/oracle\/orahome\/rdbms\/admin]$ cd $ORACLE_HOME\/rdbms\/admin<br \/>\n\u00a0\u00a0\u00a0 [ractest@sun880-1 \/u01\/app\/oracle\/orahome\/rdbms\/admin]$ sqlplus \/ as sysdba<br \/>\n\u00a0\u00a0\u00a0 SQL*Plus: Release 10.2.0.4.0 &#8211; Production on Sun Jan 27 20:47:38 2008<br \/>\n\u00a0\u00a0\u00a0 Copyright (c) 1982, 2007, Oracle. All Rights Reserved.<br \/>\n\u00a0\u00a0\u00a0 Connected to:<br \/>\n\u00a0\u00a0\u00a0 Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 &#8211; 64bit Production<br \/>\n\u00a0\u00a0\u00a0 With the Partitioning, Real Application Clusters, OLAP, Data Mining<br \/>\n\u00a0\u00a0\u00a0 and Real Application Testing options<br \/>\n\u00a0\u00a0\u00a0 SQL&gt; @awrrpt<br \/>\n\u00a0\u00a0\u00a0 Current Instance<br \/>\n\u00a0\u00a0\u00a0 ~~~~~~~~~~~~~~~~<br \/>\n\u00a0\u00a0\u00a0 DB Id DB Name Inst Num Instance<br \/>\n\u00a0\u00a0\u00a0 \u2014\u2014\u2014\u2013 \u2014\u2014\u2014\u2014 \u2014\u2014\u2013 \u2014\u2014\u2014\u2014<br \/>\n\u00a0\u00a0\u00a0 2080780909 ORCLDB 1 orcldb1<br \/>\n\u00a0\u00a0\u00a0 Specify the Report Type<br \/>\n\u00a0\u00a0\u00a0 ~~~~~~~~~~~~~~~~~~~~~~~<br \/>\n\u00a0\u00a0\u00a0 Would you like an HTML report, or a plain text report?<br \/>\n\u00a0\u00a0\u00a0 Enter \u2018html\u2019 for an HTML report, or \u2018text\u2019 for plain text<br \/>\n\u00a0\u00a0\u00a0 Defaults to \u2018html\u2019<br \/>\n\u00a0\u00a0\u00a0 Enter value for report_type: text<br \/>\n\u00a0\u00a0\u00a0 Type Specified: text<br \/>\n\u00a0\u00a0\u00a0 Instances in this Workload Repository schema<br \/>\n\u00a0\u00a0\u00a0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br \/>\n\u00a0\u00a0\u00a0 DB Id Inst Num DB Name Instance Host<br \/>\n\u00a0\u00a0\u00a0 \u2014\u2014\u2014\u2014 \u2014\u2014\u2013 \u2014\u2014\u2014\u2014 \u2014\u2014\u2014\u2014 \u2014\u2014\u2014\u2014<br \/>\n\u00a0\u00a0\u00a0 * 2080780909 1 ORCLDB orcldb1 sun880-1<br \/>\n\u00a0\u00a0\u00a0 2080780909 4 ORCLDB orcldb4 sun880-4<br \/>\n\u00a0\u00a0\u00a0 2080780909 2 ORCLDB orcldb2 sun880-2<br \/>\n\u00a0\u00a0\u00a0 2080780909 3 ORCLDB orcldb3 sun880-3<br \/>\n\u00a0\u00a0\u00a0 Using 2080780909 for database Id<br \/>\n\u00a0\u00a0\u00a0 Using 1 for instance number<br \/>\n\u00a0\u00a0\u00a0 Specify the number of days of snapshots to choose from<br \/>\n\u00a0\u00a0\u00a0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br \/>\n\u00a0\u00a0\u00a0 Entering the number of days (n) will result in the most recent<br \/>\n\u00a0\u00a0\u00a0 (n) days of snapshots being listed. Pressing without<br \/>\n\u00a0\u00a0\u00a0 specifying a number lists all completed snapshots.<br \/>\n\u00a0\u00a0\u00a0 Enter value for num_days: 1<br \/>\n\u00a0\u00a0\u00a0 Listing the last day\u2019s Completed Snapshots<br \/>\n\u00a0\u00a0\u00a0 Snap<br \/>\n\u00a0\u00a0\u00a0 Instance DB Name Snap Id Snap Started Level<br \/>\n\u00a0\u00a0\u00a0 \u2014\u2014\u2014\u2014 \u2014\u2014\u2014\u2014 \u2014\u2014\u2014 \u2014\u2014\u2014\u2014\u2014\u2014 \u2014\u2013<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Oracle\u6027\u80fd\u5206\u6790\u5165\u9580\u5b78\u7fd2\u4e2d\uff0c\u9047\u5230Oracle\u6578\u64da\u5eab\u7684\u6027\u80fd\u554f\u984c\uff0c\u58f9\u822c\u9996\u8981\u7684\u6b65\u9a5f\u5c31\u662f\u5c0e\u51faAWR\u7684\u5206\u6790\u5831\u544a\uff0cAW [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[776,2748],"class_list":["post-1869","post","type-post","status-publish","format-standard","hentry","category-oracle","tag-awr","tag-oracle"],"_links":{"self":[{"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/posts\/1869","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/comments?post=1869"}],"version-history":[{"count":0,"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/posts\/1869\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/media?parent=1869"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/categories?post=1869"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/tags?post=1869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}