DUPLICATE PLEASE IGNORE verify impdp completed successfully then send email

Hi,
I am creating a daily job refresh a test database.
Basic steps
1. kill all sessions/connections to database.
2. drop schema 1 and schema 2
3. impdp schema 1 and schema 2
4. verify that impdb completed successfully. If job did not complete successfull send an email to DBA. If job did completed successfully sent email to developers stating that database has been refreshed.
I am in a windows enviorment so I do not have GREP to read my log file. With a script, how to I determine if the refresh/impdp completed successfully?
Edited by: user9934078 on Jan 14, 2010 1:59 PM

Hi,
I am creating a daily job refresh a test database.
Basic steps
1. kill all sessions/connections to database.
2. drop schema 1 and schema 2
3. impdp schema 1 and schema 2
4. verify that impdb completed successfully. If job did not complete successfull send an email to DBA. If job did completed successfully sent email to developers stating that database has been refreshed.
I am in a windows enviorment so I do not have GREP to read my log file. With a script, how to I determine if the refresh/impdp completed successfully?
Edited by: user9934078 on Jan 14, 2010 1:59 PM

Similar Messages

  • Verify impdp completed successfully then send email

    Hi,
    I am creating a daily job refresh a test database.
    Basic steps
    1. kill all sessions/connections to database.
    2. drop schema 1 and schema 2
    3. impdp schema 1 and schema 2
    4. verify that impdb completed successfully. If job did not complete successfull send an email to DBA. If job did completed successfully sent email to developers stating that database has been refreshed.
    I am in a windows enviorment so I do not have GREP to read my log file. With a script, how to I determine if the refresh/impdp completed successfully?
    Edited by: user9934078 on Jan 14, 2010 1:58 PM

    I wanted to share this code that I created. It checks that your expdp log file, then sends an html email based on the completion status.
    Hope this helps someone
    --THIS CODE READS THE DATA PUMP EXPORT LOG AND CHECKS FOR ERRROS. THEN SENDS EMAIL.
    DECLARE
    vinhandle utl_file.file_type;
    vnewline VARCHAR2(32767);
    statusMessage VARCHAR2(32767);
    jobName     VARCHAR2(32767) := 'ORACLE Scheduled Task: MWFPROD backup completed on \\MWFDBPRODSVR ';
    styleCSS VARCHAR2(32767) := '<style>BODY {font-family: Arial, Verdana; margin-top: -9px; background-color:#FFFFFF; font-size:12px;} A {font-family: Arial, Verdana;} A:link {text-decoration: underline; color:#003399;} A:visited {text-decoration: underline; color:#003399;} A:hover {text-decoration: underline; color:#003399;} A:active {text-decoration: underline; color:#003399;} B {font-size:12px;} TABLE {border-width: 0px; border-spacing: 0;border-style: solid; border-color: #E7E7E7; border-collapse: collapse;}TH {border-width: 0px; padding: 2px 10px 2px 5px ; border-style: solid; border-color:#333399; font-size: 12px; color:#FFFFFF; background-color:#333399; text-align:left;} TD {border-width: 0px; padding: 2px 10px 2px 5px ; border-style: solid; border-color:#E7E7E7; font-size: 12px;} .redAlert{FONT-WEIGHT: bolder;FONT-SIZE: 12px; COLOR: #FF4976;}</style>';
    jobCompleted BOOLEAN := FALSE;
    startLine VARCHAR2(32767);
    startTime VARCHAR2(32767);
    endTime     VARCHAR2(32767);
    totTime     VARCHAR2(32767);
    BEGIN
    vinhandle := utl_file.fopen('DATA_PUMP_DIR','MWFPRODexport.log','R');
    LOOP
    BEGIN
         utl_file.get_line(vinhandle, vnewline);
    IF instr(vnewline,'successfully completed') > 0 THEN
    jobCompleted := TRUE;
    END IF;
    IF instr(vnewline,'Export:') > 0 THEN
    startLine := vnewline;
    startTime := vnewline;
    END IF;
         --GET LAST LINE OF LOG. THIS IS USED FOR END TIME AND MESSAGES
         statusMessage := vnewline;
    EXCEPTION
    WHEN others THEN
    EXIT;
    END;
    END LOOP;
    startTime := substr(startTime,instr(startTime,':',1,2)-2,length(startTime));
    endTime := substr(statusMessage,instr(statusMessage,' at ') + 4,length(statusMessage));
    --GET DURATION OF JOB
    --totTime := ( to_char(trunc(sysdate) +(TO_DATE(endTime,'HH24:MI:SS') - TO_DATE(startTime,'HH24:MI:SS')) ,'HH24:MI:SS')); 
    totTime := ( to_char(trunc(sysdate) +(TO_DATE(endTime,'HH24:MI:SS') - TO_DATE(startTime,'HH24:MI:SS')) ,'HH24')) || ' hours, ';
    totTime := totTime || ( to_char(trunc(sysdate) +(TO_DATE(endTime,'HH24:MI:SS') - TO_DATE(startTime,'HH24:MI:SS')) ,'MI')) || ' minutes, ';
    totTime := totTime || ( to_char(trunc(sysdate) +(TO_DATE(endTime,'HH24:MI:SS') - TO_DATE(startTime,'HH24:MI:SS')) ,'SS')) || ' seconds';
    if jobCompleted then
    UTL_MAIL.send(sender => '[email protected]',
    recipients => '[email protected]',
    subject => jobName,
    message => styleCSS ||'<br><table><tr><td><b>DURATION:</b></td><td>' || totTime || '</td></tr><tr><td><b>STATUS:</b></td><td> Succeeded </td></tr>' || '<tr><td><b>JOB RUN:</b></td><td>' || startLine || '</td></tr>' || '<tr><td><b>MESSAGES:</b></td><td>' || statusMessage || '</td></tr></table>',
    mime_type => 'text/html; charset=windows-1250');
    else
    UTL_MAIL.send(sender => '[email protected]',
    recipients => '[email protected]',
    subject => jobName,
    message => styleCSS ||'<br><table><tr><td><b>DURATION:</b></td><td>' || totTime || '</td></tr><tr><td><b>STATUS:</b></td><td class=redAlert> Failed </td></tr>' || '<tr><td><b>JOB RUN:</b></td><td>' || startLine || '</td></tr>' || '<tr><td><b>MESSAGES:</b></td><td>' || statusMessage || '</td></tr></table>',
    mime_type => 'text/html; charset=windows-1250');
    end if;
    utl_file.fclose(vinhandle);
    END fopen;
    exit;

  • I can't open files in the Downloads menu (accidental duplicate, please ignore)

    <pre><i>Locking duplicate thread.
    Please continue here: [[/questions/977970]]
    </i></pre>
    Every time I download a file (either open or save), it never opens automatically, and I can't open it by clicking the entry in the Downloads menu/panel. I am able to "Open Containing Folder" and use the file normally from there, or go to the Library and double click the file, but it is annoying that files that I choose to open don't open.
    I am using Aurora, but the problem persists in the stable version of Firefox.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information. <br>
    '''Note''': ''This will cause you to lose any Extensions and some Preferences.''
    *Open websites will not be saved in Firefox versions lower than 25.
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back soon.

  • 451 4.7.0 Temporary server error. Please try again later. PRX2 on sending emails to Office 365 Business Essentials email.

    I've signed up for Office 365 Business Essentials service, and I have trouble sending and receiving emails. All the messages I send to my email associated with this account get a reply with error message
    451 4.7.0 Temporary server error. Please try again later. PRX2
    Additionally, all the mails I send from Outlook OWA in a browser and with iPhone app are stuck in Drafts folder and are not sent anywhere.
    This is what I tried:
    Checked the mail flow in Exchange admin center. There are no mail rules, no inbound or outbound connectors
    Checked for DNS issues with my domain by clicking "Manage domains" in Admin center. Message was "barsukov.net domain is set up correctly. No action is
    required."
    Checked the MX records of my domain, barsukov.net, which point to a correct domain suggested by Microsoft.
    Most of the search results related to this error suggest to add entries to hosts file on server with Exchange. This is not applicable to my case, obviously, since I use a cloud version of Exchange.
    How to fix this issue?

    It takes some time for newly added domains to be recognized by the service. If the issue persists, open a case with MS support:
    http://virtualchat.support.microsoft.com/client/default.aspx?siteid=32ECF580-B446-44E5-8B4D-25F0AFE07779&query=Support%20phone%20number

  • Will Apple lock my account then send email with link to register my account? Even ask for Social Security

    Will Apple lock my acct, send me email with link to register again requiring Social Security #? How do I verify request is from Apple?

    Forward Apple Phishing emails to: <[email protected]>

  • HT1725 My purchases are only playing halfway through the song then they jump to the next song even though the download has been completed "successfully". Does this mean an incomplete download? How do I rectify this? Please help

    My purchases are only playing halfway through the songs then they jump to the next song even though the download has been completed "successfully" Does this mean I have to repurchase and download again?

    Delete and redownload.
    You do not pay for redownloads.  Follow the direction:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • Duplicate post - please ignore - sorry! :-(

    Duplicate post - please ignore - sorry! :-(

    I hate sites like this. There's no way to get from one
    sublevel to another
    without going to the top level.
    I suggest you not use fly-out-type menus, but instead, have
    subordinate
    sectional navigation on each page within a given section. You
    can easily do
    this with a single template using Library items in an
    editable region for
    the sectional navigation, or better, using server-side
    includes.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Andrew_G" <[email protected]> wrote in
    message
    news:e3bcqe$1fc$[email protected]..
    > Hi
    >
    > I have eight categories to display in my site
    navigation.
    > Each category has at least one (some have two) levels of
    subcategories.
    > For example for one of the categories :-
    > Health > Level One.
    > Mens Health > Level Two cascading from this.
    > Prostate Trouble > Level three cascading from Mens
    Health.
    >
    > I only want users to see the level ones (Health in the
    example above) on
    > initial browsing of the site and then by clicking on
    these the associated
    > sub-categories (of that category only) will be
    displayed.
    > How can I organise my navigation using templates or
    libraries to allow
    > this?
    > With only one template it's all or nothing as far as I
    can workout and I
    > suppose what I want is the equivalent of 8 libraries (?)
    to correspond
    > with my
    > 8 navigation headings.
    > I hope this makes more sense to you Dreamweaver experts
    than it does to me
    > reading it back
    > Many thanks
    >
    >

  • Could not buy Line sticker, it shown "Your purchase wasn't completed successfully. Please check your [MY ORDERS] page.".

    Could not buy Line sticker, it shown "Your purchase wasn't completed successfully. Please check your [MY ORDERS] page.".

    I have the same problem. Two days ago, i brought my iPhone overseas to Malaysia (I'm Indonesian) and try to buy in-app item (Line Pokopang). But it can't be completed, it shown "your account doesn't exist"  and after i return to Indonesia, and try to make purchase on Line stickers, it shown "Your purchase.....", same as you got.
    I think the error message was from Line, not Apple because i can still buy ring tones, CMIIAW..
    And everytime i want to buy in-app item (Line games item), i can't be done. It shown many type of error message, depends on the game, such as "failed to purchase ruby", etc etc...

  • I get an error when attempting to start genius. It says "Unsuccessful Action: The action you attempted to perform did not complete successfully. Please try again later." Help!

    I get an error when attempting to start genius. It says "Unsuccessful Action: The action you attempted to perform did not complete successfully. Please try again later." Help!

    From an existing Discussion:
    Go to Safari --> Preferences
    Click Security
    Show Cookies
    Type "apple.com" in to top search field
    Select All
    Click Remove
    Click Done
    Repeat the above to confirm they are gone (mine took two attempts)
    Choose Update Genius again in iTunes.
    iTunes 9 - can't update genius https://discussions.apple.com/thread/2151150

  • I bought my little brother an iPod touch 2nd generation for Xmas so we could text since we love states away but it won't verify and complete updating so I can download the texting apps required by iOS 4 or later can someone tell me how to update it please

    I bought my little brother an iPod touch 2nd generation for Xmas so we could text since we love states away but it won't verify and complete updating so I can download the texting apps required by iOS 4 or later can someone tell me how to update it please

    What exactly happens when you try to update the iPod? What does the error message say?
    Also, are you sure yo have a 2G iPod?
    See:
    Identifying iPod models
    I ask since a 1G can only go to iOS 2.x via iTunes and highest is 3.1.3 via
    Purchasing iOS 3.1 Software Update for iPod touch (1st generation)

  • Data flows are getting started but not completing successfully while extracting/loading of the data

    Hello People,
    We are facing a abnormal behavior with the dataflows in the data services job.
    Scenario:
    We are extracting the data from CRM end in parallel. Please refer the build:
    a. We have 5 main workflows flows i.e :
       => Main WF1 has 6 more sub Wf's in it, in which each sub Wf has 1/2 DF's associated in parallel.
       => Main WF2 has 21 DF's and 1 WFa->with a DF & a WFb. WFb has 1 DF in parallel.
       => Main WF3 has 1 DF in parallel.
       => Main WF4 has 3 DF in parallel.
       => Main WF5 has 1 WF & a DF in sequence.
    b. Regularly the job works perfectly fine but, sometimes it gets stuck at the DF’s without any error logs.
    c. Job doesn’t stuck at a specific dataflow or on a specific day, many a times it strucks at different DF’s.
    d. Observations in the Monitor Log:
    Dataflow---------------------- State----------------RowCnt------LT-------AT------ 
    +DF1/ZABAPDF
    PROCEED
    234000
    8.113      394.164
    /DF1/Query
    PROCEED
    234000
    8.159      394.242
    -DF1/Query_2
    PROCEED
    234000
    8.159      394.242
    Where LT: Lapse Time and AT: Absolute time
    If you check the monitor log, the State of the Dataflow DF1 remains PROCEED till the end, ideally it should complete.
    In successful jobs, the status for DF1  is STOP . This DF takes approx. 2 min to execute.
    The row count for DF1 extraction is 234204 but, it got stuck at  234000.
    Then we terminate the job after sometime,but for surprise it gets executed successfully on next day.
    e. As per analysis over all the failed jobs, same things were observed over the different data flows that got stuck during the execution.Logic related to the data flows is perfectly fine.
    Observations in the Trace log:
    DATAFLOW: Process to execute data flow <DF1> is started.
    DATAFLOW: Data flow <DF1> is started.
    ABAP: ABAP flow <ZABAPDF> is started.
    ABAP: ABAP flow <ZABAPDF> is completed.
    Cache statistics determined that data flow <DF1>
    uses <0>caches with a total size of <0> bytes. This is less than(or equal to) the virtual memory <1609564160> bytes available for caches.
    Statistics is switching the cache type to IN MEMORY.
    DATAFLOW: Data flow <DF1> using IN MEMORY Cache.
    DATAFLOW: <DF1> is completed successfully.
    The highlighted text in the trace log is not appearing in the unsuccessful job but, it appears for the successful one.
    Note: The cache type is pageable cache, DS ver is 3.2.
    Please suggest.
    Regards,
    Santosh

    Hi Santosh,
    just a wild guess.
    Would you be able to replicate all the DF\WF , delete original DF\WF, rename replicated objects to original to DF\WF names(for your convenience)   and excute it.
    Some time reference does not work.
    Hope this should work.
    Regards,
    Shiva Sahu

  • Problem in Background Job. Job Completed Successfully but data not Posted

    Hi All,
    There is a problem in Background Job in Production server (600).
    The job completed successfully but data not posted.
    The same Job was working perfectly till the starting of the May month.
    but now it is not working and rebate has not been posted.
    Where to check and what to check
    Pls suggest.
    Regards,
    P Kamal

    Hi ,
    Please first check the status of the Job , ifs successfully completed then debug it (tcode JDBG) and 
    check out,  whether the values passed (might be using Import-export ,set-get parameter Ids) to the Job are getting passed properly or not. These values might not be getting passed properly.
    If it has some error in Job Log then let me know the error.
    Regards,
    Uma

  • Instance faulted out even all activities are completed successfully

    Hi ,
    My BPEL flow is showing all processes as completed but even then I am not able to see output on the response tab and the error pops as timed out .
    The State of bpel instance is also faulted but when i go to audit trail or the flow I can see that all activities are completed successfully and even at the reply output stage of my synchronous bpel process I can see the output which I want but still I am not able to see the same on response tab and it is faulted out and showing oracle.fabric.common.FabricInvocationException
    Please help.
    Regards,
    Neeraj

    Hi
    I hope this is due to the following reasons
    1) check the response message is assigned correctly.
    2) check the SyncMaxWaitTime value in em console and set it to some higher value like 100 or 200.
    Regards
    Vamsi..

  • ITunes 7 - Install of Quicktime did not complete successfully error on inst

    I have been running the iTunes installer 7.0.2.16 and keep getting the following error.
    "The installation of Quicktime did not complete successfully. iTunes requires Quicktime."
    I had iTunes 6.0.5 installed and have tried uninstalling it and doing the install. No Luck! I have tried installing Quicktime 7.1.3 seperately and then iTunes 7 with no luck as well. The Quicktime 7.1.3 install works fine. I have read the vaious "support" topics from Apple and have tried the "Complete Removal" of all previous files with no luck. I have went through the registry and removed various Quicktime and iTunes entries with no luck. I have ALL Microsoft updates and tried diabling all firewall and virus type programs. I have started the computer with all system tray items turned off and still NO LUCK!
    I am an IT guy by profession and have no problems with any other software or computer. My only guess is that Apple put some Quicktime check in the install routine that is not working. The install does not even get to the file installation portion, it is in the initial "checking" phases of the install.
    I have had this problem for a couple of weeks and this discussion is a final chance to get this working before I too return the iPod that was purchased for XMAS like so many other have posted.
    If you are having the same problem, please post your thoughts here as well. I know there are more of us based on the 50-60 posts I have read!
    APPLE Would you respond with a fix or give me a seperate install of iTunes. I can install Quicktime myself!!!!!!!

    Thank you for your response, but I have went through that list of things to do and so far nothing. I have done the install of the MS Uninstall tool and still nothing. I looked for the QuicktimeVR and other file and they are gone. Quicktime installed perfectly by itself. It is the iTunes + Quicktime that says that it is not installed correctly. Why would the new Quicktime install and then the iTunes installs and says it is not installed? Shouldn't it locate the install and see that it is installed?
    I work in software and been working on computers for many years, this is a check that is done when you build the install routine and the version checker. Can I please just get a stand-alone installer of iTunes without the QT included? You must have one somewhere.....
      Windows XP Pro  

  • Failed to run syspref "Test for CloneTag in registry to verify Sysprep completed"

    Hi All
    After install windows 7 and some application i try to capture and sysypref from running script
    cscript \\server\DeploymentShare\Scripts\LiteTouch.wsf
    i get below error
    <![LOG[FAILURE (Err): -2147024894  0x80070002: Test for CloneTag in registry to verify Sysprep completed. - Unable to open registry key "HKEY_LOCAL_MACHINE\System\Setup\CloneTag" for reading.]LOG]!><time="12:47:30.000+000" date="01-31-2010" component="LTISysprep" context="" type="2" thread="" file="LTISysprep">
    <![LOG[FAILURE ( 6191 ): Test for CloneTag in registry to verify Sysprep completed. - Unable to open registry key "HKEY_LOCAL_MACHINE\System\Setup\CloneTag" for reading.]LOG]!><time="12:47:30.000+000" date="01-31-2010" component="LTISysprep" context="" type="3" thread="" file="LTISysprep">
    <![LOG[Litetouch deployment failed, Return Code = -2147467259  0x80004005]LOG]!><time="12:47:31.000+000" date="01-31-2010" component="LiteTouch" context="" type="3" thread="" file="LiteTouch">
    <![LOG[For more information, consult the task sequencer log ...\SMSTS.LOG.]LOG]!><time="12:47:31.000+000" date="01-31-2010" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Property RetVal is now = -2147467259]LOG]!><time="12:47:31.000+000" date="01-31-2010" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    Thanks ,
    Davide

    Hello
    Just thought I would add my fix for this issue for anyone who is still getting it:
    Go into Services.msc and stop and disable the following service: "Windows Media Player Network Sharing Service"
    Then sysprep continues on past the stage where it gives the warning about the CloneTag key and successfully completes (hopefully!).
    In this instance if you instead manually re-add the CloneTag key the image will give a BSOD on restart if you try to deploy it (mine did anyway).
    It appears the error occurs and the sysprep stage fails so the CloneTag is not set to stop the deployment going any further.
    If the task sequence is failing then it may be better to run a local sysprep and generalize from c:\windows\system32\sysprep\sysprep.exe as this gives better error messages.
    It's also good to build the reference computer image in a virtual machine which you can snapshot before you start so can quickly revert back and try again if it messes up (as mine did a few times until I worked out the cause).
    Your issue may not be the same as mine though but hope it helps someone.
    Robin
    P.S. Looking online it looks like the bug with the windows media sharing service goes back as far as pre RTM builds.
    Robin Wilson
    Thanks, this worked for me trying to sysprep Windows 7 x64 Home Premium.

Maybe you are looking for

  • 10.6.6 update and syncing issues in iTunes with iPhone 4 and Apple TV

    After installing the recent OSX 10.6.6 update, I am receiving the following error messages in iTunes 10.1.1 when trying to sync both my iPhone 4 (iOS v4.2.1) and my 1st generation Apple TV (OS v3.0.2): iPhone error message: "The iPhone cannot be sync

  • Audio problem with Captivate 7

    Hello All, I've had an issue in the past that when I create an MP4 file in Captivate 7 using a windows PC, the volume is too low when the published mp4 file is played on a MAC.  I was able to use the Audio Processing setting under the Adjust Volume c

  • Enter/return key no go in safari

    i created a client login on my page: http://www.reelherofilms.com/ if you enter the password: test and hit the return key on your keyboard it doesn't work in safari, only works if you hit the screen button "enter" it seems to work with both in firefo

  • No preview available for a .psd (CC) in lightroom 5

    the psd file from photoshop cc is not giving a previeuw in lightroom 5

  • I install windows 8 but message said cannot detect bootable disc?

    Hi I am trying to install windows 8 on my mac air but when im done with partioning it cannot detect my bootable device which i have created from bootcamp on my usb drive. Now i'm stuck with the message "Insert Bootable Device and press any key to con