Error
Error
If a suitable plan table is not present one can be created by doing the fooling
as the SYS user.
@ORACLE_HOMErdbmsadminutlxplan.sql
CREATE PUBLIC SYNONYM PLAN_TABLE FOR SYS.PLAN_TABLE;
GRANT SELECT, INSERT, UPDATE, DELETE ON SYS.PLAN_TABLE TO PUBLIC;
With this done we can trace a statement.
ALTER SESSION SET SQL_TRACE = TRUE;
SELECT COUNT(*)
FROM dual;
ALTER SESSION SET SQL_TRACE = FALSE;
TKPROF <trace-file> <output-file> explain=user/password@service table=sys.plan_t
able
FRM-40735: ON-LOCK trigger raised unhandled exception ORA-04062
error running report:REP-0081: Error during file I/O operation.
REP-0124: Unable to write to the temporary file.
scafa 3
+---------------------------------------------------------------------------+
Purchasing: Version : 11.5.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
POXBLREL module: Purchase Order and Releases Detail Report
+---------------------------------------------------------------------------+
Current system time is 25-APR-2012 12:24:18
+---------------------------------------------------------------------------+
+----------------------------| Starting concurrent program execution...
+----------------------------Arguments
-----------P_STRUCT_NUM='50285'
P_qty_precision='11'
-----------Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.WE8ISO8859P1
'.,'
REP-0081: Error during file I/O operation.
REP-0124: Unable to write to the temporary file.
scafa 3
Report Builder: Release 6.0.8.28.0 - Production on Wed Apr 25 12:24:18 2012