SQL*PLUS WINDOW DOESNT GIVE AN ERROR MESSAGE.

HI,
i FOUND OUT THAT IF I HAD AN ERROR IN MY SQL SCRIPT, THE WINDOW WILL DISAPPEAR AND LOST EVERYTHING THAT I HAVE DONE. IT DOESNT GIVE ME AN ERROR MESSAGE. IM HERE IN CHAP05, BUILDING A RELATIONAL SCHEMA OF ORACLE DATABASE 10G EXPRESS EDITION FOR LINUX. WHAT PARAMETER AM I MISSING IN MY SYSTEM? PLS. HELP ME. THANKS.
LEN

Hi,
Most likely you have to adjust WHENEVER SQLERROR and (or) WHENEVER OSERROR settings.
Consider an example below:
C:\> sqlplus /NOLOG
SQL*Plus: Release 9.2.0.6.0 - Production on Wed Nov 1 02:55:29 2006
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
SQL> conn max
Enter password:
Connected.
SQL>
SQL> whenever sqlerror continue
SQL>
SQL> exec raise_application_error(-20000, 'Error')
BEGIN raise_application_error(-20000, 'Error'); END;
ERROR at line 1:
ORA-20000: Error
ORA-06512: at line 1
SQL> whenever sqlerror exit
SQL>
SQL> exec raise_application_error(-20000, 'Error')
BEGIN raise_application_error(-20000, 'Error'); END;
ERROR at line 1:
ORA-20000: Error
ORA-06512: at line 1
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Oracle Data Mining options
JServer Release 9.2.0.6.0 - Production
C:\>As you can see, with WHENEVER SQLERROR set to EXIT, SQL*Plus session terminates as it encounters any program error.
Similarly, for OSERROR setting:
C:\> sqlplus /NOLOG
SQL*Plus: Release 9.2.0.6.0 - Production on Wed Nov 1 02:57:08 2006
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
SQL> conn max
Enter password:
Connected.
SQL>
SQL> start C:\non_existent_file
SP2-0310: unable to open file "C:\non_existent_file.sql"
SQL>
SQL> whenever oserror exit
SQL>
SQL> start C:\non_existent_file
O/S Message: No such file or directory
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Oracle Data Mining options
JServer Release 9.2.0.6.0 - Production
C:\>Hope this helps.

Similar Messages

  • OSEHQ is compressed (notebook won't load windows and gives this error message)

    Hi there, 
    my noetbook wont start windows, and gives this message when i turn it on-  
    OSEHQ is compressed
    Press ctrl+alt+del to restart
    The last thing I remember doing was compressing my C drive to save some disk space.
    please HELP! 

    Yep, compressing the hdd can cause all sorts of problems.
    http://www.vistax64.com/tutorials/202609-bootmgr-compressed-message-boot-fix.html
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • TS2529 Im am using Windows 7 ,I log onto to itunes and connect my Iphone.When my iphone tries to sync it gives an error message "itunes has stopped working" - this only happens when i connect my iphone and it tries to sync - help please

    Im am using Windows 7 ,I log onto to itunes and connect my Iphone.When my iphone tries to sync it gives an error message "itunes has stopped working" - this only happens when i connect my iphone and it tries to sync - help please

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • Since uploading Maverick, my Microsoft apps give an error message "(the app) quit unexpectedly.  Click Reopen to open the application again."  However, this does nothing but renew this window.  What to do?

    Since uploading Maverick, all of my Microsoft apps give an error message "(name of the app) quit unexpectedly.  Click Reopen to open the application again."  However, this does nothing but renew this window.  I have to click on the "OK" button to get rid of the error message.  What to do?

    Very Important, how much Free Space is on your Hard Drive first of all? Click on the Macintosh HD on the Desktop, then do a Get Info on it.
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.
    Do they launch OK while in Safe Mode?

  • I recently upgraded computer to windows 7.  When I open itunes I am able to see my music library, but unable to play.  Gives an error message of "Could not be found".  How do I retrieve my library contents?

    I recently upgraded computer to Windows 7.  When I open itunes I am able to see my music library, but unable to play.  Gives an error message of "Could not be found".  How do I retrieve my library contents?

    Hello ehoff5,
    I would be concerned too if I was not able to play my music in iTunes.  It sounds like the music files may be in a location that iTunes is not expecting.  I recommend reviewing the following articles to locate you music files on your computer:
    iTunes: Finding lost media and downloads
    http://support.apple.com/kb/ts1408
    Where are my iTunes files located?
    http://support.apple.com/kb/ht1391
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • My 3.6.14 keeps trying to update and gives this error message:"The update could not be installed. Please make sure there are no other copies of Firefox running on your computer, and then restart Firefox to try again."

    My OS is Windows XP version service pack 3. I even tried to install FF4 but it never get installed. As I mentioned my FF keeps trying to update itself but it gives the error message I provided in title. Now I don't have access to my FF browser and my life is stopped because I have all my passwords saved on FF. I restarted my notebook but it stills try to update itself giving the same error message. I can not also upgrade my Adobe reader 7.0.7 to 10 I have tried more than 10 times but it never gets upgraded. I had this Adobe problem since long time ago.

    Run the Firefox program once as Administrator (right-click: Run as Administrator).<br />
    If that doesn't help then do a clean reinstall.
    Do a clean (re-)install:
    * Download a fresh Firefox copy and save the file to the desktop.
    * http://www.mozilla.com/firefox/all.html
    * Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    * Don't remove personal data if you uninstall the current version.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    Your bookmarks and other profile data are stored elsewhere (not in the Firefox program folder) and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.

  • ITunes set up gives an error message saying not a "valid win32 application"

    I am using Windows 7 and trying to download iTunes, but when I try to open the iTunes set up it gives an error message saying that it is not a "valid win32 application". It does the same for downloading quicktime. I have no idea what this means or what to do about it.

    That suggests that the installer is getting damaged during the download.
    I'd first try downloading an installer from the Apple website using a different web browser:
    http://www.apple.com/itunes/download/
    If you use Firefox instead of IE for the download (or vice versa), do you get a working installer?

  • Adobe Acrobat gives an error message "The key file is missing, canceled"

    Hi,
    Adobe Acrobat gives an error message "The key file is missing, canceled" this is a direct translation of the Finnish error message. Acrobat is already re-installed. The operating system is Windows Server 2008 R2, and there is also installed Adobe Reader X.
    BR
    Heikki

    Please let us know do you see this error on every launch of Acrobat?
    Recommended is to have latest version of Acrobat and Reader. i.e. 10.1.8
    Try updating application and then see if you still encounter the error.

  • How to copy procedure to sql plus window.

    I am trying to copy my procedure from note pad to sql plus window and some of the texts are being cut off. How can I copy the entire procedure to sql plus window.
    thanks

    Thank you guys this is what is happning.
    1  CREATE OR REPLACE PROCEDURE  ITEMCUSTOMPAGING(
    2        p_desc in itemlist.idescr%type,
    3        p_letting in bidlet.datelet%type,
    4        p_letting1 in bidlet.datelet%type,  
    5       p_sort in  NUMBER ,
    6       p_order in VARCHAR ,
    7        i_results    out sys_refcursor
    8     )
    9     AS
    10     BEGIN
    11        OPEN  i_results  FOR
    12         SELECT g.csecnum , e.iplineno , substr(e.eiitem ,1,4)||'.'||substr(e.eiitem ,5,9) ItemNum,
    13         INITCAP(i.idescr ||'  '|| e.isupdes)  Descrip,INITCAP(i.idescrl ||'  '|| e.isupdes)  Descrip
    14         DECODE (TRIM (p.prroute), NULL, 'N/A',p.prroute) Route,b.datelet  ,trim(to_char(b.datelet ,'
    15        FROM itemlist i, estitem e, estcatg g, propproj x, proposal p, bidlet b, letprop l
    16        WHERE    p.contid = x.contid AND x.pcn = g.pcn AND e.pcn = g.pcn AND e.cn = g.cn AND i.item =
    17        AND i.ispecyr = p.cspecyr AND e.iplineno <> ' ' AND e.eiitem <> '2550601/01000'
    18        AND e.eiitem <> '2565601/00031' AND e.eiitem <> '2565601/00032' AND e.eiitem <> '2565601/0003
    19        AND e.eiitem <> '2402601/01000'
    20        AND (i.idescr  like  TRIM(UPPER(p_desc))||'%'  or  i.idescrl  like  TRIM( UPPER(p_desc))||'%'
    21        AND b.datelet  between  p_letting  and p_letting1
    22        AND p.contid = l.lcontid
    23        AND l.letting = b.letting
    24        AND SUBSTR (l.lcontid, 4, 4) <= '5'
    25        GROUP BY g.csecnum,i.idescr,b.datelet,i.iunits,p.clocat1,p.clocat2,p.contid,p.cdescr, p.cproj
    26        ORDER BY p_sort   p_order;
    27* End;
    QL> /
    arning: Procedure created with compilation errors.
    QL> SHOW ERR
    rrors for PROCEDURE ITEMCUSTOMPAGING:
    INE/COL ERROR
    2/8     PL/SQL: SQL Statement ignored
    6/25    PL/SQL: ORA-00933: SQL command not properly ended
    QL>

  • Trying to install windows 7 and getting error message windows must be installed to a partition formatted as NTFS

    Trying to install windows 7 and getting error message Windows must be installed to a partition formatted as NTFS

    Welcome to Apple Support Communities
    Boot Camp Assistant creates a Windows partition in FAT32 to make the Windows XP installation easier.
    The problem is that Windows Vista, 7 and 8 require a NTFS partition, so the Windows installer gives this error. The only thing you have to do is to choose the BOOTCAMP partition in the installer and go to “Drive options (advanced)” > Format. Finally, install it

  • LION –WINDOWS 7 –NETWORK LOCATIONS-Error message

    LION –WINDOWS 7 –NETWORK LOCATIONS
    Using Mac computers on Lion OSX 7, connecting through a Windows 7 server on Active Directory, however, when using the connect to server, using Smb I am able  connect to my username network files, however any other structure, permission related folders through the Windows 7 server, gives an error message “you do not have permissions”.
    Problem as follows:
    Log on the Mac computer using windows network user.
    Go to Server Address and can connect to the Windows network link.
    Next window, Use the login name and password, and screen is “Windows comes up select the volumes you want to mount.
    Then I select the network location, and the error appears: The folder “   “ can’t be opened because you don’t have permission to see its contents”.
    The network location mounts on the desktop, but no displays no contents.

    LION –WINDOWS 7 –NETWORK LOCATIONS
    Using Mac computers on Lion OSX 7, connecting through a Windows 7 server on Active Directory, however, when using the connect to server, using Smb I am able  connect to my username network files, however any other structure, permission related folders through the Windows 7 server, gives an error message “you do not have permissions”.
    Problem as follows:
    Log on the Mac computer using windows network user.
    Go to Server Address and can connect to the Windows network link.
    Next window, Use the login name and password, and screen is “Windows comes up select the volumes you want to mount.
    Then I select the network location, and the error appears: The folder “   “ can’t be opened because you don’t have permission to see its contents”.
    The network location mounts on the desktop, but no displays no contents.

  • Firefox does not open, but instead gives the error message, "Failed to read the configuration file." It has worked in the past, but not now.

    Firefox does not open, but instead gives the error message, "Failed to read the configuration file." It has worked in the past, but not now.
    I REINSTALL 10 TIMES SO DON'T TELL ME THAT!!!
    I'm piss because i need firefox working again so i can finish reseaching my speech in 5 days.

    Which files do you have in the defaults\pref folder in the Firefox program folder?
    *(32 bit Windows) "C:\Program Files\Mozilla Firefox\"
    *(64 bit Windows) "C:\Program Files (x86)\Mozilla Firefox\"
    See also "Other solutions":
    *http://kb.mozillazine.org/Preferences_not_saved
    Do a clean reinstall and delete the Firefox program folder before (re)installing a fresh copy of the current Firefox release.
    Download a fresh Firefox copy and save the file to the desktop.
    *Firefox 22.0: http://www.mozilla.org/en-US/firefox/all.html
    Uninstall your current Firefox version, if possible, to cleanup the Windows registry and settings in security software.
    *Do NOT remove personal data when you uninstall your current Firefox version, because all profile folders will be removed and you lose personal data like bookmarks and passwords from profiles of other Firefox versions.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    *(32 bit Windows) "C:\Program Files\Mozilla Firefox\"
    *(64 bit Windows) "C:\Program Files (x86)\Mozilla Firefox\"
    *It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    *http://kb.mozillazine.org/Uninstalling_Firefox
    Your bookmarks and other personal data are stored in the Firefox profile folder and won't be affected by an uninstall and (re)install, but make sure that "remove personal data" is NOT selected when you uninstall Firefox.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Profile_backup
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • Facebook chat gives annoying error message

    My wife uses PC Safari on a Windows Vista OS (I have a Mac Pro and Macbook pro so no hating here).
    When she chats on Facebook, Safari gives an error message each time she either receives or sends a message.
    I think it might be a java or flash plugin that is either not downloading or working correctly. Is anyone else having this problem?
    Does anyone know how to fix this?
    brandon

    download the newest flash player and shockwave player from adobe. also download newest java from sun, and it should work.

  • Upon upgrading iPhoto, iPhoto Help no longer works.  It gives the error message:  "The selected topic is currently unavailable. To see all iPhoto Help, you must be connected to the Internet." Help!?

    Upon upgrading iPhoto, iPhoto Help no longer works.  It gives the error message:  "The selected topic is currently unavailable. To see all iPhoto Help, you must be connected to the Internet."   I am obviously connected to the internet since you are reading this.
    I tried upgrading permissions but it did not help!?  Can anyone tell me what is wrong?  Thanks

    Try
    Reboot the computer, see if that fixes it.
    Then try:
    Backup your files off the computer (not TimeMachine) and disconnect
    Hold c boot off the 10.6 disk and simply reinstalling OS X
    Log in and update to 10.6.8
    c boot off the 10.6 disk again and use Disk Utility >Repair Disk
    reboot and all should be fine, except some third party programs that install kext files, those will have to be reinstalled from fresh sources.

  • To download an App the 3 security questions are required. But at the end, apple is not able to complete the task and gives an error message. No more downloads are possible. What can I do?

    to download an App the 3 security questions are required. But at the end, apple is not able to complete the task and gives an error message. No more downloads are possible. What can I do?

    Very Important, how much Free Space is on your Hard Drive first of all? Click on the Macintosh HD on the Desktop, then do a Get Info on it.
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.
    Do they launch OK while in Safe Mode?

Maybe you are looking for

  • Passing Parameter to Report from a JSP

    <p>I have a report which calls a Oracle stored procedure which requires some  IN parameters. These parameters need to be passed from the JSP. For this scenario if someone has some sample code please post it.</p><p>Thanks.<br /></p><p> </p>

  • File-to-RFC Scenario Table Param are empty

    Hello, I create a file adapter to rfc adapter scenario. Thereto  I implemented a RFC in SAP which has only a table param. Furthemore I mapped the XML-File, that will be read by the File Adapter sender, to the SAP RFC Table structure. However the scen

  • Broken Microphone & Dock Connector

    Ok i was in the middle of a call on friday, and put the phone down to enoy a ncie meal, rang my mate back and he couldn't here me so i tried again, and still nothing, was really shouting and he couldn't here me, so i rang lots of other mobiles and my

  • XIR3 -SP3 - WebI Chart doesn't display

    Hi, I am experience a very strange behavior.  I create a simple chart in the webI document.  But it doesn't show at all when in viewing or editing mode. I try to export to PDF, no luck..    I check all the setting but there doesn't seem to be any thi

  • Airplay button gone on iPhone 5s

    I have a iPhone 5s and an Apple TV and have used airplay to play iTunes through my TV, but this morning the airplay button disapeard from the control center on my iPhone.  Instead of having airdrop and airplay on the same line as it has been in the p