DBMS REDEFINITION Fails With 'ORA-12018: following error encountered during code generation' And 'ORA-00942: table or view does not exist'
Last updated on APRIL 04, 2018
Applies to:Oracle Database - Enterprise Edition - Version 188.8.131.52 to 184.108.40.206 [Release 11.2 to 12.2]
Information in this document applies to any platform.
DBMS REDEFINITION fails with the following error:
SQL> exec dbms_redefinition.start_redef_table(uname=>'<schema_name>', orig_table=>'<table_name>', int_table=>'<interim_table_name>');
ERROR at line 1:
ORA-42008: error occurred while instantiating the redefinition
ORA-12018: following error encountered during code generation for "<schema_name>"."<interim_table_name>"
ORA-00942: table or view does not exist
ORA-06512: at "SYS.DBMS_REDEFINITION", line 56
ORA-06512: at "SYS.DBMS_REDEFINITION", line 1498
ORA-06512: at line 1
It fails even on the newly created table.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms