Dbms_output.put_line does not write to stdout

I expect the following code to fail and to write 'ERRORE' to stdout:
------------------- mm.sql
set serveroutput on
BEGIN
select 1/0 from dual;
exception
when others then
dbms_output.put_line('ERRORE');
END;
I execute this from the command line
sqlplus rmsas_test/rmsas_test < mm.sql > mm.log 2>&1
It produces
---------------------------- mm.log
SQL*Plus: Release 9.2.0.6.0 - Production on Gio Lug 13 16:42:27 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
JServer Release 9.2.0.6.0 - Production
SQL> SQL> 2 3 4 5 6 7 Disconnected from Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
JServer Release 9.2.0.6.0 - Production
But no 'ERRORE' has been written to stdout????
Why?
Thanks
Mauro

Just a comment. There are no STDOUT or STDERR devices when dealing with PL/SQL programs.
The code runs inside an Oracle server process. That process itself is detached from any display device, any input device (e.g. mouse or keyboard) and any peripheral device (e.g. printer).
DBMS_OUTPUT is simply a persistant PL/SQL buffer that can be created in an Oracle session. The contents of this buffer can be displayed by a client (using the DBMS_OUTPUT API to read and clear the buffer). Do not confuse it with a proper STDOUT/STDERR device.

Similar Messages

  • Publish to DVD says it completes, does not write the ISO file in version 13.

    When I publish to DVD and select ISO it says it completes but it does not write the ISO file in version 13.

    apsteinmetz
    The DVD disc which is labelled 4.7 GB/120 minutes is in reality 4.38 GB. And the DVD disc which is labelled 8.5 GB/240 minutes is in reality 7.95 GB.
    What version of Premiere Elements and on what computer operating system is it running? Can we assume 13/13.1 on Windows 8.1 64 bit?
    What are you doing, a burn to disc DVD-VIDEO standard or widescreen on DVD disc or burn to disc AVCHD on DVD disc?
    When you get to the burn dialog (and you have your disc in the burner tray), what does the Quality area of the burn dialog show for Space Required and Bitrate with and without a check mark next to "Fit Contents to Available Space"?
    Or, can you do burn to Folder (4.7 GB) and/or burn to ISO Image (4.7 GB)? Are your successful burn to .iso files under 1 GB in file size?
    Please quantitate "...shortening the timeline dramatically".
    Thank you. Any questions or need clarification, please do not hesitate to ask.
    Thank you.
    ATR

  • Export with Metadata does not write EXIF Lens & GPS info

    I use the Olympus E-3.
    I've worked an entire project with Aperture 2 (now at 2.1.2), only to find out eventually that when exporting, aperture does not write the Lens info, and GPS section of the EXIF. This is bread and butter for me.
    Did a search in the forum, and there was 1 other who encounter the same problem..
    http://www.trick77.com/2009/02/01/aperture-doesnt-export-all-exif-header-info/
    the workaround was to copy EXIF from the original file, using Exiftool with GUI on windowsXP. The result being that Adobe bridge and LR can read, while aperture cannot read.

    I also encounterd this annoying problem... I just posted another message about this...

  • My key board Sound while I am writing and the letter S doeS not write in lower caSe

    My key board Sound while I am writing and the letter S doeS not write in lower caSe

    PleaSe reply. I am french, the dictation doeS not underStand my accent

  • Field does not exist -- in STDOUT file

    have written a simple query to error out based on a condition in the MAIN->PEOPLECODE section of app engine.
    But i get an error in my report manager
    Local number &count;
    Local date &accdt;
    SQLExec("SELECT ACCOUNTING_DT, COUNT(*) FROM PS_FZAM_VND_GL_STG WHERE GL_DISTRIB_STATUS = 'N' GROUP BY ACCOUNTING_DT ", &accdt, &count);
    If &count < FZAM_VEND_REC.COUNTER Then
      Error ("The value is less than the input value " | FZAM_VEND_REC.COUNTER | ".");
    End-If;
    Here FZAM_VEND_REC.COUNTER is a field in the page.
    ERROR:
    PSAESRV started service request at 10.58.22 2013-12-18
    Field does not exist -- FZAM_VEND_REC.COUNTER. (180,104) FZAM_VENDOR.MAIN.GBL.default.1900-01-01.Step01.OnExecute PCPC:329 Statement:2
    Process 30108041 ABENDED at Step FZAM_VENDOR.MAIN.Step01 (PeopleCode) -- RC = 8 (108,524)
    Process %s ABENDED at Step %s.%s.%s (Action %s) -- RC = %s
    PSAESRV completed service request at 10.58.22 2013-12-18

    Hi Jim,
    I changed my query like below , but still need your help.
    Step01 -SQL
    %Select(COUNTER1 , RUN_CNTL_ID)
    SELECT A.COUNTER1
    , A.RUN_CNTL_ID
      FROM %Table(FZAM_VEND_RUN) A
    WHERE A.OPRID = %OperatorId
       AND A.RUN_CNTL_ID = %RunControl
    Step02-SQ
    %Select(ACCOUNTING_DT,COUNTER)
    SELECT ACCOUNTING_DT
    , COUNT(*)
      FROM %Table(FZAM_VND_GL_STG)
    WHERE GL_DISTRIB_STATUS = 'N'
      GROUP BY ACCOUNTING_DT
    Peoplecode
    If FZAM_VEND_AET.COUNTER1 < FZAM_VEND_AET.COUNTER Then
       Error ("The value is less than the input value " | FZAM_VEND_AET.COUNTER | ".");
    End-If;
    I Am getting SUCCESS MESSAGE IN OUTPUT
    PSAESRV started service request at 14.26.31 2013-12-18 Application Engine program FZAM_VENDOR ended normally PSAESRV completed service request at 14.26.31 2013-12-18 .
    But I want the above error message in my stdout file.

  • Upon commit, lgwr writes to redo logs but dbwr does not write to datafiles

    Guys,
    Upon issuing a commit statement, in which scenarios, the lgwr only writes to redo logs but the dbwr does not at all write to the datafiles?
    Thanx.

    The default behaviour is - on Commit, the lgwr writes to the redo logs immediately, but it may not get immediately written to the datafiles by the dbwr, but sooner or later it would (based on certain conditions). The only situation, which I can think of, when dbwr may not be able to write is datafiles is when the databases crashes, after the commit and before the DBWR could write to the datafiles.
    Not sure, what you are exactly looking for, but hope this helps.
    Thanks
    Chandra Pabba

  • SR5110NX does not write to blank DVD disks.

    The DVD/CD reader/writer in the SR5110NX desktop does not recognize that a blank DVD is in the tray.  It "sees" and writes to CDs.  It reads and displays and interprets software disks.  I have tried different disks by different manufacturers and have tried the Microsoft software fixes from the web.  Is this a driver/software problem for which HP/Compaq has a FREE downloadable fix? 

    26-2011 06:31 PM
    04-26-2011 12:53 PM
    Hi lurawan,
    I'm wondering if there is a codec or driver issue.
    Do regular DVD movies play?
    Have blank DVDs ever worked in the drive?
    Have you tried different brands of blank DVDs? Sometimes drives don't work as well with some brands.
    ...an HP employee just trying to help where I can, but not speaking on behalf of HP.
    Reply:
    Regular DVD movies do not play.  They are not recognized or "seen" or "felt" as being in the DVD drive. 
    Unknown if blank DVDs have ever worked in the drive.  It will write to blank CDs. 
    Different types of blank DVDs tried are Memorex DVD+R  DL; Sony DVD+R.  Just ordered Verbatim DVD+R to try them. 
    It reads and interprets software disks.  Just doesn't seem to recognize DVDs. 

  • KDE 4.2 and USB Mass Storage , does not write data until unmounted

    Hi,
    I have a Nokia phone that I connect for USB mass storage, and KDE 4.2.2 does not seem to write the data to the device until I unmount.
    Is there a way to force the write so it happens right away?  It's annoying because I can't see any progress when it copies the data at unmount.
    Later,
    Snorkel

    That's kinda the way linux does things, not specifically a KDE issue.  It's so that the system only has to write out to the media only once, even if you separately add/delete/move 50 different files.
    I think you can run 'sync' and that will flush all the file system buffers to disk.
    Last edited by Odysseus (2009-05-01 01:30:59)

  • Camera does not write to SD card

    Since mid-October my phone no longer saves photos to my SD card.  I am able to save photos directly to my internal memory.  My operating system is Android KitKat 4.4.4.  I have 49 GB of space on my SD card so space is not an issue.  How can I get the camera to save to my SD card again, since that is obviously where most of my free space exists?

    You may need to perform a software repair using PC companion.The process will erase all internal memory.You might need to charge your device for about 1-2 hours before so the device has at least 60% battery.
    Make sure the device is not connected to computer or laptop and turned off (sometimes you have to press power button and volume up until the device vibrates 3 times or on some devices you have to press the small button near the SIM tray or on the back of the device).
    Open PC companion->support zone->phone/tablet software update->repair my phone/tablet blue highlighted.Follow the steps given,do not connect your phone until prompted to press volume down while plugging USB cable. If PC companion does not start the repair process, you might need to run it in compatibility mode with Windows 7 (in some cases XP).
    All we have to decide is what to do with the time that is given to us - J.R.R. Tolkien

  • Client_text_io does not write the file but does create it.

    Hello there!
    I have a form which generates a .txt file using client_text_io webutil function.
    this is the procedure:
    PROCEDURE CREA_FILE IS
    MYFILE CLIENT_TEXT_IO.FILE_TYPE;
    OUTFILE CLIENT_TEXT_IO.FILE_TYPE;
    MFILE VARCHAR2(1000);
    MLINE VARCHAR2(5000);
    RESP NUMBER;
    BEGIN
    MLINE:='LINE TO WRITE...';
    MFILE := C:\test.txt;
    OUTFILE := CLIENT_TEXT_IO.FOPEN(MFILE,'w');
    CLIENT_TEXT_IO.put_line(OUTFILE, MLINE || ' 123');
    CLIENT_TEXT_IO.Fclose(OUTFILE);
    EXCEPTION
         WHEN OTHERS THEN
         CLIENT_TEXT_IO.Fclose(MYFILE);
         message('ERROR: '||SQLERRM);
    END;
    It works on OAS 10g + forms 10g. the file is created fine, BUT I have tried with forms 11g unsuccessful.
    My forms 11g are running under weblogic and the RedHat server.
    Im running the forms app from my laptop Windows XP.
    I configured webutil as the MOS note said, the thing is, the file is created, but no data is writted.
    I can open the file test.txt but the line I tried to print is not there, the same thing with 10g and the file is good.
    help me please.

    What are you doing after writing to the file? Are you leaving the form? Forms performs event bundling when sending data over to java beans;
    v_FILE_HANDLE := CLIENT_TEXT_IO.FOPEN (FPATH, 'W'); most certainly uses get_custom_property at the end to retrieve the file handle from the bean which will cause a "synchronize" as data must be retrieved from the bean before continuing in the PL/SQL code whereas
    CLIENT_TEXT_IO.Put_line(v_FILE_HANDLE,v_string_prov);
    CLIENT_TEXT_IO.FCLOSE (v_FILE_HANDLE); most certainly uses set_custom_property which is a one-way street and data is bundled up and sent as one package. If you have e.g. a exit_form right after those calls there is a chance that forms waits for some other data to be sent over to the bean but won't send it, as the form doesn't exist anymore after the exit_form. The same would happen if you'd do a
    v_FILE_HANDLE := CLIENT_TEXT_IO.FOPEN (FPATH, 'R');
    CLIENT_TEXT_IO.FCLOSE (v_FILE_HANDLE); right after writing your form as fopen will cause the sync (with the possibility that java will still hold a file lock on the file as the fclose method won't be called).
    cheers

  • DVD Drive does not writes DVD

    I have lenovo G580.
    I am not able to write DVDs from my Laptop. I have MAT**bleep**A DVD-RAM UJ8C1. It sometimes detects the blank DVD and sometimes doesn't. And even if it detects the blank DVD, as soon as I start the burning process, the drive ejects the disk saying "An error occured while writing disk". The same DVDs work fine on my Samsung Laptop. I even used different brands of DVDs but same problem occured every time.
    I couldn't find any driver for the optical drive on the support website.
    I have no issue with reading and writing CDs.

    Hellow!
    I have the Lenovo G580 (Lenovo Solution Center reports #20150). It has the TSST Corp. CDDVDW SN-208DB CD-ROM. It normally writes common CD and DVD through Windows 8.1. However it cannot write dual layer DL DVD for 8.5 Gbytes.

  • CALL FUNCTION 'crm_mktbp_merge_bps' does not write to database

    Hello Experts,
    i try to use the function call 'crm_mktbp_merge_bps' to merge the marketing attributes of two business partners (contact persons).
    Inital situation:
    Business partner 1 (lv_ap_guid) is maintained with 1 profile and its attributes.
    Business partner 2 (lv_ap_guid_new) has no profile.
    CALL FUNCTION 'CRM_MKTBP_READ_ALL_TPL'
        EXPORTING
          iv_objectkey             = lv_ap_guid
    *   IV_AUTHORITY_CHECK       = ' '
    *   IV_ACTIVITY              = '03'
    *   IV_READ_DESCR            = 'X'
        TABLES
         et_return                = lt_bapi_return
         et_prtpllist             = lt_crmt_mktbp_proftpl_list
    LOOP AT lt_crmt_mktbp_proftpl_list INTO ls_crmt_mktbp_proftpl_list.
      CLEAR lt_bapi_return.
      CALL FUNCTION 'CRM_MKTBP_MERGE_BPS'
        EXPORTING
          iv_quell_bp               = lv_ap_guid
          iv_ziel_bp                = lv_ap_new_guid
          IV_PROFILE_TEMPLATE       = ls_crmt_mktbp_proftpl_list-PROFILE_TEMPLATE_ID
        TABLES
          et_return                 = lt_bapi_return
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
         EXPORTING
           WAIT          = 'X'
    * IMPORTING
    *   RETURN        =
    ENDLOOP.
    The function call runs without any errors and delivers no messages in "lt_bapi_return".
    However, no changes to the database are written, though i'm using the function 'BAPI_TRANSACTION_COMMIT'.
    In the Tx BP i'm not able to find the new profile in Business partner 2.
    Can anyone help me out with this.
    Thanks.
    Best Regards
    Markus

    Hi Markus,
    I got the same problem. Have you found a solution for this?
    Best regards,
    Mario

  • Tecra M10-17U does not write data on DVD disks

    Good morning,
    I have problem using my DVD recorder.
    It doesn't burn, only give-me error.
    I 've test with difrent programs and other operating system, and diferente disks.
    Thank You.

    Did you try to clean the laser lens?
    You can do this carefully using a cotton wool tip and alcohol fluid.
    But be very careful while doing this
    In my case this helped. I had some problems writing the data on different disks and cleaning the lens was the key!

  • My DVD drive reads but does not write/copy (Satellite A60)

    I need help,I use a laptop Satellite A60-106 series
    and my dvd writer has stop writing it only copies about 3% and stops. I use both nero and roxio,
    Please help me.
    You can reply to [email protected]

    Hello Alfred
    As far as I know the small control light appear just if the drive is in use. In your case it is on constantly and in my opinion there is some problem with the device. Like Ivan already said try to remove it from device manager and let the system detect it again.
    I am pretty sure that warranty is still valid and you should contact service partner in your country. Let them check the unit.
    Bye

  • Toshiba DVR20 Freeview does not write DVD disks properly

    _DVD Machine:_
    Toshiba DVR20 Freeview DVD and VCR Recorder Combi
    _Type of DVD:_
    Blank DVD-R Non-Printable Disc
    _Problem:_
    DVDs play fine on dvd player but show up as blank dvds on computer. Advice please.

    Hi buddy,
    I googled for Toshiba DVR20 Freeview device because it was not known to me.
    It seems like this recorder support the DVD-R/RW and DVD+R/RW disks for recording.
    I would recommend you to test different brand disks provided by different manufacturers.
    Its also advisable to clean the laser lens.
    You could use a special lens cleaner kit. Such inexpensive cleaner kit that will brush the lens clean. They are available online and at stores that sell electronics

Maybe you are looking for

  • How can I get back deleted files to my iPod?

    First of all, I tried to upgrade my iPod's iOS 4.2.1 to 5. I followed the steps in the following page: http://support.apple.com/kb/ht4972. Unfortunately, I unsucceeded as the iOS stayed the same but I lost all of my downloaded music and video files.

  • Moving Aperture libraries while keeping iMovie project video links intact.

    I am in the process of moving my Aperture libraries off my internal drive to an external drive.  The problem I found is that by do so, my iMovie projects that were using video clips from the Aperture libraries now have broken source links.  I have al

  • ALE Data Transfer - Urgent help needed

    I am trying to set up an ALE interface from a SAP ECC 6 system to another SAP ECC 6 system using HRMD_A idocs.  The complication I have is in the receiving system, I need to generate a new PERNR for all employees transferred.  Can anybody advise how

  • Can I restore an old version of iTunes?

    I'm having trouble getting my MacBook Pro to recognise my iPod Classic - it connects via usb then says 'Ejecting - you may now disconnect'. I've tried the reset/restore approach and connecting in disk mode but the best I get is my iPod appearing as a

  • Obsolete statements in ECC with respect to 4.5b

    Hi Gurus, This is really very urgent.i need an information on Obsolete Statements in ECC 6.0 with respect to 4.5B R/3 Version.please help me.. Full marks would be rewarded 100% regards Sahil