ORA-20005的解決方法
Applies to:
Oracle Server - Enterprise Edition - Version: 10.2.0.1 to 10.2.0.3
This problem can occur on any platform.
DataPump Import without data (CONTENT=METADATA_ONLY) locks statistics.
Executing the DBMS_STATS.GATHER_TABLE_STATS to collect the statistics on the table imported, it fails with:
ORA-20005: object statistics are locked (stattype = ALL)
This is an expected behavior. in 10.2.0
The statistics are locked during a DataPump Import if export or import were performed with CONTENT = METADATA_ONLY.
This is because automatic statistics gathering is enabled by default in 10g. Therefore, the imported statistics, if not locked, are lost the next time the auto-stats job runs
To avoid the ORA-20005:
- Unlock the table statistics after the import:
execute DBMS_STATS.UNLOCK_TABLE_STATS(' OR - Do not import the table statistics (EXCLUDE=TABLE_STATISTICS impdp parameter) 執行下列SQL ------------------------------ APPLSYS WF_NOTIFICATION_OUT ALL SQL> exec dbms_stats.unlock_table_stats('APPLSYS','WF_NOTIFICATION_OUT'); 問題解決。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-620936/,如需轉載,請註明出處,否則將追究法律責任。
');
SQL> select owner, table_name, stattype_locked from dba_tab_statistics where stattype_locked is not null;
OWNER TABLE_NAME STATT
1 row selected.
PL/SQL procedure successfully completed.
SQL> select owner, table_name, stattype_locked from dba_tab_statistics where stattype_locked is not null;
no rows selected
相關文章
- 解決ora-20005的遊標
- 物件統計資訊鎖定的解決辦法(ORA-20005/ORA-38029)物件
- TabError的解決方法Error
- ArtifactDescriptorException的解決方法Exception
- dns劫持怎麼解決 dns劫持的解決方法DNS
- 遇到問題的解決方法
- 求事務的解決方法
- 金沙不給提款的解決方法
- 跨域的九種解決方法跨域
- pycharm不支援django的解決方法PyCharmDjango
- 解決GitHub打不開的方法Github
- undefined reference to錯誤的解決方法Undefined
- vue命令無效的解決方法Vue
- reCAPTCHA打不開的解決方法APT
- 解決Vue中”This dependency was not found”的方法Vue
- word停止工作的解決方法
- Failed to execute aapt的奇怪解決方法AIAPT
- Stale NFS file handle的解決方法NFS
- 解決Ajax不能跨域的方法跨域
- 解決Oracle死鎖的快捷方法Oracle
- 批量解決oracle鎖等待的方法Oracle
- 禁止ViewState的3種解決方法View
- **PHPNotice:Undefinedindex:…問題的解決方法PHPUndefinedIndex
- PRVF-0002的解決方法
- PHP錯誤“Thisfilehasexpired”的解決方法PHP
- cannot allocate new log 的解決方法
- Google打不開的解決方法Go
- 表空間滿的解決方法
- 解決EXP-00091的方法
- 幾個報錯的解決方法
- EXE病毒解決方法
- get方式傳參的以post方法傳的解決方法
- 指定的網路名不再可用的解決方法
- ORACLE ORA-1652的解決方法Oracle
- localhost拒絕訪問的解決方法localhost
- 依賴衝突時的解決方法
- 視窗被攔截的解決方法
- GoldenGate表異構的解決方法Go