How to stop spooling and get error or status of the statement

Hi All,
I am using the bellow in .sql file to generate a spool file which is called from a shell script.
The issue is whn i kill the job the .csv file is still generated and doesnt thow any error.
Could any one please let me know how to stop spooling if the script end in between or catch the status of the error and email if spooling stops in between.
Please help. Thanks
below is used in .sql
set feedback off
set term off
set trimspool on
set pagesize 0
exec dbms_output.disable
exec dbms_output.enable(40000)
set linesize 2000;
set long 2000;
WHENEVER SQLERROR EXIT 1 ROLLBACK
whenever oserror exit 1 rollback
alter session set global_names=false;
spool  $HOME/data/abc.csv
select statement;
spool off;
exit
sql is called from this script:
#!/bin/ksh
status=`sqlplus -s / @$HOME/sql/extract/abc.sql `
status1=$?
if [ $status1 -ne 0 ]
  then
mailx  -s "Fatal - Error in Extraction process "  [email protected]
fi ____________________________________
Edited by: user11942774 on 1 Mar, 2012 4:07 AM

Hi, dczay, and welcome to the Community,
Sign in to your Skype account via the Skype website; the link to Sign In appears at the upper right corner of the website page.
Cancel the subscription.
Please contact Skype Customer Service to explain the situation and to request a refund.
(The blue type is actually a link to the instruction related to contacting Skype Customer Service and how to request a refund.)
Regards,
Elaine
Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

Similar Messages

  • Question when I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, Peter

    Question
    when I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, Peter

    See this. <br />
    https://support.mozilla.com/en-US/kb/Firefox+hangs#Hang_at_exit

  • When I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, Peter

    Question
    When I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, Peter

    See this. <br />
    https://support.mozilla.com/en-US/kb/Firefox+hangs#Hang_at_exit

  • Getting Error - Cause: Status of the batch is not 'Completed' in OIM 11g R2 during Trusted Recon

    Hi All
    I am new to OIM 11g R2. I am trying to create custom connector for trusted recon. The case is to migrate the users from 10g to 11g R2. The recon event is created but it is in Event Recieved status and when I re-evaluate the event, its giving error - Cause: Status of the batch is not 'Completed'.
    I saw in some posts to change the recon batch size parameter to 0 and restart the server. I have done that but still I am facing the same issue.
    There is no child data in the attribute mapping and user login is set as key.
    Any inputs are welcome on how to get rid of this error.
    Regards
    Vinay

    J_IDM@ I am not passing any OID IT Resource as parametere. Yes I have checked but no entries were thr.
    Prakash bAJIYA@ i was running Job fro Web console & didnt find any such object. it may be diff from design console.
    810444@ Thanks.
    Dear All,
    In Web Console Job Scheduler, I had one Recon "LDAP FULL Recon" which has a property
    "OIM Employee Type" which was before "Full-TYpe" i changed it to * & it worked.Now I am able to generate events.
    It seems like value of Employee Type has an Issue in OID, please correct me ?
    Thanks a lot for you guys contribution.

  • I am trying to update my CS6 Extended and get error U44M2P7 how can I proceed?

    I am trying to update my CS6 Extended and get error U44M2P7

    Hi,
    Please follow the steps mentioned in this doc.
    http://helpx.adobe.com/photoshop/kb/photoshop-cs6-updates-dont-install.html
    Thanks
    kapil

  • I downloaded Photoshop CC 2014 last week and every time I open the program, I get an error message that reads "Adobe Photoshop CC 2014 has stopped working" and it forces me to close the program.  How to I resolve this?

    I downloaded Photoshop CC 2014 last week and every time I open the program, I get an error message that reads "Adobe Photoshop CC 2014 has stopped working" and it forces me to close the program.  How to I resolve this?

    Hi Noel,
    I'm wondering whether your comment addressed to Lmono was intended for me Tmono.
    You ask: "So why didn't you provide the same?"
    It just didn't occur to me to do so.
    My intent was to report that there was at least one other user encountering a similar problem.  It occurred to me that Adobe might be interested in determining the scale of a problem which causes one of  their best known products to fail to run quite so completely after a clean install 
    I also see that I misreported the OS I'm running - its Windows 8.
    If there is further information I can provide which might be helpful in determining a solution, if someone could be specific about what would be helpful, then I will try to respond appropriately.
    Perhaps the following from the event log:
    Faulting application name: Photoshop.exe, version: 15.1.0.148, time stamp: 0x53d97a8f
    Faulting module name: igdfcl64.dll, version: 8.1.0.2875, time stamp: 0x507eff6d
    Exception code: 0xc0000005
    Fault offset: 0x0000000000809283
    Faulting process id: 0x1f48
    Faulting application start time: 0x01cfca332430f3a7
    Faulting application path: C:\Program Files\Adobe\Adobe Photoshop CC 2014\Photoshop.exe
    Faulting module path: C:\windows\SYSTEM32\igdfcl64.dll
    Report Id: 659ea6c9-3626-11e4-bea1-9c2a70825e62
    Faulting package full name:
    Faulting package-relative application ID:
    The X230 has Intel HD 4000 graphics support built in to the processor.  Windows was pretty stubborn about refusing driver updates, but I just managed to get drivers from the Intel site to install and Photoshop is now running, so hopefully I need not try your patience any further.
    In case anyone else has a similar problem and stumbles on this the way to install the driver that worked was to:
    - download the zip version of the generic driver from Intel
    - use the 'have disk' option in the windows dialog to install the driver - other paths in the UI did not work with windows refusing to install the driver.

  • HT201272 Hello there,I delete my scruff application on the 8/05/13. Receipt N: 184052577343. And I was charged ammount of £ 16.99on the 15/05/13. I t's a Subscription Renewal. How can I stop it and get the refund of this ammount back on my account? Thank

    Hello there,I delete my scruff application on the 8/05/13. Receipt N: 184052577343. And I was charged ammount of £ 16.99on the 15/05/13. I t's a Subscription Renewal. How can I stop it and get the refund of this ammount back on my account? Thank you!!

    There are instructions on this page for managing and stopping auto-renewing subscriptions (deleting an app won't stop it) : http://support.apple.com/kb/HT4098
    In terms of a refund, what does it say on the app's description page in the store (a lot say that refunds aren't given) ? But you can try contacting iTunes Support and see if they will refund or credit you : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • I previously downloaded the AI 30 day trial but was able to use it before the trial ran out I've since deleted it from my laptop (Windows 7 64 bit OS) How do I get it back? Trying to download AI again and getting error code 3 some thing to do with adminis

    I previously downloaded the AI 30 day trial but was able to use it before the trial ran out I've since deleted it from my laptop (Windows 7 64 bit OS) How do I get it back? Trying to download AI again and getting error code 3 some thing to do with administration permissions?

    If your intention is to use the trial again it will not reset if you reinstall.  It will remain in its ran out state.

  • Client stops working and getting DCOM error in event viewer

    Hi
    I am getting these errors after upgrading the client from 2007 to 2012.. the client works for a certain amount of time then stops functioning as expected. Logs not moving and get error when manually cycling policy etc from client.
    The application-specific permission settings do not grant Local Launch permission for the COM Server application with CLSID
    {F80A8D57-D338-43FF-A5E6-5D093EA80775}
     to the user NT AUTHORITY\SYSTEM SID (S-1-5-18).  This security permission can be modified using the Component Services
    administrative tool.
    I have checked the DCOM permissions for launch and activate for system account and they are set to allow...
    its not happening on all clients which is strange

    Hi Jason,
    The service is running and the ccmexec.log does not stop but its rolled over since the issue occurred. About 30% of the logs continue logging and the rest stop with no action.I done a WMIDiag and I could see issues with missing namespaces and DCOM errors.
    I am unistalling the client and reinstalling which fixes the issue for a short period of time, then I will do a WMIDiag once its working then monitor. Once it breaks I will do another WMIDiag and fetch the logs in to see if there are any indicators to why
    this is happening.
    Is there anything else you would do at this point?
    From one client.. WMIDIAG
    An example of missing instance and all were missing in this class!
    root/ccm/Policy/machine, 'Select * From CCM_Service_HostedClass WHERE Description = "CPApplet Client Action" AND CLSID = "{F80A8D57-D338-43FF-A5E6-5D093EA80775}"' did not return any instance while AT LEAST 1 instance is expected.
    From another client and on both
    76815 12:03:57 (0) ** => This is an issue because there are still some WMI classes referencing this list of providers
    76816 12:03:57 (0) **    while the DCOM registration is wrong or missing. This can be due to:
    76817 12:03:57 (0) **    - a de-installation of the software.
    76818 12:03:57 (0) **    - a deletion of some registry key data.
    76819 12:03:57 (0) **    - a registry corruption.
    76820 12:03:57 (0) ** => You can correct the DCOM configuration by:
    76821 12:03:57 (0) **    - Executing the 'REGSVR32.EXE <Provider.DLL>' command.

  • Updating iTunes 12.1 and get error message "The procedure entry point CMBlockBufferCopyDataBytes could not be located in the dynamic link library CoreMedia.dll - what went wrong and how to resolve this?

    Updating iTunes 12.1 and get error message "The procedure entry point CMBlockBufferCopyDataBytes could not be located in the dynamic link library CoreMedia.dll". What went wrong and how to resolve this?

    Entry point errors can often be fixed by deleting the offending dll, then repairing the component it is part of.
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    If the advice above doesn't resolve things you could try this alternate version:
    iTunes 12.1.0.71 for Windows (64-bit - for older video cards) - itunes64setup.exe (2015-01-28)
    which is a 64-bit installer for the 32-bit version of the core application, similar to previous 64-bit releases.
    Or roll back to the previous build:
    iTunes 12.0.1.26 for Windows (32-bit) - iTunesSetup.exe (2014-10-16)
    iTunes 12.0.1.26 for Windows (64-bit) - iTunes64Setup.exe (2014-10-16)
    tt2

  • I got a vius and after removing Pro would not work, trying to reload and getting Error 1334, can someone advise me how to fix.

    I got a vius and after removing Pro would not work, trying to reload and getting Error 1334, can someone advise me how to fix.

    I downloaded, ran and restarted, tried to install Pro got same error
    Thank You!
    Robert W. O'Rourke
    Tesla Systems, Inc.
    <phone # removed - kglad>

  • HT1338 Macbook pro two days old...bought logic from app store...logic has installed partly each time i open it up it wants to download rest of programme then stops half way thru and gets error message 'logic is unable to continue with download' help neede

    Macbook pro two days old...bought logic from app store...logic has installed partly each time i open it up it wants to download rest of programme then stops half way thru and gets error message 'logic is unable to continue with download' help needed !

    Hello:
    I would trot back into the Apple store and have them fix the problem (or call Applecare with a warranty issue).  There is no sense in you wasting your time trying to troubleshoot things on a new computer.
    Barry

  • Hello, on Mac, when I make a .pdf from a .doc, Acrobat reverses pagination. How do i stop this and get normal order 1,2, 3 ... ? And how will I know whether any good soul has answered, thanks much.

    Hello, on Mac, when I make a .pdf from a .doc, Acrobat reverses pagination. How do i stop this and get normal order 1,2, 3 ... ? And how will I know whether any good soul has answered, thanks much.

    How are you creating the file, exactly?
    And if you don't manage to solve it you can use this free tool I've developed to reverse the page order in Acrobat with a single click:
    Custom-made Adobe Scripts: Acrobat -- Reverse Page Order (FREE)

  • I purchased the TV FRIENDS in HD on iTunes (the iTunes store stated with every HD purchase you get the SD version as well) and want to download on my I Pod Classic and get error message the I POD can play this video.  How do I download?

    I purchased the TV FRIENDS in HD on iTunes (the iTunes store stated with every HD purchase you get the SD version as well) and want to download on my I Pod Classic and get error message the I POD can not play this video.  How do I download?

    I see there's no answer.
    This issue has ****** me off for a long time, and I am fed the **** up with it.
    I DO NOT WANT TO DOWNLOAD the Movies and TV shows to every *^&%^$%# Apple device, ONLY the MUSIC!!!
    COme on Apple!!!  FIx this!!!

  • My ipad will not come on.  i tried to restore and get error message 1603, dont know how to take out itsw

    my ipad will not come on.  i tried to restore and get error message 1603, dont know how to take out itsw which it tells me to do.

    Error 1603
    Follow the steps listed below for Error 1604. Also, discard the .ipsw file, open iTunes and attempt to download the update again. See the steps under Advanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations. If you do not want to remove the IPSW  in the original user, try restoring in a new administrator user. If the issue remains, Eliminate third-party security software conflicts.
    Error 1604
    This error is often related to USB timing. Try changing USB ports, using a different dock connector to USB cable, and other available USB troubleshooting steps (troubleshooting USB connections. If you are using a dock, bypass it and connect directly to the white Apple USB dock connector cable. If the issue persists on a known-good computer, the device may need service.
    If the issue is not resolved by USB isolation troubleshooting, and another computer is not available, try these steps to resolve the issue:
    Connect the device to iTunes, confirm that the device is in Recovery Mode. If it's not in Recovery Mode, put it into Recovery Mode.
    Restore and wait for the error.
    When prompted, click OK.
    Close and reopen iTunes while the device remains connected.
    The device should now be recognized in Recovery Mode again.
    Try to restore again.
    If the steps above do not resolve the issue, try restoring using a known-good USB cable, computer, and network connection.
    The above is from the 2nd link below.
    Update and restore alert messages on iPhone, iPad, and iPod touch
    http://www.buybuyla.com/tech/view/012953a0d412000e.shtml
    iOS: Resolving update and restore alert messages
    http://support.apple.com/kb/TS1275
    iPad: Unable to update or restore
    http://support.apple.com/kb/ht4097
     Cheers, Tom

Maybe you are looking for

  • Can I have 2 displays hooked up to my macbook pro via usb and display port

    I have a Macbok Pro (15 inch 2011) can I hook a monitor via USB (mirrored) and hook a second one via displayport to dvi as extendd, its because i want 2 bigger monitors on my desk, thank you all info appreciated

  • Can't run both PBG4 and Macbook on same TC network

    I am trying to connect both a pbg4 and macbook core duo to my network using newly purchased time capsule. I first used Airport Utility from macbook hard wired via ethernet and set up the network. I have an AsDsl network with an old Westell Modem that

  • HELP!!!! Path selection tool not working.

    Earlier today my path selection tool was working fine. I was able to add vectors and move them around. Now all it is doing is moving the whole shape instead of the selected vector. I tried restarting the program, opening different projects and I even

  • Avoid popup dialog in smartforms

    hi all, i'm facing a problem, i want to avoid popup dialog in smartforms. i have set structure SSFCTRLOP-no_dialog = 'X'. but it still show popup dialog. did i miss something?

  • Captivate 7 will not open just shows it is loading

    Downloaded trial version of Captivate 7 32 Bit to a Windows XP Professional Version 2002 Service Pack 3. Downloaded fine. When trying to launch program, It gives the screen and indicates Loading but never opens.  Any ideas?