begin 2 3 dbms_stats.gather_table_stats(ownname => GZ_SAFETY ,tabname=> MB_BSS_USER_LOCATION ..."/>
您好,登錄后才能下訂單哦!
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 查看統(tǒng)計(jì)信息鎖定情況: 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); /*強(qiáng)制收集*/ 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 補(bǔ)充:解鎖schema。 DBMS_STATS.UNLOCK_schema_STATS(user);
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。