How to handle ORA-12053: this is not a valid nested materialized view

Hi,
I've been trying to create nested MV's for a while and encountered with this error and not able to find a solution even after spending lot of time on this.
Here is the problem.
--> I've 3 base tables Tab1, Tab2, Tab3, which r not having pk's on them (restriction).
--> Created logs on these tables.
--> Created 1st level MV's with pk's (from different schema - siebel schema) defined as MV10,MV11,MV12 with required columns from each base table. These mv's r made fast/complete refresh ... doesn't matter much as complete refresh is done fast (tried both .. just in case if thatz the reason for my error msg).
CREATE MATERIALIZED VIEW mv10
REFRESH COMPLETE/FAST
WITH ROWID
AS
select
col1
,col2
FROM siebel.Tab1@dblink _name;
--> Created MV logs on MV10,MV11,MV12.
--> Created 2nd level MV (join MV) that is based on MV10,MV11,MV12 having join and filter coniditions ... and this gives the error.
I think i've followd all the rules for nested MV and Fast Refreshable rules, but for some reason not able to make it work. Plz throw some light on this.
Thanks
Srinivas Vemuri

You will need to use WHEN OTHERS EXCEPTION handler which is not a good idea to do so if you dont handle the same approprialtly then the exception would go un-noticed:
SQL> ed
Wrote file afiedt.buf
  1  begin
  2  execute immediate 'drop table my_Test';
  3  exception
  4  when others then
  5  dbms_output.put_line(SQLCODE||SQLERRM);
  6* end;
SQL> /
-942ORA-00942: table or view does not exist
PL/SQL procedure successfully completed.
SQL>

Similar Messages

  • ORA-01843:This is not a valid month error

    One of our french customer using Oracle 11g R2 on RHEL is getting following error while running a stored procedure:
    ORA-01843: ce n'est pas un mois valide
    20120123::05:41:10 ended rebuilding cmroll table
    The error reported by ORACLE, in French « ce n'est pas un mois valide », means : « This is not a valid month ».I have asked him to verify the following settings on his machine:
    Please run the following query on Oracle Server to get the NLS settings. It specifies the settings both on Oracle client and Server.
    select * from nls_database_parameters;
    select * from nls_instance_parameters;
    However, you can override this setting by specifying the following environment variables in client or server. So kindly verify them  on both as well:
    1.     NLS_LANG
    2.     NLS_LANGUAGE
    3.     NLS_TERRITORYIs there anything further that can help me to trace this error?

    Moazzam wrote:
    ORA-01843: ce n'est pas un mois valide
    Is there anything further that can help me to trace this error?ORA-01843 Sounds a LOT more interesting in French :)
    I have to agree with the others that there is a problem with the code somewhere - again, the implicit conversion sounds promising. Or possibly a language issue (hopefully not)
    You should be getting a line number where the error is occurring. This can sometimes be deceptive; we use a WHEN-OTHERS exception handler but mark the code with a location marker throughout so we can look up errors and their locations in an exceptions table - in other words, the line cited in the error message may/may not be where the error happened. 11g sometimes reports errors on block headers too. There are other ways of finding the line the error is occurring on too, including just looking at the code (which is usually harder). Start by finding the line the error is occurring at.
    The "brute force" approach (if possible find an easier way) is to either use the debugger in a GUI tool or use DBMS_OUTPUT.PUT_LINE to trace your way through executions.
    When you find out where the error is occurring you can use DBMS_OUTPUT.PUT_LINE to display the value, find out what it is, and figure out what is causing the error, and fix it.
    Edited by: riedelme on Mar 13, 2012 7:11 AM

  • Red offline icon in upper corner of pictures in elements organizer. How do I upload so this does not happen?

    When I upload my pictures in organizer there is a red offline icon that appears when I remove my card and the pictures are blurry. How do I upload so this does not happen? 

    From your description, you are uploading from a card reader?
    The normal option is to use 'Import from camera or card reader'. That should automatically copy your picture files to your computer.
    The other option is to use 'Import from files/folders'.
    It is normally used when your pictures are already on your computer.
    But your Explorer can see your card reader as just another disk. Then you have the choice to tick the checkbox to copy the files to the computer at import time, or another checkbox to create a thumbnail. It looks like that was what you did.
    In that case the thumbnail (the preview) is a very small image which becomes 'blurry' if you want to enlarge it.
    For those who want to keep their files on external removeable media (dvds...) but want a suitable thumbnail to show, you can change the size of the preview in the preference menu.

  • Pain't cannot read this file.  This is not a valid bitmap file or it's format is not currently suppo

    Have some photos of a warehouse fire in Plymouth Indiana.  Files were saved as .jpg  Can't get them to open.
    One message is "
    Pain't cannot read this file.  This is not a valid bitmap file or it's format is not currently supported." 
    Couldn’t display DSC-0023.jpg because a suitable graphics importer could not be found.
    Carl Beason
    Windows 7, Photoshop cs4
    Help Please

    As has been suggested above, I would explore Opening the files in another program first, and if successful, just doing a Save_As from that program.
    I do not know how sensitive Paint might be, but Ps really wants the JPEG header info to be well-formed. I often encounter JPEG errors in Ps, and my first stop is to IrfanView (free), or ThumbsPlus (commercial), as both seem much more lenient with JPEG's. I have only had a few files, that nothing on my computer would open. I assume that they were just too corrupt.
    With either my IrfanView, or ThumbsPlus, when Opened, I do a Save_As, and choose a low compression/high-quality JPEG. If you other program supports Save_As PSD, that would be my # 1 choice, and keep JPEG out of the mix from that point on.
    Good luck,
    Hunt

  • "this is not a valid PDF file" message when creating a new document?

    Every time i try and open a new document I get a message that says this is not a valid PDF file?
    Has anyone else recieved this message?

    Sorry, I am out of ideas. Unless anyone else can help I suggest you need to contact support directly. It’s usually possible to start a live chat, if an Adobe agent is free, and often to get problems fixed right away.
    To get help now click here for product support

  • I had Adobe Acrobat Serial loaded before The hard drive crashed on my old PC.  I have tried to download Acrobat 9 on my new PC, but always get the message "This is not a valid serial number".  I had Adobe 9 Standard on the old.  But what downloads from th

    I had Adobe Acrobat Serial loaded before the hard drive crashed on my old PC.  I have tried to download Acrobat 9 on my new PC, but always get the message “This is not a valid serial number”.
    I had Adobe 9 Standard on the old.  But what downloads from the page http://helpx.adobe.com/acrobat/kb/acrobat-8-9-product-downloads.html is Adobe 9 Pro.  Perhaps this Pro version is the problem. 
    Anyway, can you point me to a way to install Adobe on my new PC?

    You can try Download Adobe CS5 Free Trials – All Direct Links without Akamai | ProDesignTools.

  • "This is not a valid Portable Document File" When launching Nik and OnOne plugins.

    Starting today (after the latest Snow Leopard update) I'm getting an error every time I launch a plugin: "This is not a valid Portable Document File".
    Anyone else seeing this behavior?
    Reggie Barton
    Atlanta, GA
    www.BartonCreative.com

    Hi Reggie,
    I only have my 10.5.8 sysytem available at the moment, but will check this tomorrow on my 10.6.4 w/SL Graphics Update. With what plug-ins and versions are you seeing this happen? I know current OnOne plug-ins use the GPU for displaying it's dialog. Have you checked Nik/OnOne forums for similar problems yet?
    regards,
    steve

  • "this is not a valid win32 app" help

    I try and run the following download but I get the old "this
    is not a valid win32 app"?
    http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_10_sa_debug.exe
    Any ideas?

    What OS are you using?
    That download opens fine on my WinXP SP3 machine.

  • Recieving ORA-01722 invalid number error while creating a materialized view

    Hi,
    I am receiving a ORA-01722 invalid number error while creating a materialized view. when run the select statement of the view i don't get any error, but when i use the same select statement to create a materialized view i receive this error. Could any please help in resolving this error. Here is the code i am using to create a materialized view.
    CREATE MATERIALIZED VIEW MV_EBS_CH_CLOSED
    REFRESH FORCE ON DEMAND
    AS
    SELECT DISTINCT kr.request_id, org.org_unit_name,
    ebs_ch_ticket_type (kr.request_id) ticket_type,
    DECODE
    (kr.status_code,
    'CLOSED_SUCCESS', kr.last_update_date,
    'IN_PROGRESS', (SELECT MAX (start_time)
    FROM ebs_ch_datastore ecd1
    WHERE kr.request_id = ecd1.request_id
    AND workflow_step_name =
    'Final BA Review and Deployment Exit Criteria')
    ) closed_date,
    substr(krhd.visible_parameter12,1,10) siebel_start_date,
    kr.creation_date itg_start_date
    FROM kcrt_requests kr,
    kcrt_request_types krt,
    kcrt_req_header_details krhd, kcrt_request_details krd1,
    (SELECT koum.user_id user_id,
    DECODE (koup.org_unit_name,
    'IT Implementations', 'CHS - Service Management BA',
    koup.org_unit_name
    ) org_unit_name
    FROM krsc_org_unit_members koum, krsc_org_units koup
    WHERE 1 = 1
    AND 'Y' = koup.enabled_flag
    AND koum.org_unit_id = koup.org_unit_id
    AND EXISTS (
    SELECT 'X'
    FROM krsc_org_units kouc
    WHERE koup.org_unit_id = kouc.org_unit_id
    START WITH kouc.parent_org_unit_id =
    ANY (SELECT org_unit_id
    FROM krsc_org_units krsc_org_units1
    WHERE 'Clearinghouse' =
    org_unit_name)
    CONNECT BY kouc.parent_org_unit_id =
    PRIOR kouc.org_unit_id)
    UNION
    SELECT kou.manager_id user_id,
    DECODE
    (kou.org_unit_name,
    'IT Implementations', 'CHS - Service Management BA',
    kou.org_unit_name
    ) org_unit_name
    FROM krsc_org_units kou
    WHERE 'Y' = kou.enabled_flag
    START WITH kou.parent_org_unit_id =
    (SELECT org_unit_id
    FROM krsc_org_units krsc_org_units2
    WHERE 'Clearinghouse' = org_unit_name)
    CONNECT BY kou.parent_org_unit_id = PRIOR kou.org_unit_id) org
    WHERE krt.request_type_id = kr.request_type_id
    AND krt.request_type_name IN ('Bug Fix', 'IT Enhancement')
    and kr.REQUEST_ID = krd1.request_id
    and krd1.batch_number = 1
    AND kr.request_id = krhd.request_id
    AND org.user_id in (krd1.parameter4, krd1.parameter5, krd1.parameter7)
    AND ( 'CLOSED_SUCCESS' = kr.status_code
    OR 'IN_PROGRESS' = kr.status_code
    AND kr.request_id IN (
    SELECT request_id
    FROM (SELECT DISTINCT request_id,
    MAX
    (start_time)
    closed_date
    FROM ebs_ch_datastore
    WHERE 'Final BA Review and Deployment Exit Criteria' =
    workflow_step_name
    GROUP BY request_id))
    Thanks,
    Shaik Mohiuddin

    This error occurs when you try to create a materialized view , but if you run the sql the results are perfectly fine. Well it happend to me also and to fix this I made sure all the coulmns have the same data type which are used in joins or in where clause.
    use
    where
    to_number(col1)=to_number(col2) and to_number(col3)=to_number(col4)
    hope this helps..

  • How to handle "The specified resource does not exist" exception while using entity group transactions to purge WADLogs table

    Hi,
    We have a requirement to purge the Azure WADLogs table on a periodic basis. We are achieving this by using Entity group transactions to delete the
    records older than 15 days. The logic is like this.
    bool recordDoesNotExistExceptionOccured = false;
    CloudTable wadLogsTable = tableClient.GetTableReference(WADLogsTableName);
    partitionKey = "0" + DateTime.UtcNow.AddDays(noOfDays).Ticks;
    TableQuery<WadLogsEntity> buildQuery = new TableQuery<WadLogsEntity>().Where(
    TableQuery.GenerateFilterCondition("PartitionKey",
    QueryComparisons.LessThanOrEqual, partitionKey));
    while (!recordDoesNotExistExceptionOccured)
    IEnumerable<WadLogsEntity> result = wadLogsTable.ExecuteQuery(buildQuery).Take(1000);
    //// Batch entity delete.
    if (result != null && result.Count() > 0)
    Dictionary<string, TableBatchOperation> batches = new Dictionary<string, TableBatchOperation>();
    foreach (var entity in result)
    TableOperation tableOperation = TableOperation.Delete(entity);
    if (!batches.ContainsKey(entity.PartitionKey))
    batches.Add(entity.PartitionKey, new TableBatchOperation());
    // A Batch Operation allows a maximum 100 entities in the batch which must share the same PartitionKey.
    if (batches[entity.PartitionKey].Count < 100)
    batches[entity.PartitionKey].Add(tableOperation);
    // Execute batches.
    foreach (var batch in batches.Values)
    try
    await wadLogsTable.ExecuteBatchAsync(batch);
    catch (Exception exception)
    // Log exception here.
    // Set flag.
    if (exception.Message.Contains(ResourceDoesNotExist))
    recordDoesNotExistExceptionOccured = true;
    break;
    else
    break;
    My questions are:
    Is this an efficient way to purge the WADLogs table? If not, what can make this better?
    Is this the correct way to handle the "Specified resource does not exist exception"? If not, how can I make this better?
    Would this logic fail in any particular case?
    How would this approach change if this code is in a worker which has multiple instances deployed?
    I have come up with this code by referencing the solution given
    here by Keith Murray.

    Hi Nikhil,
    Thanks for your posting!
    I tested your and Keith's code on my side, every thing worked fine. And when result is null or "result.count()<0", the While() loop is break. I found you code had some logic to handle the error "ResourceDoesNotExist" .
    It seems that the code worked fine. If you always occurred this error, I suggest you could debug your code and find which line of code throw the exception.   
    >> Is this an efficient way to purge the WADLogs table? If not, what can make this better?
    Base on my experience, we could use code (like the above logic code) and using the third party tool to delete the entities manually. In my opinion, I think the code is every efficient, it could be auto-run and save our workload.
     >>Is this the correct way to handle the "Specified resource does not exist exception"? If not, how can I make this better?
    In you code, you used the "recordDoesNotExistExceptionOccured " as a flag to check whether the entity is null. It is a good choice. I had tried to deleted the log table entities, but I used the flag to check the result number.
    For example, I planed the query result count is 100, if the number is lower than 100, I will set the flag as false, and break the while loop. 
    >>Would this logic fail in any particular case?
    I think it shouldn't fail. But if the result is "0", your while loop will always run. It will never stop. I think you could add "recordDoesNotExistExceptionOccured
    = true;" into your "else" block.
    >>How would this approach change if this code is in a worker which has multiple instances deployed?
    You don't change anything expect the "else" block. It would work fine on the worker role.
    If any question about this issue, please let me know free.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to solve *ORA-28365: wallet is not open*

    hello frined
    please any one can tell me how to open wallent please tell solution of this error
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup plus archivelog command at 12/07/2009 09:11:15
    ORA-19914: unable to encrypt backup
    ORA-28365: wallet is not open
    i dont know the password of wallet :( how can i chenage or know password
    thanks
    kashif ahmed
    Edited by: user8285127 on Dec 6, 2009 9:41 PM

    Hi,
    I request to go through the below links, since it will give an idea, I think you have not yet created the wallet as per knowledge from you post.
    http://www.oracle-base.com/articles/10g/SecureExternalPasswordStore_10gR2.php
    http://www.packtpub.com/article/oracle-wallet-manager
    http://download.oracle.com/docs/cd/B13789_01/network.101/b10772/asowalet.htm
    It will hardly some time, but it will gain knowledge how to use it. Don't skip it.
    - Pavan Kumar N
    Oracle 9i/10g - OCP
    http://oracleinternals.blogspot.com/

  • Why have I been sent an email asking me for my Apple ID and Password. How can I check that this is not a scam.

    I want to know why I have been sent an email from Apple to verify my account by asking for my Apple ID and password.
    how do I know this is genuine and is there a way to check that this is not a scam

    I would be very careful about email asking for your Apple ID and password. These are some of the Official Apple email addresses that would contact you:
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    These email are not to be replied to at all and if the email you receive asks you to reply or has a link that doesn't go the Apple.com or iCloud.com domains, then they are definitely fake.

  • How can I fix the "This is not a test user account, please create a new account in the sandbox environment" error?

    Hi there everyone,
    Recently I tried to make an in-app purchase, I'm not sure whether the app is relevant or not but it was for Tapped Out, however, after trying to make the purchase I received an error message saying "Sign-In Required, tap continue to sign in to check for downloads [Environment: Sandbox]" so I followed the instructions and was then presented with another error message saying "This is not a test user account, please create a new account in the sandbox environment. [Environment: Sandbox]"
    I have been doing a lot of research online trying to find a solution and so far nothing has worked for me, I have also been passing emails backwards and forwards between an Apple Customer Support colleague and are yet to find a working solution.
    Here are a few pieces of information.
    1. I am running iOS 6.1.3 on a 4th Gen iPod, it's relatively new, I got it for Christmas.
    2. My iPod is not, and never has been Jail Broken.
    3. I do not have a test account and have never tried to make my own apps.
    4. I have tried signing out of my Apple ID, resetting my iPod's settings and signing in again.
    5. I have tried resetting my Apple ID password
    6. I have tried restoring my iPod to factory settings.
    If anyone has another suggestion for something I could try it would be greatly appreciated, thanks.

    Yep, I've been reading through other threads on lots of different sites over the last few hours and I can't seem to find a working solution, even though some seem to have worked for other people.
    Most of them hadn't been updated in a while so I made my own post to see if anyone has anything new.

  • How to handle the button "cancel" in a dialog box for displaying views?

    Hello!
    I ve a question about handling the cancel button in a dialog box for displaying views.
    I ve already implemented the dialog box by using the following code:
    METHOD eh_onnewqact.
      DATA stitle TYPE string.
      IF m_popup IS BOUND.
        stitle = cl_bsp_runtime=>get_otr_text( alias = 'ZCC_ICRM/NEW_TASK' )."cl_wd_utilities=>get_otr_text_by_alias( 'ZCC_ICRM/NEW_TASK' ).
        m_popup = comp_controller->window_manager->create_popup(
          iv_interface_view_name = 'ZCC_POPUP_NEWBT/NewQActWindow'
          iv_usage_name = 'CUNewQAct'
          iv_title = stitle
        CALL METHOD m_popup->set_on_close_event
          EXPORTING
            iv_view       = me
            iv_event_name = 'NEWQACT_POPUP_CLOSED'.
      ENDIF.
      m_popup->open( ).
    ENDMETHOD.
    My dialog box consists two buttons - cancel and create.
    The cancel buttons should close the popup and the create button should create an entity of a specified object. but let us come to the cancel button. I did´nt find any information about implementing an cancel button. So, how should I implement it? I thougt
    me->close( ). But that didnt works!
    Could u give me further information about that, because my cancel event-handler is empty?
    method EH_ONCANCEL_QACT.
    endmethod.
    After that I would know how my calling view could know that the user pushes the Create Button and how the data of 2 inputfields of the dialog box finds their way to the calling view in order to process this data there?
    Thank you very much!

    Hi Michael,
    thank you for your advice! This problem is solved...
    ...but I have another issue. Ive implemented 2 editable fields in my popup. The user should fill that fields with context and that context should be processed in the calling view of my popup.
    My question is how to transfer these information from my popup to my calling view or method?
    I tried the following...
          lv_context_node ?= m_popup->get_context_node( 'QUICKACT' ).
          IF lv_context_node IS NOT INITIAL.
            lv_text = lv_context_node->get_date( attribute_path = '' ).
          ENDIF.
    But it doesnt work! The context node object is always empty/initial.
    Thank you!
    PS: Another possibility could be that the object / node of the calling view is transferred to the pop-up in order to process it there.
    Edited by: Marcus Findeisen on Feb 22, 2011 12:13 PM

  • Plz help !!!Error ORA-04023: Object could not be validated or authorized

    Hi Folks,
    Came across this error in AWR reports production oracle 11gR2 database. Did anybody come across this error before or has any idea on this. Pls respond
    ORA-04023: Object SELECT SUM(VALUE), COUNT(INSTANCE_NUMBER), SUM(INSTANCE_NUMBER) FROM DBA_HIST_SYS_TIME_MODEL WHERE DBID = :B4 AND SNAP_ID = :B3 AND INSTANCE_NUMBER MEMBER OF :B2 AND STAT_NAME = :B1 could not be validated or authorized
    thanks

    928912 wrote:
    Hi Folks,
    Came across this error in AWR reports production oracle 11gR2 database. Did anybody come across this error before or has any idea on this. Pls respond
    ORA-04023: Object SELECT SUM(VALUE), COUNT(INSTANCE_NUMBER), SUM(INSTANCE_NUMBER) FROM DBA_HIST_SYS_TIME_MODEL WHERE DBID = :B4 AND SNAP_ID = :B3 AND INSTANCE_NUMBER MEMBER OF :B2 AND STAT_NAME = :B1 could not be validated or authorized
    thankswhat did you do to break this?
    bcm@bcm-laptop:~$ oerr ora 4023
    04023, 00000, "Object %s%s%s%s%s could not be validated or authorized"
    // *Cause: A number of attempts were made to validate or authorize an
    //         object but failed.
    // *Action: Please report this error to Oracle Support Services.

Maybe you are looking for

  • Trailing spaces problem during file content conversion

    I have developed a proxy to file scenario.And am using file content conversion for creating the file. The file is to be a fixed length file. File Structure <Header> <Item> <Item Trailer> <File Trailer> Each tab in the file has the last character mapp

  • Problem with rendered attribute in jhs 10.1.3.3

    We are currently trying to migrate our applications from jhs 10.1.3.2.52 to jhs 10.1.3.3.87 using jdeveloper 10.1.3.5. We are facing a problem with all the detail groups structured inside detail group regions - they have all disappear from the pages.

  • SAP BPC 10.0 Web Client Blank Screen after login

    Hi ALL, We are using SAP BPC 10.0 Web Client with Adobe Flash Player 13.0.0.214 with IE 9.0 on Windows 7.0. We face strange error where on only on certain PC, the BPC web client working.. On other getting Blank/Blank Screen after login (with "movie n

  • Unable to find setter method for attribute:

    I am using Jboss jboss-4.2.3.GA, JDK 1.6. I am trying to deploy our application on Jboss. When loading sources page or whenever we try to load the taglib we are getting the following error. org.apache.jasper.JasperException: jspfile.jsp(67,1) Unable

  • Installing new gateway modem and using a MAC airport -

    I'm upgarding my Comcast modem. The directions don't go into this detail but it looks like I'm supposed to connect the ethernet to the laptop initially. I use a MAC Airport that has worked fine for years. I'm concerned upgrading may create a big head