{"id":2223,"date":"2019-08-02T13:25:54","date_gmt":"2019-08-02T11:25:54","guid":{"rendered":"http:\/\/les-fougs.com\/wordpress\/?p=2223"},"modified":"2019-08-12T08:46:25","modified_gmt":"2019-08-12T06:46:25","slug":"statspack","status":"publish","type":"post","link":"http:\/\/les-fougs.com\/wordpress\/2019\/08\/02\/statspack\/","title":{"rendered":"STATSPACK"},"content":{"rendered":"<p>Probl\u00e8me : (sur pdtb11 base TCEDU)<\/p>\n<pre>ORA-01654: unable to extend index PERFSTAT.STATS$LIBRARYCACHE_PK by 128 in\r\ntablespace STATSPACK\r\nORA-06512: at \"PERFSTAT.STATSPACK\", line 5081\r\nORA-06512: at \"PERFSTAT.STATSPACK\", line 105\r\nORA-06512: at line 1<\/pre>\n<p>il faut purger les stats.<\/p>\n<p>Dans une fen\u00eatre sqlplus lancer la purge via sppurge.sql :<\/p>\n<p>pdtb11.ft.grp<br \/>\nora112\/o&#8230;<\/p>\n<p>export ORACLE_SID=TCEDU<br \/>\nsqlplus<br \/>\nsystem\/z&#8230;..<\/p>\n<p><strong>SQL&gt; @$ORACLE_HOME\/rdbms\/admin\/sppurge.sql<\/strong><\/p>\n<p><span style=\"color: #0000ff;\"><em>le script liste les snap_id et leur date<\/em><\/span><\/p>\n<p><span style=\"color: #0000ff;\">&#8230;<\/span><br \/>\n<span style=\"color: #0000ff;\">22517 24 Jul 2019 09:44:32 5 pdtb11.ft.grp<\/span><br \/>\n<span style=\"color: #0000ff;\">22518 24 Jul 2019 10:04:32 5 pdtb11.ft.grp<\/span><br \/>\n<span style=\"color: #0000ff;\">22519 24 Jul 2019 10:24:32 5 pdtb11.ft.grp<\/span><br \/>\n<span style=\"color: #0000ff;\">22520 24 Jul 2019 10:44:32 5 pdtb11.ft.grp<\/span><br \/>\n<span style=\"color: #0000ff;\">22540 02 Aug 2019 13:09:59 5 pdtb11.ft.grp<\/span><br \/>\n<span style=\"color: #0000ff;\">Warning<\/span><br \/>\n<span style=\"color: #0000ff;\">~~~~~~~<\/span><br \/>\n<span style=\"color: #0000ff;\">sppurge.sql deletes all snapshots ranging between the lower and<\/span><br \/>\n<span style=\"color: #0000ff;\">upper bound Snapshot Id&rsquo;s specified, for the database instance<\/span><br \/>\n<span style=\"color: #0000ff;\">you are connected to. Snapshots identified as Baseline snapshots<\/span><br \/>\n<span style=\"color: #0000ff;\">which lie within the snapshot range will not be purged.<\/span><\/p>\n<p><span style=\"color: #0000ff;\">It is NOT possible to rollback changes once the purge begins.<\/span><br \/>\n<span style=\"color: #0000ff;\">You may wish to export this data before continuing.<\/span><\/p>\n<p><span style=\"color: #0000ff;\">Specify the Lo Snap Id and Hi Snap Id range to purge<\/span><br \/>\n<span style=\"color: #0000ff;\">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/span><br \/>\n<span style=\"color: #0000ff;\">Enter value for losnapid: 4001\u00a0\u00a0<span style=\"color: #000000;\"><em>entrer le premier SNAP_ID \u00e0 supprimer<\/em><\/span><\/span><br \/>\n<span style=\"color: #0000ff;\">Using 4001 for lower bound.<\/span><\/p>\n<p><span style=\"color: #0000ff;\">Enter value for hisnapid: 5802\u00a0<em><span style=\"color: #000000;\">entrer le dernier SNAP_ID \u00e0 supprimer<\/span><\/em><\/span><br \/>\n<span style=\"color: #0000ff;\">Using 5802 for upper bound.<\/span><\/p>\n<p><span style=\"color: #0000ff;\">Deleting snapshots 4001 &#8211; 5802.<\/span><\/p>\n<p><span style=\"color: #0000ff;\">Number of Snapshots purged: 1802<\/span><br \/>\n<span style=\"color: #0000ff;\">~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/span><\/p>\n<p><span style=\"color: #0000ff;\">Purge of specified Snapshot range complete.<\/span><\/p>\n<p><span style=\"color: #0000ff;\">SQL&gt; QUIT<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Probl\u00e8me : (sur pdtb11 base TCEDU) ORA-01654: unable to extend index PERFSTAT.STATS$LIBRARYCACHE_PK by 128 in tablespace STATSPACK ORA-06512: at &laquo;&nbsp;PERFSTAT.STATSPACK&nbsp;&raquo;, line 5081 ORA-06512: at &laquo;&nbsp;PERFSTAT.STATSPACK&nbsp;&raquo;, line 105 ORA-06512: at line 1 il faut purger les stats. Dans une fen\u00eatre sqlplus lancer la purge via sppurge.sql : pdtb11.ft.grp ora112\/o&#8230; export ORACLE_SID=TCEDU sqlplus system\/z&#8230;.. SQL&gt; @$ORACLE_HOME\/rdbms\/admin\/sppurge.sql le &hellip; <a href=\"http:\/\/les-fougs.com\/wordpress\/2019\/08\/02\/statspack\/\" class=\"more-link\">Continuer la lecture<span class=\"screen-reader-text\"> de &laquo;&nbsp;STATSPACK&nbsp;&raquo;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[37],"tags":[],"_links":{"self":[{"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/posts\/2223"}],"collection":[{"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/comments?post=2223"}],"version-history":[{"count":2,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/posts\/2223\/revisions"}],"predecessor-version":[{"id":2227,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/posts\/2223\/revisions\/2227"}],"wp:attachment":[{"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/media?parent=2223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/categories?post=2223"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/tags?post=2223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}