반응형
출처 :
http://db.necoaki.net/m/post/155
원인: object statistics are locked. It turns out that in 10gR2, when you import (imp or impdp) table without data i.e. structure only, oracle will lock the table statistics.
lock 확인
SQL> select table_name, stattype_locked from dba_tab_statistics where owner = '계정' and stattype_locked is not null;
SQL> exec DBMS_STATS.UNLOCK_TABLE_STATS('owner','table name');
테이블이 너무 많은 경우
SQL> set head off
SQL> set feedback off
SQL> set pages 100
SQL> set line 200
SQL> spool unlock_tb.sql
SQL> select 'exec DBMS_STATS.UNLOCK_TABLE_STATS ('''|| owner ||''','''|| table_name ||''');' from dba_tab_statistics where owner = '계정' and stattype_locked is not null;
SQL> spool off
해서 생성 되는 스크립트를 돌려준다.
http://db.necoaki.net/m/post/155
원인: object statistics are locked. It turns out that in 10gR2, when you import (imp or impdp) table without data i.e. structure only, oracle will lock the table statistics.
lock 확인
SQL> select table_name, stattype_locked from dba_tab_statistics where owner = '계정' and stattype_locked is not null;
SQL> exec DBMS_STATS.UNLOCK_TABLE_STATS('owner','table name');
테이블이 너무 많은 경우
SQL> set head off
SQL> set feedback off
SQL> set pages 100
SQL> set line 200
SQL> spool unlock_tb.sql
SQL> select 'exec DBMS_STATS.UNLOCK_TABLE_STATS ('''|| owner ||''','''|| table_name ||''');' from dba_tab_statistics where owner = '계정' and stattype_locked is not null;
SQL> spool off
해서 생성 되는 스크립트를 돌려준다.
반응형
'ORACLE > TroubleShooting' 카테고리의 다른 글
문서 1556879.1 AS SYSDBA로 접속시 ORA-1031 또는 ORA-1017에 대한 문제 접근 방법 (0) | 2016.10.19 |
---|---|
aix 11.2.0.4 그리드 인스톨 fail _rootpre 실패 (0) | 2015.10.26 |
Ksugetosstat Failed: Op = Slsgetkstat, Location = Slsupdatesta (0) | 2015.05.01 |
mutex 관련 여러가지 (0) | 2014.12.16 |
ORA-600 [kcidr_io_check_common_2] When Using Raw Devices on 11.2.0.2 (문서 ID 1269346.1) (0) | 2014.08.22 |