{"id":651,"date":"2017-08-04T09:30:34","date_gmt":"2017-08-04T01:30:34","guid":{"rendered":"http:\/\/www.821121.com\/?p=651"},"modified":"2020-12-04T09:31:14","modified_gmt":"2020-12-04T01:31:14","slug":"sysaux%e8%a1%a8%e7%a9%ba%e9%97%b4%e5%ae%b9%e9%87%8f%e5%bc%82%e5%b8%b8","status":"publish","type":"post","link":"http:\/\/www.821121.com\/?p=651","title":{"rendered":"SYSAUX\u8868\u7a7a\u95f4\u5bb9\u91cf\u5f02\u5e38"},"content":{"rendered":"<p>\u73b0\u8c61<br \/>\n1\u3001SYSAUX\u8868\u7a7a\u95f4\u5bb9\u91cf\u5f02\u5e38\uff0c\u786e\u8ba4\u6ca1\u6709\u4e1a\u52a1\u6570\u636e<br \/>\n2\u3001WRM$\u6253\u5934\u7684\u8868\u5360\u7528\u5927\u91cf\u7a7a\u95f4<br \/>\n\uff08select a.owner,a.segment_name,a.segment_type,a.bytes\/1024\/1024\/1024 from dba_segments a where a.tablespace_name='SYSAUX'  order by 3 desc;\uff09<\/p>\n<p>\u5904\u7406\u6d41\u7a0b<br \/>\n\u68c0\u67e5\u5feb\u7167\u7b56\u7565\u6b63\u5e38<br \/>\nselect * from dba_hist_wr_control;<br \/>\nDBID SNAP_INTERVAL   RETENTION   TOPNSQL CON_ID<br \/>\n3266178832  +00000 01:00:00.0   +00008 00:00:00.0   DEFAULT 0   <\/p>\n<p>\u68c0\u67e5\u53d1\u73b0\u4ece\u5efa\u5e93\u81f3\u4eca\u7684\u5feb\u7167\u4fe1\u606f\u90fd\u8fd8\u4fdd\u7559\u7740<br \/>\nselect min(a.SNAP_ID),max(a.SNAP_ID) from dba_hist_snapshot a;<br \/>\nselect min(SNAP_ID),max(SNAP_ID) from wrm$_snapshot;<\/p>\n<p>\u6e05\u7406\u5386\u53f2\u5feb\u7167<br \/>\nexec dbms_workload_repository.drop_snapshot_range(low_snap_id =&gt; 1,high_snap_id =&gt; 40000,dbid =&gt; 3266178832);<br \/>\n\u6216<br \/>\nbegin<br \/>\ndbms_workload_repository.drop_snapshot_range(<br \/>\nlow_snap_id =&gt; 1,<br \/>\nhigh_snap_id =&gt; 40000,<br \/>\ndbid =&gt; 3266178832);<br \/>\nend;<\/p>\n<p>\u6ce8\u610f\uff1a1\u3001\u6e05\u7406\u5386\u53f2\u5feb\u7167\u4f1a\u4ea7\u751f\u5927\u91cf\u65e5\u5fd7\uff0c\u5360\u7528\u5927\u91cfUNDO \uff0c\u9700\u8981\u7559\u610f\u5f52\u6863\u7b49\u7a7a\u95f4<br \/>\n2\u3001\u6e05\u7406\u540e\u6ce8\u610f\u9a8c\u8bc1\uff0c\u4e2a\u522b\u7248\u672c\u4f1a\u51fa\u73b0\u6ca1\u6cd5\u6e05\u9664\u7684\u60c5\u51b5\uff0c\u53ef\u67e5\u770b\u5b98\u65b9\u6587\u6863ID 1489801.1\u548cID 9797851.8\uff0c\u6253\u4e0a\u5bf9\u5e94\u7684\u8865\u4e01<br \/>\n3\u3001\u8fdb\u4e00\u6b65\u68c0\u67e5\u53d1\u73b0\u73af\u5883\u7684\u81ea\u52a8\u4efb\u52a1\u5728\u5efa\u5e93\u4e4b\u521d\u88ab\u4eba\u4e3a\u505c\u6b62\uff0c\u6682\u65f6\u6ca1\u80fd\u9a8c\u8bc1\u662f\u5426\u4e0eAutomatic Segment Advisor\u4efb\u52a1\u6ca1\u6709\u542f\u7528\u6709\u5173\u3002<\/p>\n<p>\u81ea\u52a8\u4efb\u52a1<br \/>\nselect client_name, task_name, operation_name, status from dba_autotask_task;<br \/>\nselect program_type, program_action, enabled from dba_scheduler_programs where program_name='GATHER_STATS_PROG';<br \/>\nselect window_name, repeat_interval, duration, enabled from dba_scheduler_windows where enabled='TRUE';<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u73b0\u8c61 1\u3001SYSAUX\u8868\u7a7a\u95f4\u5bb9\u91cf\u5f02\u5e38\uff0c\u786e\u8ba4\u6ca1\u6709\u4e1a\u52a1<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,41],"tags":[],"class_list":["post-651","post","type-post","status-publish","format-standard","hentry","category-oracle-11g","category-41"],"_links":{"self":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/651","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=651"}],"version-history":[{"count":1,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/651\/revisions"}],"predecessor-version":[{"id":655,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/651\/revisions\/655"}],"wp:attachment":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=651"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=651"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=651"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}