Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to reslove any error with dbms_redefinition.start_redef_table command?

Apiwat.SNov 12 2015 — edited Nov 12 2015

Command:

BEGIN

dbms_redefinition.start_redef_table(

uname => 'kiku',

orig_table => 'pletest3_pn_kiku_api_db',

int_table => 'pletest4_pn_kiku_api_db');

END;

Error:

Error report:

ORA-12008: error in materialized view refresh path

ORA-14400: inserted partition key does not map to any partition

ORA-06512: at "SYS.DBMS_REDEFINITION", line 50

ORA-06512: at "SYS.DBMS_REDEFINITION", line 1343

ORA-06512: at line 2

12008. 00000 -  "error in materialized view refresh path"

*Cause:    Table SNAP$_<mview_name> reads rows from the view

           MVIEW$_<mview_name>, which is a view on the master table

           (the master may be at a remote site).  Any

           error in this path will cause this error at refresh time.

           For fast refreshes, the table <master_owner>.MLOG$_<master>

           is also referenced.

*Action:   Examine the other messages on the stack to find the problem.

           See if the objects SNAP$_<mview_name>, MVIEW$_<mview_name>,

           <mowner>.<master>@<dblink>, <mowner>.MLOG$_<master>@<dblink>

           still exist.

How to reslove any error with dbms_redefinition.start_redef_table command?

This post has been answered by Saubhik Banerjee on Nov 12 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 10 2015
Added on Nov 12 2015
6 comments
2,479 views