SQLSETAUTOTRACEONSQLSELECTSYSDATEFROMDUAL; sysdate------------26- September-12 execution plan execution ERROR: anuncaughterrorinfunctiondisplayhashappened; pleasecontactOraclesupportPlease
SQL set autotrace on SQL SELECT SYSDATE FROM DUAL; SYSDATE -------------- 26-9 month-12 execution plan warning ERROR: anuncaughterror in function displayhashappened; pleasecontactOracle support Please
- SQL> SET AUTOTRACE ON
- SQL> SELECT SYSDATE FROM DUAL;
- SYSDATE
- --------------
- 26-9-12
- Execution Plan
- ----------------------------------------------------------
- ERROR: an uncaught error in function display has happened; please contact Oracle
- Support
- Please provide also a DMP file of the used plan table PLAN_TABLE
- ORA-00904: "OTHER_TAG": Invalid identifier
- Statistics
- ----------------------------------------------------------
- 0 recursive cballs
- 0 db block gets
- 0 consistent gets
- 0 physical reads
- 0 redo size
- 347 bytes sent via SQL * Net to client
- 338 bytes encoded ed via SQL * Net from client
- 2 SQL * Net roundtrips to/from client
- 0 sorts (memory)
- 0 sorts (disk)
- 1 rows processed
Solution:
Need to recreate or upgrade the plan table, it is still the 8i one.
Please drop the table and run
SQL> drop table PLAN_TABLE;
The table has been deleted.
SQL> @ C: \ oracle \ product \ 10.2.0 \ client_2 \ RDBMS \ ADMIN \ utlxplan. SQL
The table has been created.
- SQL> SET AUTOTRACE ON
- SQL> SELECT SYSDATE FROM DUAL;
- SYSDATE
- --------------
- 26-9-12
- Execution Plan
- ----------------------------------------------------------
- Plan hash value: 1388734953
- -----------------------------------------------------------------
- | Id | Operation | Name | Rows | Cost (% CPU) | Time |
- -----------------------------------------------------------------
- | 0 | select statement | 1 | 2 (0) | 00:00:01 |
- | 1 | fast dual | 1 | 2 (0) | 00:00:01 |
- -----------------------------------------------------------------
- Statistics
- ----------------------------------------------------------
- 0 recursive cballs
- 0 db block gets
- 0 consistent gets
- 0 physical reads
- 0 redo size
- 347 bytes sent via SQL * Net to client
- 338 bytes encoded ed via SQL * Net from client
- 2 SQL * Net roundtrips to/from client
- 0 sorts (memory)
- 0 sorts (disk)
- 1 rows processed
- SQL>
Ps: view the execution plan. You can also use [Oracle] to view the SQL Execution Plan-DBMS_XPLAN Package