AUTO_SPACE_ADVISOR_JOB ERROR ORA-20000

AUTO_SPACE_ADVISOR_JOB ERROR ORA-20000

错误信息如下﹕

ORA-12012: error on auto execute of job 8898

ORA-20000: ORA-20000: Content of the tablespace specified is not permanent or tablespace name is invalid

ORA-06512: at "SYS.PRVT_ADVISOR", line 1624

ORA-06512: at "SYS.DBMS_ADVISOR", line 186

ORA-06512: at "SYS.DBMS_SPACE", line 1344

ORA-06512: at "SYS.DBMS_SPACE", line 1560

这是oracle的一个bug

产生原因﹕

CauseThe problem is when the tablespace is created the statistics are captured for this tablespace.  When the tablespace is
dropped the segments for which the segstats are collected continue to reference the dropped tablespace.  

If you manually remove the tablespace candidate from DBA_AUTO_SEGADV_CTL, it will be referenced again during the next run and continue to fail.

解决方法﹕

用下面的方法选出在dba_auto_segadv_ctl中存在但在dba_tablespaces中不存在的表空间

SQL> select tablespace_name from dba_auto_segadv_ctl

  2  minus

  3  select tablespace_name from dba_tablespaces;

建立上面的SQL语句中执行结果的表空间

create tablespace tablespacename dataflile ‘path/datafilename’ size 1M;

再次执行

SQL> exec dbms_space.auto_space_advisor_job_proc;

成功。

当然你也可以通过打patch来解决。

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

转载于:http://blog.itpub.net/7419833/viewspace-445580/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值