您好,登录后才能下订单哦!
密码登录
登录注册
点击 登录注册 即表示同意《亿速云用户服务条款》
SQL> begin 2 3 dbms_stats.gather_table_stats(ownname => 'GZ_SAFETY',tabname=>'MB_BSS_USER_LOCATION', partname =>'PART_20170621'); 4 end; 5 / begin dbms_stats.gather_table_stats(ownname => 'GZ_SAFETY',tabname=>'MB_BSS_USER_LOCATION', partname =>'PART_20170621'); end; ORA-20005: objectstatistics are locked (stattype = ALL) ORA-06512: at "SYS.DBMS_STATS",line 24281 ORA-06512: at "SYS.DBMS_STATS",line 24332 ORA-06512: at line 3 查看统计信息锁定情况: select distincttable_name, stattype_locked from user_tab_statistics where table_name ='MB_BSS_USER_LOCATION'; SQL> execdbms_stats.gather_table_stats(ownname => 'GZ_SAFETY',tabname=>'MB_BSS_USER_LOCATION', force=>TRUE); /*强制收集*/ PL/SQL procedure successfully completed SQL> SQL> SQL> exec dbms_stats.unlock_table_stats(ownname=> 'GZ_SAFETY', tabname=>'MB_BSS_USER_LOCATION'); /*解锁*/ PL/SQL procedure successfully completed 补充:解锁schema。 DBMS_STATS.UNLOCK_schema_STATS(user);
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。