Chinaunix首页 | 论坛 | 博客
  • 博客访问: 238015
  • 博文数量: 59
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 592
  • 用 户 组: 普通用户
  • 注册时间: 2014-04-01 12:51
个人简介

你们都是我的客户,所以,我对你们是透明的

文章分类

全部博文(59)

文章存档

2016年(29)

2015年(30)

分类: Oracle

2016-02-22 13:39:42

QL> EXEC dbms_stats.gather_table_stats(ownname => 'RADINFO ',tabname => upper('PACSFAILEDIMAGES'),degree=>3,cascade=>true,estimate_percent => 10,no_invalidate=>FALSE);
BEGIN dbms_stats.gather_table_stats(ownname => 'RADINFO ',tabname => upper('PACSFAILEDIMAGES'),degree=>3,cascade=>true,estimate_percent => 10,no_invalidate=>FALSE); END;

*
ERROR at line 1:
ORA-20000: Unable to analyze TABLE "RADINFO "."PACSFAILEDIMAGES", insufficient privileges or does
not exist
ORA-06512: at "SYS.DBMS_STATS", line 24270
ORA-06512: at "SYS.DBMS_STATS", line 24332
ORA-06512: at line 1


SQL> EXEC dbms_stats.gather_table_stats(ownname => 'RADINFO ',tabname => 'PACSFAILEDIMAGES',degree=>3,cascade=>true,estimate_percent => 10,no_invalidate=>FALSE);
BEGIN dbms_stats.gather_table_stats(ownname => 'RADINFO ',tabname => 'PACSFAILEDIMAGES',degree=>3,cascade=>true,estimate_percent => 10,no_invalidate=>FALSE); END;

*
ERROR at line 1:
ORA-20000: Unable to analyze TABLE "RADINFO "."PACSFAILEDIMAGES", insufficient privileges or does
not exist
ORA-06512: at "SYS.DBMS_STATS", line 24270
ORA-06512: at "SYS.DBMS_STATS", line 24332
ORA-06512: at line 1


SQL> EXEC dbms_stats.gather_table_stats(ownname => 'RADINFO',tabname => 'PACSFAILEDIMAGES',degree=>3,cascade=>true,estimate_percent => 10,no_invalidate=>FALSE);
BEGIN dbms_stats.gather_table_stats(ownname => 'RADINFO',tabname => 'PACSFAILEDIMAGES',degree=>3,cascade=>true,estimate_percent => 10,no_invalidate=>FALSE); END;

*
ERROR at line 1:
ORA-20005: object statistics are locked (stattype = ALL)
ORA-06512: at "SYS.DBMS_STATS", line 24281
ORA-06512: at "SYS.DBMS_STATS", line 24332
ORA-06512: at line 1


SQL>  exec dbms_stats.unlock_table_stats('RADINFO','PACSFAILEDIMAGES');
PL/SQL procedure successfully completed.

SQL> EXEC dbms_stats.gather_table_stats(ownname => 'RADINFO',tabname => 'PACSFAILEDIMAGES',degree=>3,cascade=>true,estimate_percent => 10,no_invalidate=>FALSE);
PL/SQL procedure successfully completed.


SQL>  exec DBMS_STATS.UNLOCK_schema_STATS('RADINFO');
PL/SQL procedure successfully completed.
阅读(3123) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~