Check for import errors programmatically using datapump api

Hi,
I have pl/sql that imports some tables over DBLink using dbms_datapump. Is there a way to programmatically check that the import job had no errors at all, before proceeding to the next step after the import is completed?
I saw several samples for showing the progress of the import job using while loops and whether it completed or not.
But none explaining how to check whether any of the import steps failed, or if all steps completed successfully.
Thanks,
JGP

check this
[Datapump Demos|http://www.morganslibrary.org/reference/dbms_datapump.html]

Similar Messages

  • Stats Not getting imported while importing partition using DATAPUMP API

    Hi,
    I am using datapump API for exporting a partition of a table and the importing the partition into table on another DB.
    The data is getting imported but i could the partition stats are not getting imported. I am using TABLE_EXISTS_ACTION = APPEND.
    any idea on how to achieve the stats also to be imported into the partition.
    Thanks!

    Hi,
    I am using datapump API for exporting a partition of a table and the importing the partition into table on another DB.
    The data is getting imported but i could the partition stats are not getting imported. I am using TABLE_EXISTS_ACTION = APPEND.
    any idea on how to achieve the stats also to be imported into the partition.
    Thanks!

  • Checking for the condition types using case statement

    hi folks,
    I have a lot of condition types that I have to check for and I am using case statement to do that. The code goes like this.
    case wac-kschl.
            when 'ZRAT' OR 'ZAGR' OR 'ZRCR' OR
                  'Y098' OR 'Y007' OR 'ZREW' OR 'Y106'        OR 'ZTSR' OR 'Y127' OR 'Y125' OR 'Y126' OR 'Y124' OR 'Y157' OR 'Y092' OR 'Y085' OR 'Y090' OR 'ZMZD'
    OR 'Y215' OR 'Y214' OR 'Y111' OR 'ZC$D' OR 'ZAUD'.
    up till here it is working on errors and when I add few more condition types to the case statement it is throwing the error.
    I have to check for all the condition types out here.
    How can I correct it? Is there a better way to do it?
    thanks
    Santhosh

    Hi Santhosh,
    I think that your CASE statement has a flaw. The line length of one of the lines is too large. You need to insert a carriage-return to shorten it (or press the button 'Pretty Printer').
    The code would look nicer like this:[code]  CASE wac-kschl.
        WHEN 'ZRAT' OR 'ZAGR' OR 'ZRCR' OR 'Y098' OR 'Y007' OR 'ZREW'
          OR 'Y106' OR 'ZTSR' OR 'Y127' OR 'Y125' OR 'Y126' OR 'Y124'
          OR 'Y157' OR 'Y092' OR 'Y085' OR 'Y090' OR 'ZMZD' OR 'Y215'
          OR 'Y214' OR 'Y111' OR 'ZC$D' OR 'ZAUD' OR 'Z001' OR 'Z002'
          OR 'Z003' OR 'Z004' OR 'Z005' OR 'Z006' OR 'Z007' OR 'Z008'
          OR 'Z009' OR 'Z010' OR 'Z011' OR 'Z012' OR 'Z013' OR 'Z014'.
        Do your thing here
          WRITE: / 'OK'.
        WHEN OTHERS.
          WRITE: / 'NOT OK'.
      ENDCASE.[/code]If this will not work for you, you could try a different approach:[code]* Local definition
      DATA:
        var_list(1024).
    Build variable string for checking
      CONCATENATE 'ZRAT ZAGR ZRCR Y098'
                  'Y007 ZREW Y106 ZTSR'
                  'Y127 Y125 Y126 Y124'
                  'Y157 Y092 Y085 Y090'
                  'ZMZD Y215 Y214 Y111'
                  'ZC$D ZAUD'
             INTO var_list
        SEPARATED BY space.
    Check if the correct value is supplied
      IF var_list CS wac-kschl.
      Do your thing here
        WRITE: / 'OK'.
      ENDIF.[/code]Hope this helps you a bit.
    Regards,
    Rob.

  • [svn:osmf:] 11848: Added check for argument error DRM subsystem throws while generating a DRMContentInfo Object .

    Revision: 11848
    Revision: 11848
    Author:   [email protected]
    Date:     2009-11-16 10:00:48 -0800 (Mon, 16 Nov 2009)
    Log Message:
    Added check for argument error DRM subsystem throws while generating a DRMContentInfo Object.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/org/osmf/drm/DRMServices.as

    Well, I can tell you that this kind of error is not OS related, but rather a HW thing.  It happens where there is a general detection of something going wrong.  Sometimes it can happen randomly and might not be an indication of a problem.  But sometimes it can be caused by things that are improperly functioning within the system like bad capacitors. 
    Unfortunately I don't really know what to do about such things except give you machine a proper inspection.  But if things are working fine, and continue to do so, I wouldn't worry about it.  If it becomes a regular occurance, then I'd worry.

  • Any solution for 4280 error when using Itunes to burn CDs?

    Any solution for 4280 error when using Itunes to burn CDs?

    http://support.apple.com/kb/TA38101?viewlocale=en_US

  • I am not able to check for update , error comes 1630

    i am not able to check for update , error comes 1630
    so can u help me for solve this problem

    i am not able to check for update , error comes 1630
    so can u help me for solve this problem

  • Data Warehouse:java.lang.NoClassDefFound Error while using OWB API for Java

    I was writing code to use the OWB APIs for Java:
    I have imported the folowing files:
    oracle.owb.connection.RepositoryManager;
    oracle.owb.connection.OWBConnection;
    oracle.owb.connection.ConnectionFailureException;
    when jvm tries to get instance of Repositary Manger by the following code
    reposManager = RepositoryManager.getInstance();
    I get the following exception:
    Exception in thread main
    java.lang.NoClassDefFoundError: com/objectspace/jgl/HashMap
    I have checked my OWB and Java environment but I cant locate com/objectspace/jgl.jar file. Can some one tell me were this jar is located in so i can import it.

    Either use some criteria you develop related to one of the keys on the table or use some sort of record limiting method.
    Note the method of limiting will vary related to the database you are using. You will have to look at the documentation.
    For example I am told this will work in MySQL to get 200 records starting at record 100.
    SELECT * FROM myTable ORDER BY whatever ASC LIMIT 100,200
    Because you are running out of memroy I assume the table is large,
    I am not sure what the impact of the above will have on performance because if in the above if the order by is not based on an index at the server level all the records will be selected and sorted before the records are limited.
    I would make sure you have an appropriate index.
    If you use the advanced search over the user forums using "resultset paging" and possibility the database you are using you should be able to get some ideas.
    I hope this makes sense to you.
    rykk

  • What is Invalid header signature error while using POI API

    Hello all,
    i'm using poi api for extracting the text part from word file while uploading using the POI api. it shows the error
    "Invalid header signature; read 3255307777713450285, expected -2226271756974174256"
    Can anyone help me solve the problem.
    Here's my code:
    <%@ page language="java" import="org.apache.poi.hwpf.extractor.*,java.io.*" %>
    <%-- String fil = request.getParameter("fil"); --%>
    <% ServletInputStream st = request.getInputStream();
    DataInputStream dis = new DataInputStream(st);
    WordExtractor woe = new WordExtractor(dis);%>
    <%String s = woe.getText();
    %>
    thanks a lot...

    Did you find any solution to that??? I am also stuck at such a place...

  • Exclude create user statements using datapump API

    I’m trying to perform a schema import and exclude the "create user" statements using the datapump API but I can’t get the syntax correct for the dbms_datapump.metadata_filter call.
    Using impdp I use a parfile that includes the following statements:
    schemas=bob, john
    exclude=user
    How do I achieve the same effect using the dbms_datapump.metadata_filter API?
    Any assistance greatly appreciated.
    Gavin

    Did you ever figure out your issue? I'm having the same issue after I try to set attributes.

  • How to start approval procedure for a Document/Draft using DI API

    Hi!
    My code imports purchase orders from one non-B1 system to SAP B1 using DI API. The problem is that in B1 system there is an approval process configured and I need the newly created purchase order to enter this approval process.
    Currently this is not done because approval procedure isn't triggered when creating documents using DI API.
    I had an idea to create a draft of PO instead of the PO and then push this draft into approval process somehow. But I can't find a way how to tell DI API to start approval procedure for my draft/document.
    Thank you for your replies!
    Jan

    Unfortunately there is no way to trigger the approval process for any object added through the DI API.
    Your workaround of adding the documents as drafts is as close as you can really come but maybe you could extend it slightly - it will involve a UI API addon:
    Make the addon mandatory, and add a UDF to the user table, for example "U_Approver" and a UDF to PO document, like "U_Approval"
    - Set this U_Approval to yes when adding through DI and add as draft
    - When user opens draft document in the application, check are they an approver (U_Approver = "Y")
    - If they are not, and try to view/add a draft which is flagged as needing approval, block them from adding.
    You could further expand your DI project to send a mail to the approver whenever a draft PO is added.

  • Error while using ego_item_user_attrs_cp_pub API

    Hello All,
    We are using ego_item_user_attrs_cp_pub API to insert UDA's in ego_mtl_sy_items_ext_b table.
    The API will pick the record from ego_itm_usr_attr_intrfc table and the following is the script used.
    DECLARE
    x_message_list Error_Handler.Error_Tbl_Type;
    x_errbuf VARCHAR2(100);
    x_return_status VARCHAR2(100);
    p_debug_level NUMBER:=0;
    p_purge_successful_lines VARCHAR2(100):=FND_API.G_FALSE;
    p_initialize_error_handler VARCHAR2(100):=FND_API.G_FALSE;
    p_validate_only VARCHAR2(100):=FND_API.G_FALSE;
    p_ignore_security_for_validate VARCHAR2(100):=FND_API.G_FALSE;
    p_data_set_id NUMBER;
    BEGIN
    p_data_set_id:=1055513;
    ego_item_user_attrs_cp_pub.process_item_user_attrs_data
    ERRBUF =>x_errbuf
    ,RETCODE =>x_return_status
    ,p_data_set_id =>p_data_set_id
    ,p_debug_level =>p_debug_level
    ,p_purge_successful_lines =>p_purge_successful_lines
    ,p_initialize_error_handler =>p_initialize_error_handler
    ,p_validate_only =>p_validate_only
    ,p_ignore_security_for_validate =>p_ignore_security_for_validate
    commit;
    IF (x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
    DBMS_OUTPUT.PUT_LINE('x_return_status = ' || x_return_status);
    ELSE
    DBMS_OUTPUT.PUT_LINE('Error Messages :');
    Error_Handler.GET_MESSAGE_LIST(x_message_list=>x_message_list);
    FOR i IN 1..x_message_list.COUNT LOOP
    DBMS_OUTPUT.PUT_LINE(x_message_list(i).message_text);
    END LOOP;
    END IF;
    END;
    When we run the script return status is 0 but the process status for the corresponding record in interface table is 3 which means error.The error message are not getting displayed in mtl_interface_errors table too.Could any one please throw some light on this.
    Thanks in advance.
    Regards,
    Sumi.
    Edited by: user11165279 on Aug 11, 2009 9:54 PM
    Edited by: user11165279 on Aug 11, 2009 11:15 PM

    Then there must be an exception handler (hider would be more appropriate) which does not propagate the exception.
    Not knowing your environment, my guess would be inside: ego_item_user_attrs_cp_pub.process_item_user_attrs_data

  • Acrobat X Pro: Check for Updates Error 1007 Updates have been disabled by your system policy

    Because of another Acrobat problem (I won't go into here), today I uninstalled Acrobat Pro 10.1.9 and re-installed Acrobat 10.0.0. I thought I could get back to 10.1.9 by selecting "Check for Updates" after installation. My system is Win7x64 and I'm running as a named user with Administrator rights on a machine that is not part of domain.
    When I select "Check for Updates", I receive a window titled "Adobe Acrobat Updater" that says "Update failed Updates have been disabled by your system policy. Error: 1007 <Close>" About ten seconds later, Acrobat X terminates, leaving this window hanging around.
    What do I do to enable checking for updates?

    Thanks Bill@VT and LeoAdobeX. It's still not working though.
    Over the last few days, Windows System Restore says I have done 4 (four) Remove/Install Pairs. I tried the helpful cleaner you suggested. I knew I probably had some Acrobat9 cruft, so I ran the Acrobat9 and Reader9 cleaners, then the AcrobatX cleaner (I never had ReaderX). I also uninstalled absolutely every Adobe program from my system: Flash Player (three versions), iFilter, Adobe AIR, Amazon Music Importer (relies on Adobe AIR).
    I tried it both as 10.0.0, and installing 10.0.0 and then the 10.1.9 MSP you pointed me to at the "update link" above. I installed as "Trial" mostly, but once with my registration key.
    Starting up Acrobat X still fails epically. Also, every time I've looked, it hasn't solved the "other Acrobat problem" that initiated all of this.
    The most that I've received from Acrobat X today is the splash screen came up once. Only once. Even after a restart of Windows 7, launching AcrobatX from the Start Menu, Desktop or even directly from the EXE under "Program Files (x86) does nothing. I thought it might just be slow the last time, so I took a 15 minute coffee break after attempting to launch. Nothing.
    Ergo, I am looking at Windows System Restore. I miss two days of not being able to read PDF's even if the "other Acrobat problem" remains.
    However, I got a whiff that I have another problem headed my way. I bought update version of Acrobat9 and AcrobatX. I've now wiped all traces of Acrobat9 (and will shortly do another wipe of AcrobatX). The Cleaner log reports "** Info : Installed product not found for upgrade code". The MyAdobe website has all my install codes back to Acrobat4, but I'm not sure I could locate my Adobe 4 CDROM or the intervening CDROM's that would be required to source me back to a full version (maybe Acrobat6?).
    As I understand it, System Restore will do many things but not actually install the program files that I've been writing and deleting from my disk over the last two days. So, I'm going to have to do some install of AcrobatX after I do the System Restore and I now have little hope that even that installation will work to "just put things back the way they were".
    Is AcrobatX supported on Windows7x64 Ultimate? Is there some place to track down what may be the "issues due to the 64-bit system"?
    I have checked the policies under Control Panel->Administrator and there is more to check there. My account is a member of Administrators, which I would think would give me the rights to do just about anything, but when I click on the "Local Security Policy" shortcut, I get a "Group Policy Error: Failed to open the Group Policy Object on this computer. You may not have the appropriate rights. <Close> Details: Unspecified error". I'll chase this down if the System Restore does not make this error go away, but this part is clearly not a problem with Adobe software. All of the Other Admin/MMC Tools like Computer Management open fine.
    Thank you very much for the responses. I found them to be very helpful but I still feel I've got a big problem ahead.

  • Getting error while using CAN api's. Says channel not found in MAX.

    Hi,
    I am using NI-CAN series2, can card. The same is not connected to my system. Hence i have used the virtual channel 256. Here i am reading the DBC file and providing an option to the user to select a set of messages to transmitt\receive. But i am getting an error saying
    "Error -1074388479 occurred at CAN Get Channel Data Type.vi
    Possible reason(s):
    NI-CAN:  (Hex 0xBFF62201) Channel not found in MAX or the CAN database file.  Solutions: Check for proper spelling using MAX; For Get/Set Property, ensure that the channel name exists in the task."
    Please help.
    Regards,
    Yogesh

    Hi Marshall,
    Thanx for the reply and spending time for the same. I tried the example which u had mentioned. This example is working with 256 virtual channel. But my code is no executing and giving he same problem even after loading the DBC file into max(Same loaded im my code). Always load the dbc file in max and then only i should run the code, is it so? But this can not happen, since the user may not hav max. I hav attached the code. Pls verify it, and give me the feedback.
    Waiting for the reply,
    Yogesh
    GET
    Larsen & Toubro
    India
    Attachments:
    CanMsgFrame.vi ‏68 KB

  • Import Error when using Apple Lossless

    Thanks to all in advance for their help. I have iTunes l0.1.1.4 running on several Windows 7 computers and am currently getting an error when I try to import a CD using ALC.
    The error message says "Error occurred while converting the file "Song name". An unknown error occurred (-39)."
    This also happens when I try to convert to using AAC. But as an experiment, I was able to import using either WAV or AIFF formats. I also can play CDs directly so I would assume hardware isn't the fault.
    I do have another computer running XP and iTunes 10.1.1.4 and am able to import using ALC so my guess is there's something between iTunes and Windows 7 that's causing the issue.
    Again, thank you in advance for any guidance and apologies if this has been covered in another string.

    I think I may have stumbled onto my own solution. On the WinXP machine that was letting me import ALC successfully, I had my C:drive set as the destination for the import files. I changed that setting to a Network Attached Storage (NAS) device and suddenly could no longer import using ALC. I reset back to the C:drive and it worked, confirming that the conflict was between iTunes and the NAS or my Network.
    I then reset the destination on my Win7 machine to also use a folder on the c:drive as the file destination and that solved in there as well.
    So, if anyone can shed light on why importing/compressing to ALC/sending to a non-c:drive location is causing a failure, I'm listening.
    And hopefully this solution will help someone else along the way.

  • ORA-39070 Error  when using datapump and writing to ASM storage

    I am able to export data using datapump when i write to a file system. However, when i try to write to an ASM storage, i get the following errors.
    ORA-39002: invalid operation
    ORA-39070: Unable to open the log file.
    ORA-29283: invalid file operation
    ORA-06512: at "SYS.UTL_FILE", line 536
    ORA-29283: invalid file operation
    below are the steps i tooks.
    create or replace directory jp_dir2 as '+DATA/DEV01/exp_dir';
    grant read,write on directory jp_dir2 to jpark;
    expdp username/password schemas=testdirectory=jp_dir2 dumpfile=test.dmp log=test.log
    Edited by: user564785 on Aug 25, 2011 6:49 AM

    google: expdp ASM
    first hit:
    http://asanga-pradeep.blogspot.com/2010/08/expdp-and-impdp-with-asm.html
    "Log files created during expdp cannot be stored inside ASM, for log files a directory object that uses OS file system location must be given. If not following error will be thrown
    ORA-39002: invalid operation
    ORA-39070: Unable to open the log file.
    ORA-29283: invalid file operation
    ORA-06512: at "SYS.UTL_FILE", line 536
    ORA-29283: invalid file operation
    "

Maybe you are looking for

  • Trying to update new iPod Touches to iOS 4.1 NOT 4.2 in iTunes 9.2.1

    I have older eMac 1GHz PowerPC G4 running 10.4.11 Tiger. Have iTunes 9.2.1 because iTunes 10 isn't supported by tiger. Just bought my kids iPod Touch 2nd gen with iOS 3.1.3 on them. I have same Touch (all gotten from Apple refurbed) and mine has been

  • Android running Adobe Reader can't view PDF

    My Android running Adobe Reader can't view Adobe PDF attachments that someone has emailed me through Exchange Server. I can, however, read the same PDF attachments if I receive said PDFs in my Gmail account. Please advise. Thanks, Jonathan Smith

  • Column order in screen painter

    Hello all, After creating a form in screen painter the column are not showing in the order they are shown in screen painter. I checked the .srf file and the order of the columns is correct, but when SAP B1 opens the form the matrix has the order of t

  • How to implement a simple node-edge graph?

    Can any one give me some advice on how to implement a simple node-edge graph in a frame? Every node is a rectangle which can be moved by mouse, and every edge is a arc between two nodes. Should the node class extend JPanel, and the edge class extend

  • Problems with MSSQL DB

    Hi, Here R3 DB is MSSQL. Wen i use the sme sql commands like select,insert etc., its going to dump. Then I tested with another R3 server whose DB is ORACLE, there the code is working 5n. How to solve this problem, How can i use sql commands by using