ORA-20005:object statistics are locked (stattype = ALL)
把生產資料庫得到一個使用者資料匯出到另一個資料庫裡,想收集統計資訊的時候提示:
- ORA-20005:object statistics are locked (stattype = ALL)
既然有鎖,就肯定可以解鎖:
有兩個辦法,一個是對整個使用者下所有的表解鎖:
- DBMS_STATS.UNLOCK_schema_STATS('使用者名稱');
另一個是對單個表解鎖:
a.先查一下當前使用者下那些表的統計資訊被鎖了
- select table_name from user_tab_statistics where stattype_locked is not null;
- dbms_stats.unlock_table_stats('使用者名稱','表名');
c.也可以編輯一個解鎖指令碼
- select 'exec dbms_stats.unlock_table_stats('''||user||''','''||table_name||''');' from user_tab_statistics where stattype_locked is not null;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20893244/viewspace-2155354/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORA-20005: object statistics are locked (stattype = ALL)Object
- ORA-20005: object statistics are lockedObject
- IMP ORA-20005: object statistics are locked(一)Object
- IMP ORA-20005: object statistics are locked(二)Object
- ORA-38029: object statistics are lockedObject
- oracle 由於impdp 引起的表統計資訊被鎖 ORA-20005: object statistics are lockedOracleObject
- oracle 由於impdp 引起的表統計資訊被鎖 ORA-20005: object statistics are lockedOracleObject
- 10g中DBA_TAB_STATISTICS的STATTYPE_LOCKED列對分割槽鎖定顯示為空
- 10g中DBA_TAB_STATISTICS的STATTYPE_LOCKED列對分割槽鎖定顯示為空的解決
- v$lockv和$locked_object的區別Object
- JavaScript Compact Object All In OneJavaScriptObject
- 學習動態效能表(八)-(3)-V$LOCKED_OBJECTObject
- JavaScript object array sort by string bug All In OneJavaScriptObject
- oracle鎖表問題處理 v$lock v$locked_objectOracleObject
- [20120103] alter session set statistics_level = all;Session
- Oracle動態效能檢視學習之v$lock & v$locked_objectOracleObject
- (轉)學習Oracle動態效能表-(3)V$LOCK,V$LOCKED_OBJECTOracleObject
- 關聯v$session,v$locked_object,dba_objects查出鎖死會話及物件SessionObject會話物件
- JVM原始碼分析之Object.wait/notify(All)完全解讀JVM原始碼ObjectAI
- A. Locked Calculator
- Lombok @Locked指南Lombok
- Database StatisticsDatabase
- DELETE STATISTICSdelete
- Statistics related viewView
- Time Model Statistics
- oracle之StatisticsOracle
- Import parameter: STATISTICSImport
- SELECT ... FOR UPDATE SKIP LOCKED;
- httpd dead but subsys lockedhttpd
- Saving Original Statistics and Gathering New Statistics
- SciTech-Mathematics-Probability+Statistics-7 Key Statistics Concepts
- ORA-20005的解決方法
- SciTech-Mathmatics-Probability+Statistics-VI-Statistics:Quantifing Uncertainty + Regression Analysis)AI
- How restore CBO statisticsREST
- Oracle Column Group StatisticsOracle
- Explain for the Statistics of Execution PlanAI
- [PT]Column Histogram StatisticsHistogram
- Statistics and Data Analysis for BioinformaticsORM