ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Truncate Stats pack data

Truncate Stats pack data

原创 Linux操作系统 作者:licheng79 时间:2011-10-24 16:34:49 0 删除 编辑

DBA Notes: 2011/10/20

Cheng Li

 

Truncate Stats pack data

 

For DBA routine operation, we meet a warning as following:

 

Issue:

Subject: EVENT Oracle DB Kenan Prod storage events WARNING

Name : Oracle DB Kenan Prod storage events Target Name : CTMCAT Target Type : Database Node Name : kenandb.ctm.plc.cwintra.com Status : WARNING

Tablespace Full

Tablespace TOOLS is 95.66% full.  22720.0 KBytes of free space remain.

WARNING

Oct 19 2011 06:31:06 AM

 

This tablespace is allocated for stats pack usage.

 

Solution:

 

SQL> conn perfstat/perfstat@ctmcat

Connected.

SQL> select instance_name from v$instance;

 

INSTANCE_NAME

----------------

CTMCAT

 

SQL> @$ORACLE_HOME/rdbms/admin/sptrunc.sql

 

Warning

~~~~~~~

Running sptrunc.sql removes ALL data from Statspack tables.  You may wish to export the data before continuing.

 

About to Truncate Statspack Tables

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If would like to exit WITHOUT truncating the tables, enter any text at the begin_or_exit prompt (e.g. 'exit'), otherwise if you would like to begin the truncate operation, press

 

Enter value for begin_or_exit:

Entered  at the 'begin_or_exit' prompt

 

Beginning truncate operation

Table truncated.

1159 rows deleted.

1 row deleted.

Commit complete.

Package altered.

Truncate operation complete

 

SQL> exit

Disconnected from Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production With the Partitioning option JServer Release 9.2.0.7.0 - Production $

 

 

Reference:

野兽拖鞋.jpg

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26136400/viewspace-709600/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-09-07

  • 博文量
    54
  • 访问量
    84439