How reslove an error with the dbms_redefinition.start_redef_table command?

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 path refresh materialized view

ORA-14400: inserted partition key is not mapped with 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 the path of refresh materialized view.

* Cause: Table SNAP$ _ < mview_name > reads lines of sight

MVIEW$ _ < mview_name >, which is a view of the main table

(the master can be on a remote site).  Any

error in this way will cause this error when updating.

For updates of the Rapids, the table < master_owner >. MLOG$ _ < master >

is also referenced.

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

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

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

There is always.

How reslove an error with the dbms_redefinition.start_redef_table command?

As I said before, this may be reproduced if the intermediate table is not created correctly.

SQL> --My database version.
SQL> ----------------------
SQL> SELECT * FROM v$version;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE    11.2.0.1.0      Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production

SQL> ed
Wrote file afiedt.buf

  1  CREATE TABLE not_partitioned_tbl AS
  2*  SELECT object_id,object_name,created,owner FROM all_objects
SQL> /

Table created.

SQL> ALTER TABLE not_partitioned_tbl ADD CONSTRAINT not_partitioned_tbl_pk PRIMARY KEY (object_id);

Table altered.

SQL> CREATE INDEX npt_created ON not_partitioned_tbl(created);

Index created.

SQL> EXECUTE DBMS_STATS.gather_table_stats('SCOTT','NOT_PARTITIONED_TBL',cascade=>true);

PL/SQL procedure successfully completed.

Now, I create the staging table without MAXPARTITION, so not all "created" dates cannot be mapped.

SQL> ed
Wrote file afiedt.buf

  1  CREATE TABLE partitioned_tbl (object_id NUMBER, object_name VARCHAR2(30), created DATE, owner VARCHAR2(30))
  2      PARTITION BY RANGE (created)
  3      (PARTITION pt_2005 VALUES LESS THAN (to_date('01/01/2006','dd/mm/rrrr')),
  4       PARTITION pt_2006 VALUES LESS THAN (to_date('01/01/2007','dd/mm/rrrr')),
  5       PARTITION pt_2007 VALUES LESS THAN (to_date('01/01/2008','dd/mm/rrrr'))
  6      --PARTITION pt_rest VALUES LESS THAN (MAXVALUE) -- Maxpartition  is commented out intentionally.
  7*     )
SQL> /

Table created.

SQL> EXEC DBMS_REDEFINITION.can_redef_table('SCOTT','NOT_PARTITIONED_TBL');

PL/SQL procedure successfully completed.

SQL> conn sys as sysdba
Enter password:
Connected.
SQL> ed
Wrote file afiedt.buf

  1  BEGIN
  2     DBMS_REDEFINITION.start_redef_table('SCOTT','NOT_PARTITIONED_TBL','PARTITIONED_TBL');
  3* END;
SQL> /
BEGIN
*
ERROR at line 1:
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 52
ORA-06512: at "SYS.DBMS_REDEFINITION", line 1646
ORA-06512: at line 2

SQL>

Tags: Database

Similar Questions

  • How to fix the error with the code: 0xe7210001 failed to load powrprof, object: cls

    Hello

    Dose anyone know how to fix the error with the code: 0xe7210001, message: unable to load powrprof, object: CLSD-no-it is found;
    OR: Fingerprintsoftware OR error: replicas THotkey.exe message window and the computer freezes

    Maleware scanned and virus, also in safe mode, found no infection, reinstalled driver fingerprint, but nothing has changed.

    grateful for the help!

    Hello

    > message: unable to load powrprof, object: CLSD-no-it is found;
    In my view, this would mean that there is a problem with Toshiba Power Saver
    What laptop Toshiba, you have exactly?

    Maybe reinstall Power Saver could help. You can find it on the official website of Toshiba.

  • Please help me understand how to install updates with the following error updated Message__The following have not been installed: __Security update for Microsoft XP KB 2289162

    Please help me understand how to install updates with the following error Message

    The following updates were not installed:

    Security for Microsoft XP KB 2289162 update

    See the section "How to get help" of http://support.microsoft.com/kb/2289162

    For individuals, please visit the Microsoft Solution Center and antivirus security for resources and tools to keep your PC safe and healthy.  If you have problems with the installation of the update itself, visit the Microsoft Update Support for resources and tools to keep your PC updated with the latest updates.

    Buying to meet problems installing Microsoft security updates also can visit the following page for assistance: https://consumersecuritysupport.microsoft.com/

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Get "I/o Error" with the 0x8078002A error code when I start a backup.

    * Original title: IO Error Message - I am an amateur

    When I start a backup of my hard drive to my external hard drive, I get an error that reads "I/o Error" with the 0x8078002A error code.  I am a real novice.  I can do either fix it or work around this problem?

    Hello

    Welcome to the Microsoft community.

    Try the steps in these articles:

    Error message when you try to perform a full backup on a Windows Vista-based computer: "" the request could not be performed because of an i/o device error".
    http://support.Microsoft.com/kb/952272
    Note: It is applicable for Windows 7 as well.

    Perform a clean boot:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: After a repair, be sure to set the computer to start as usual as mentioned in step 7 in the Knowledge Base article.

  • Error offline - we are sorry, but there was a communication error with the server. Please try again and if the problem persists, contact Adobe Techincal Suport...  (INVALID_QUERY: XMLList object)?

    After a number of years of service, my Adobe Premiere CS4 gives me the following error message:

    Error offline - we are sorry, but there was a communication error with the server. Please try again and if the problem persists, contact Adobe Technical Support...  (INVALID_QUERY: XMLList object).

    I use this software on an old Dell desktop computer to two year with many members and drive.  It is a stand-alone application, not connected to a server.

    Anyone have any ideas on how to solve this problem?

    I think it has to do with the central resource is no longer supported.  Everything works OK if you ignore the message?

  • How do you communicate with the Apple Watch

    How do you communicate with the Apple Watch

    Hello!

    Welcome to the Apple community. I'm not quite sure what you mean when you say "communicate" with the Apple Watch, so I'll give you a few options that can respond to your request.

    (1) the Apple Watch supports Siri, just like the iPhone and the Mac. To apply, simply say "Hey Siri" while the wrist is triggered, and your watch will respond. Alternatively, you can hold the digital Crown and Siri will be activated. As soon as Siri is activated, you can ask him questions such as "what is the weather today" or "reminder", or "Let's start a workout."

    (2) you can manually send SMS via your Apple Watch by use of Siri, or opening the messaging app. That Siri send your messages, just say 'Hey Siri, send a text < name >' and Siri will open the Messages app and wait to talk to you about your message. If you want to move the Messages app manually, press the digital Crown and will take you to the home screen. In the home screen, select the Messages app (a green icon with a word inside bubble). Any existing message log must appear, and you can type on a given message log and choose to respond.

    (3) If you want to place a phone call using your Apple Watch, you can say "Hey Siri, call < contact name >". If you have several numbers for a particular contact, Siri will ask you what number you want to call. You can also you can present a more specific request like 'Hey Siri, call < contact name >, < number >' with the number favorite is 'work' or 'House' or 'mobile' etc. So the demand go something like "Hey Siri, call Barbra, House".

    If you are still at a loss, with regard to the types of orders that Siri will accept, you can always ask. Say 'Hey Siri, what can you do?' and she will give you a list of commands that she will answer to the.

    If all goes well, I addressed your question. If not, please provide a little more information and I'll do what I can to help you.

    Good luck!

  • Does anyone know how to display along with the app on the Mac App Store in the Sierra of MacOS?

    Does anyone know how to display along with the app on the Mac App Store in the Sierra of MacOS?

    I've just updated to Sierra. Since the upgrade did several reboots. When I discover an app the side also shows "4 +" or similar and I click on the note to view reviews and ratings of customer, a blank screen appears. Everyone knows this or have a way to solve this problem?

    I see even here in Seattle, so I think the question is about the end of Apple.

    By the end of 2012 Mac minis, macOS?  Watch 38 mm silver AL, watchOS 3; iPad 2 Air & iPhone 6 + iOS 10.0.1;  Apple Airport Express

  • Satellite L350-214 - error with the software Reeltime

    Hello

    I have a Satellite L350-214 with Windows 7 Pro and have encountered an error with the software Reeltime, I uninstalled and reinstalled and still get the error below. Any help or assistance would be great

    Tony Miller

    Log name: Application
    Source: Windows Error Reporting
    Date: 2010-11-30 12:27:58
    Event ID: 1001
    Task category: no
    Level: Information
    Keywords: Classic
    User: n/a
    Computer: Tony-TOSH
    Description:
    Fault bucket 1223018385, type 5
    Event name: CLR20r3
    Answer: No available
    Cabin ID: 0
    Signature of the problem:
    P1: tosreeltime.exe
    P2: 1.0.0.0
    P3: 4a769d0e
    P4: WindowsBase
    P5: 3.0.0.0
    P6: 4b5950b7
    P7: a86
    P8: 18
    P9: System.InvalidOperationException
    P10:
    Attached files:
    C:\Users\Tony\AppData\Local\Temp\WER7C9E.tmp.WERIn ternalMetadata.xml
    These files are available here:
    C:\Users\Tony\AppData\Local\Microsoft\Windows\WER\ ReportArchive\AppCrash_tosreeltime.exe_25c5a6496c7 ad44943ce88637e3389e8a80bd45_07f0c745
    Symbol of the analysis:
    Recheck for solution: 0
    Report ID: d5b71327-fc74-11df-a596-00266c333aed
    State: 0
    The event XML:



    1001
    4
    0
    0 x 80000000000000

    37886
    Application
    Tony-TOSH



    1223018385
    5
    CLR20r3
    Not available
    0
    tosreeltime.exe
    1.0.0.0
    4a769d0e
    WindowsBase
    3.0.0.0
    4b5950b7
    A86
    18
    System.InvalidOperationException



    C:\Users\Tony\AppData\Local\Temp\WER7C9E.tmp.WERIn ternalMetadata.xml

    C:\Users\Tony\AppData\Local\Microsoft\Window s\WER\ReportArchive\AppCrash_tosreeltime.exe_25c5a 6496c7ad44943ce88637e3389e8a80bd45_07f0c745


    0
    d5b71327-fc74-11df-A596-00266c333aed
    0


    My system specs

    Hey,.

    If you get this error Reeltime, you should try Ccleaner. There may be a registry problem and CCleaner might solve this problem. This great freeware and easy tool which you can download here:
    http://www.Piriform.com/

    Check this box!

  • Flight Simulator 2004 install stops at 97% say there is an error with the file world.cab

    While the resettlement of fs2004, the installation stops at 97% saying there is an error with the file world.cab, this damaged disc 4.  Someone at - he found a solution to this?

    Thank you

    Well, if, as you say, the disc is damaged. The solution would be to get another drive.

    Although I would have a look at the following:

    Take a look at the following: http://support.microsoft.com/kb/258496

    I hope that, if necessary, you can get a free replacement disc.

  • How 'old' games, files with the extension *.gam

    How 'old' games, files with the extension *.gam?

    I am trying to find and run style old text adventure games.  I downloaded "ccr.gam" but it has nothing related to this extension and I can't find what I need.  HELP please.

    Octavmandru

    Depending on the platform, so that the game was up, there may be an available emulator that will allow you to run them. Looking for the name of the platform and "emulator" can give results. If they are DOS based games, DOSBox is an emulator like this.

  • view next to the documents... How to do that with the new CD?

    With the recent upgrade, I can view documents side by side... How to do that with the new CD? Thank you!

    Hi gregl36778306,

    You can open PDF files in different tabs and see them next.

    To do this, go in "Edit > Preferences > general" and check "open documents as new tabs.." option.

    Kind regards

    Ana Maria

  • How many computers works with the creative cloud for teams?

    How many computers works with the creative cloud for teams?

    Please see the business FAQ: Help & Support Enterprise

    Guinot

  • I'm in photoshop and I'm trying to adjust the pressure of my pen. However, I get this sign of error with the sign of exclamation on the side and the pressure is not resolved.

    I'm in photoshop and I'm trying to adjust the pressure of my pen. However, I get this sign of error with the sign of exclamation on the side and the pressure is not resolved.


    I'm running on Windows 8, I'm using the latest version of Photoshop (2015) and I have a Wacom Intuos tablet. What should I do?

    Thanks, I forgot actually download wacom itself. It works now. Thank you!

  • How to install lightroom with the help of my redemption code

    How to install lightroom with the help of a redemption code?

    Hello

    You can not install lightroom with a redemption code.

    You must use a serial number to install it.

    For the serial number, click on the below mentioned link

    https://redeem.licenses.Adobe.com/getserial

    Enter the code of redemption on the link above and you will get the serial number.

    Thank you and best regards,

    Garima SALAUN

  • communication error with the server. callback failed for the data entry page

    Hello

    We have recently applied the corrective update EMP on EMP 11.1.2.0 111.2.1.
    We have following the architecture,

    database server: sql server 2005
    Server Foundation (OS = windows server 2008): HSS, EPMA, Manager Calc, EAS, EIS, provider's server, planning
    Essbase Server (OS = windows server 2008): essbase

    After you apply the patching EMP 11.1.2.1, we apply after Electrodes for IE 9 compactibility i.e EMP 11.1.2.1.600 patches

    1. patch 14119724 (Workspace)
    2 14142678 patch (Shared services)
    3 patch 14224664 (EPMA)
    4 patch 14464109 (planning)

    After you apply above patches, all users get error when opening planning web form through the workspace of all client computer.

    "* error communication with the server. callback failed for the data entry page. "




    When restore us only planning patch 14464109 , issue of "communication error with the server. callback failed for the data entry page "get resolved for all users, but failed for a single user IE"user xyz" "

    the user xyz have OS = windows 7 and IE 8
    user xyz can take foundation server RDP can open any form of planning successfully in vain get when doing the basic machine.

    I have following question:
    1. Why do we get error "error communicating with the server. callback failed for the data entry page"after you apply the fixes to IE9

    2. after cancellation all patches or planning one patch, why the user xyz always get the error but not other users


    Thanks in advance

    Published by: 922755 on June 7, 2013 16:08

    It might be useful to have a read of the following doc Oracle Support - "error:"error Communication with the server. " "Callback failed for the data entry page" when you open a Web form of planning with the members of the Type of text [ID 1392689.1].

    And then this question should be resolved en.600

    See you soon

    John
    http://John-Goodwin.blogspot.com/

Maybe you are looking for