Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Execute Immediate With Renames Returning ORA-04068
I have a procedure with the following code in the body of the function:
EXECUTE IMMEDIATE 'TRUNCATE TABLE PREVIOUS'; EXECUTE IMMEDIATE 'RENAME CX_DVA_PREVIOUS TO TEMP'; EXECUTE IMMEDIATE 'RENAME CURRENT TO PREVIOUS'; EXECUTE IMMEDIATE 'RENAME TEMP TO CURRENT';COMMIT; Basically what my procedure does is shuffle a current table to --> previous and clear out the current table.
But executing this procedure in rapid succession gives me: SQL> exec interface.shuffle_current_table;
PL/SQL procedure successfully completed.
SQL> exec if_dva_inbound.shuffle_current_table; BEGIN interface.shuffle_current_table; END;
*
ERROR at line 1:
ORA-04068: existing state of packages has been discarded
ORA-04061: existing state of package body "INTERFACE.INBOUND" has been
invalidated
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at line 1
Received on Thu Aug 04 2005 - 19:41:48 CDT
![]() |
![]() |