解決 'PLAN_TABLE' is old version
解決 'PLAN_TABLE' is old version
分析sql執行計劃時,遇到
'PLAN_TABLE' is old version
細想起來,資料庫是從低版本升級的,估計是這個原因
解決方法: 刪除plan_table重建
SQL>explain plan for select * from users;
Explained.
SQL>select * from table(dbms_xplan.display);
PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
-----------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost |
-----------------------------------------------------------
| 0 | SELECT STATEMENT | | 455 | 19565 | 4 |
| 1 | TABLE ACCESS FULL| USERS | 455 | 19565 | 4 |
-----------------------------------------------------------
Note
-----
- 'PLAN_TABLE' is old version
11 rows selected.
SQL> drop table plan_table purge;
Table dropped.
SQL> @/home/ora10g/product/10.2.0/rdbms/admin/utlxplan.sql
Table created.
SQL>explain plan for select * from users;
Explained.
SQL>select * from table(dbms_xplan.display);
PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
Plan hash value: 3461732445
---------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
---------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 2406 | 86616 | 4 (0)| 00:00:01 |
| 1 | TABLE ACCESS FULL| USERS | 2406 | 86616 | 4 (0)| 00:00:01 |
---------------------------------------------------------------------------
8 rows selected.
對比一下,顯示的內容也不一樣了
[@more@]來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/106358/viewspace-1046111/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORACLE SQL調優之'PLAN_TABLE' is old versionOracleSQL
- 關於如何解決解決The SDK platform-tools version ((25.0.3)) is too old to check APIs compiled with API 26PlatformAPICompile
- you are using an old unsupported version of gradle 1.9Gradle
- 解決The given version [xx] is not supported, only version 1 to 10 is supported in this buildUI
- 執行計劃中Note部分顯示'PLAN TABLE' is old version
- Oracle -- 深入體會PLAN_TABLE、PLAN_TABLE$Oracle
- Oracle --- PLAN_TABLE$和PLAN_TABLE區別Oracle
- 解決Project facet Java version 1.8 is not supported.ProjectJava
- svn This client is too old to work with working copy錯誤解決方案client
- Android Studio錯誤處理Plugin is too old, please update to a more recent versionAndroidPlugin
- 錯誤:Dx unsupported class file version 52.0(解決)
- ORA-01555: snapshot too old的分析與解決
- Unsupported major.minor version 51.0 錯誤解決方案
- hive metastore異常 org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old clientHiveASTApacheProtocolExceptionclient
- “Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured 這個錯誤解決方案SwiftUI
- 解決This version of Visual Studio is unable to open the following projectsProject
- Xamarin中Unsupported major.minor version 52.0問題解決
- ORA-01207: old control file完全解決方案
- 【筆記】使用 plan_table筆記
- 【問題解決】property [elasticsearch.version] is missing for plugin [head]ElasticsearchPlugin
- 使用version引數解決Oracle資料泵版本差異Oracle
- Out With the Old and in With the New
- 【故障解決】ORA-17630: Mismatch in the remote file protocol version client 2REMProtocolclient
- libgomp.so.1: version `GOMP_4.0' not found 解決辦法Go
- 使用version引數解決Oracle資料泵版本差異(引用)Oracle
- java.lang.IllegalArgumentException: Unsupported class file major version xx解決之道JavaException
- 【原創】ORA-00054問題的解決(plan_table在autotrace過程中會被鎖定)
- 關於Unsupported major.minor version 52.0報錯問題解決方案
- idea 提示 string template are not supported current JavaScrip Version 的解決【筆記】IdeaJava筆記
- [old]wireless筆記筆記
- 一次JVM_OLD區佔用過高、頻繁Full GC的解決過程JVMGC
- git version 2.5.0.windows.1中文亂碼問題解決方案GitWindows
- 資料庫升級後‘PLAN_TABLE資料庫
- 【故障解決】12c中的APEX,ORA-65346: The PDB version is lower and components
- R語言中package ‘xxxx’ is not available (for R version 3.2.5)解決R語言PackageAI
- windows.old可以刪除嗎?windows.old檔案的刪除方法Windows
- adb server version (31) doesn’t match this client (36); killing… 的解決方法Serverclient
- Java問題解決:Java compiler level does not match the version of the installed Java project facet.JavaCompileProject