Help about execute DBMS_Lock.Sleep()

create or replace
procedure Demo
As
begin
  insert into Khachhang
  values(1,'Khue',500);
  begin
  dbms_output.put_line('Insert Khue');
  dbms_lock.sleep(5);
  end;
  insert into Khachhang
  values(12,'Cuong',500);
  dbms_output.put_line('Insert Cuong');
  dbms_lock.sleep(5);
  insert into Khachhang
  values(3,'Ngoc',500);
  dbms_output.put_line('Insert Ngoc');
  dbms_lock.sleep(5);
end;I want proc above after insert 1 value that will print 1 statement 'Insert Cuong' and wait for 5s and go on insert. but it's not print statement at all, it's wait for 15s and print 3 statement that is Insert Khue, Insert Cuong, insert Ngoc. I don't understand about it. Who can help me thanks.

Hi,
the use of DBMS_OUTPUT means putting data in some kind of buffer. The program you use to execute the code, can display this buffer. If you use SQLPLUS (by using SET SERVEROUTPUT ON SIZE 1000000), this information will be displayed automatically when your program terminates. This is the behaviour you see. This behaviour can no be adjusted in SQLPLUS (to my knowledge).
Herald ten Dam
htendam.wordpress.com

Similar Messages

  • Not able to view Forms Server version in Help: About Oracle Applications after the forms upgrade 10.1.2.3.0

    Hi all,
    DB:11.2.0.3.0
    EBS:12.1.3
    O/S: Sun Solaris SPARC 64 bits
    I am not able to view Forms Server version in Help: About Oracle Applications after the forms upgrade 10.1.2.3.0 after the forms upgrade 10.1.2.3.0 as per note:Upgrading OracleAS 10g Forms and Reports to 10.1.2.3 (437878.1)
    Java/jre upgraded to 1.7.0.45 and JAR files regenerated(without force option). Able to opne forms without any issues.
    A)
    $ORACLE_HOME/bin/frmcmp help=y
    FRM-91500: Unable to start/complete the build.
    B)
    $ORACLE_HOME/bin/rwrun ?|grep Release
    Report Builder: Release 10.1.2.3.0 - Production on Thu Nov
    28 14:20:45 2013
    Is this an issue? Could anyone please share the fix if faced the similar issue earlier.
    Thank You for your time
    Regards,

    Hi Hussein,
    You mean reboot the solaris server and then start database and applications services. We have two databases running on this solaris server.
    DBWR Trace file shows:
    Read of datafile '+ASMDG002/test1/datafile/system.823.828585081' (fno 1) header failed with ORA-01206
    Rereading datafile 1 header failed with ORA-01206
    V10 STYLE FILE HEADER:
            Compatibility Vsn = 186646528=0xb200000
            Db ID=0=0x0, Db Name='TEST1'
            Activation ID=0=0x0
            Control Seq=31739=0x7bfb, File size=230400=0x38400
            File Number=1, Blksiz=8192, File Type=3 DATA
    Tablespace #0 - SYSTEM  rel_fn:1
    Creation   at   scn: 0x0000.00000004 04/27/2000 23:14:44
    Backup taken at scn: 0x0001.db8e5a1a 04/17/2010 04:16:14 thread:1
    reset logs count:0x316351ab scn: 0x0938.0b32c3b1
    prev reset logs count:0x31279a4c scn: 0x0938.08469022
    recovered at 11/28/2013 19:43:22
    status:0x2004 root dba:0x00c38235 chkpt cnt: 364108 ctl cnt:364107
    begin-hot-backup file size: 230400
    Checkpointed at scn:  0x0938.0cb9fe5a 11/28/2013 15:04:52
    thread:1 rba:(0x132.49a43.10)
    enabled  threads:  01000000 00000000 00000000 00000000 00000000 00000000
    Hot Backup end marker scn: 0x0000.00000000
    aux_file is NOT DEFINED
    Plugged readony: NO
    Plugin scnscn: 0x0000.00000000
    Plugin resetlogs scn/timescn: 0x0000.00000000 01/01/1988
    00:00:00
    Foreign creation scn/timescn: 0x0000.00000000 01/01/1988
    00:00:00
    Foreign checkpoint scn/timescn: 0x0000.00000000 01/01/1988
    00:00:00
    Online move state: 0
    DDE rules only execution for: ORA 1110
    ----- START Event Driven Actions Dump ----
    ---- END Event Driven Actions Dump ----
    ----- START DDE Actions Dump -----
    Executing SYNC actions
    ----- START DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (Async) -----
    Successfully dispatched
    ----- END DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK'
    (SUCCESS, 0 csec) -----
    Executing ASYNC actions
    ----- END DDE Actions Dump (total 0 csec) -----
    ORA-01186: file 1 failed verification tests
    ORA-01122: database file 1 failed verification check
    ORA-01110: data file 1:
    '+ASMDG002/test1/datafile/system.823.828585081'
    ORA-01206: file is not part of this database - wrong
    database id
    Thanks,

  • Need help about using sqlplus_exec_template.sql

    I tried to use sqlplus_exec_template.sql to execute our deployed mapping. At dos prompt I typed :
    C:\>sqlplus username/[email protected] @C:\OWB\owb\rtp\sql\sqlplus_exec_template.sql
    rtschema localhost SQL_LOADER CRD_APPL_MAPPING SKIP=0,LOAD=0,LOG_FILE
    NAME=cvcpmapl.log,DIRECT=true,PARALLEL=false,ERRORS=50,ROWS=200,READSIZE=65536,BINDSIZ E=50000,AUDIT=true,PURGEGROUP=wb,target_store_uoid=F0E49963A42E4DB6AFF
    85FFF8E05AB9E
    SQL*Plus: Release 9.2.0.1.0 - Production on Fri May 16 18:32:25 2003
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    Session altered.
    Role set.
    Stage 1: Decoding Parameters
    | location_name=localhost:1521:odb
    | task_type=SQL_LOADER
    | task_name=CRD_APPL_MAPPING
    Stage 2: Opening Task
    declare
    ERROR at line 1:
    ORA-20001: Task not found - Please check the Task Type, Name and Location are
    correct.
    ORA-06512: at line 261
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    =================================================
    I am quite sure the task name and task type is correct. The task name is same as the one I saw in runtime repository schema -> table WB_RT_TASKS -> column TASK_NAME
    , but I am very doubt about what should be the correct input for LOCATION, system parameter and custom parameter.
    Can anyone give some help about where could I find the correct input for those parameter?
    Thx in advance.
    Rds
    CH

    I 've tried to use :
    sqlplus username/[email protected] @C:\OWB\owb\rtp\sql\sqlplus_exec_template.sql
    rtschema OWBLOCATION SQL_LOADER CRD_APPL_MAPPING "," ","
    where OWBLOCATION I have used the deploy location of the mapping for my case, created within OWB. The value is CCS_DEPLOY.
    But the error is the same :
    ======================================================
    Stage 1: Decoding Parameters
    | location_name=CCS_DEPLOY
    | task_type=SQL_LOADER
    | task_name=CRD_APPL_MAPPING
    Stage 2: Opening Task
    declare
    ERROR at line 1:
    ORA-20001: Task not found - Please check the Task Type, Name and Location are
    correct.
    ORA-06512: at line 261
    ========================================================
    could you tell me the SQL used by WB_RT_API to get the task from runtime schema. So that I could check the correct location myself.
    Or how could I view the pl/sql of WB_RT_API_EXEC which is wrapped.
    Thx for your help.
    Rg.
    CH

  • Need help about 1015

    need help about 1015 it says connect iphone to itunes on screen i did it but it doesnt work and says unexpected 1015

    Try restoring it: Make sure you are following the instructions in this procedure to the letter.  Here they are, with emphasis on some easily overlooked requirements:
    Disconnect the USB cable from the iPhone, but leave the other end of the cable connected to your computer's USB port.
    Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the red slider appears, then slide the slider. Wait for the device to turn off.If you cannot turn off the device using the slider, press and hold the Sleep/Wake and Home buttons at the same time. When the device turns off, release only the Sleep/Wake button.
    Continue pressing and holding the Home button while you reconnect the USB cable to the device. The device should turn on.
    Note: If you see the "low battery" screen, let the device charge for at least ten minutes to ensure that the battery has some charge, and then start with step 2 again.
    Continue holding the Home button until you see the "Connect to iTunes" screen. When this screen appears (iTunes icon and USB connector) release the Home button.
    If necessary, open iTunes. You should see the "recovery mode" alert ("iTunes has detected a phone in recovery mode").
    Use iTunes to restore the device.
    If you do not see the "Connect to iTunes" screen, try these steps again.
    If you see the "Connect to iTunes" screen but the device does not appear in iTunes, see this article and its related links.
    If you have backed up the iPhone in the past, select the device in iTunes and choose "restore from backup".

  • HELP about analog output video

    Hello, I´m need help about analog output video in Premiere CS5 using Matrox RTX2. I need to crop a video with resolution in 1440x1080 to 4:3 in output analog. But what happens is wrong (I think). My video is in format anamorphic and the other option is 16:9 letterbox. Is there any way to crop the video without using effects. Thanks a Lot and sorry my bad english (my native language is Portuguese).

    There are no 4:3 HD specifications.  You'll have to put the video into a normal SD sequence, and scale it down till the top and bottom of the video meet the frame.  That way the sides will be cut off.

  • Help about Warning Security IE 8.0

    Hello Guys,
    I need help about warning security IE 8.0.
    When I try install a software from my webserver is display the following message:
    I can't check the publisher.Are you sure install the software?
    This file does not have a valide digital signature that verifies its publisher.
    You should only install software from publishers you trust.
    Well, I already enable:
    Download signed ActiveX controls
    Download unsigned ActiveX controls
    Allow active content from CDs to run on user machines Enabled 
    Allow software to run or install even if the signature is invalid Enabled 
    Check for server certificate revocation Disabled 
    Check for signatures on downloaded programs Disabled 
    Is there somewhere I disable all settings warning's about IE or one specific GPO I need disable for this warning don't display for me?
    In the same installation a lot of about file .cab are installed, only one specifc I don't have sucess.
    I try some troubleshootings too:
    https://social.technet.microsoft.com/Forums/windows/en-US/8f8293c4-0920-462f-9c69-0a8e3f92aa02/unknown-publishers-warning
    https://www.youtube.com/watch?v=UknQn6tZZis
    http://windows-3322.blogspot.com.br/2011/02/how-to-repair-activex-error.html
    Thanks a lot who answer me or about any idea about my issue.

    This file does not have a valide digital signature that verifies its publisher.
    Did you see your result
    https://social.technet.microsoft.com/Forums/windows/en-US/8f8293c4-0920-462f-9c69-0a8e3f92aa02/unknown-publishers-warning
    <quote>
    Changing the time zone actually worked.
    </quote>
    Robert Aldwinckle

  • I installed teh update a few days ago but when I open Firefox it says :"You're not on the lastest version . . ", but at "Help" & "About Firefox" it shows 9.0.1 "latest release". There's a glitch somewhere.

    This is the message when I Open Firefox:
    "You're not on the latest version of Firefox. Upgrade today to get the best of the Web!"
    At <Help> & <About Firefox>, it shows
    Firefox
    9.0.1
    "Firefox is up to date"
    "You are currently on the release update Channel"
    One of those messages must be wrong. Either way Firefox seems to work fine otherwise. Thanks and regards, Peter Spielman

    Is your homepage set to www.google.com/firefox? If so, that page is wrong. You should change your home page to about:home or some other site instead. The google.com/firefox page is no longer supported.

  • I have three user accounts on one computer. On only one account when I when I check Help - About fire fox only one user account says apply update and won't apply. The other two work fine.

    One of three user accounts on the same computer appears to not be updating to 8.0.1 correctly. One admin and one none admin user account says it is up-to-date. The other non-admin user account, under Help About Firefox says apply update, but won't.

    As long as you installed MS Office into its default location (the top level /Applications folder) it will be available to all user accounts on the Mac.
    As far as licensing is concerned you only have to enter the license code once, which you should do right after installing MS Office, in the same admin account you installed it from, by opening any one of the MS Office applications.  There is no additional licensing required for additional user accounts on the same Mac.
    Each user account is able to run the Office apps.  The only thing you will have to do is go through an initial setup screen in each user account (but this setup does NOT involve entering any additional license codes).
    You may have problems if you installed MS Office in a particular user account (i.e. NOT in the top level /Applications folder).

  • How to Disable Check for updates button in Help/About in firefox 5.0

    Hi the user should not manually check for updates so we want to disable the Check for updates button also in Help/About.
    Thanks in advanced

    You can hide that button with code in userChrome.css below the @namespace line.
    * http://kb.mozillazine.org/userChrome.css
    * http://kb.mozillazine.org/Editing_configuration
    You can use the ChromEdit Plus or Stylish extension to have easier access to the customization files.
    * ChromEdit Plus: http://webdesigns.ms11.net/chromeditp.html
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #aboutDialog #updateBox { display:none!important; }</nowiki></pre>
    You can also choose to lock the related update pref(s) to false if you want to make sure.
    See:
    * http://kb.mozillazine.org/Locking_preferences
    * http://kb.mozillazine.org/about:config

  • Help about W2K Apache plug-in for WLS

    Hi,everybody.
    I want to use the W2K apache http server for redirect the dynamic request to
    WLS. But i don't have the corresponding plug-in. Who can help me? or Who can
    give me some hint about this?
    Thanks in advance.
    BR
    Steven Zhao

    Hi Steven,
    as far as I know there is no Apache Plugin for Windows Platform. Your
    choice is either Unix->Apache or Windows->IIS. I think there is a
    Netscape Plugin as well, but I don't know for which platforms.
    Daniel
    -----Original Message-----
    From: Steven Zhao [mailto:[email protected]]
    Posted At: Friday, October 20, 2000 6:02 AM
    Posted To: management
    Conversation: Help about W2K Apache plug-in for WLS
    Subject: Help about W2K Apache plug-in for WLS
    Hi,everybody.
    I want to use the W2K apache http server for redirect the dynamic
    request to
    WLS. But i don't have the corresponding plug-in. Who can help me? or Who
    can
    give me some hint about this?
    Thanks in advance.
    BR
    Steven Zhao

  • Need help about Hidden Markov Model model

    I want to make classification for EEG signal using Hidden Markov Model
    algorithm based on neural network.
    plz need help about how to implement this algorithm using LABVIEW.
    if not I want another thing to make classification.
    any one know information about this topic, send me a reply
    thanks

    Have you derrived the HMM that you want to implement?
    If so, post the algorithm and we can provide comments on how to implement it using LabVIEW.
    Message Edited by Ray.R on 04-12-2010 12:54 PM

  • Help about location based classes

    Helo. i need some help about location classes(i use J2ME). i want to develop a gps compass application. when i connected to gps, orientation is shown on a compass.(for example if i go to northeast direction, compass indicator shows the direction between nort and east).
    I made connecting GPS. Now i must draw a compass and show the direction informations on it. For doing this, which location classes i can use?
    (i do search about this,but i didn't decide which class i should use. I thought that i can use Orientation class for this. I found a source code and tried it. According to this snippet source code about orientation class, my phone doesn't support Orientation class.But i found an application about gps compass, it works on phone. )

    i write this question CLDC{MIDP part.
    Thanks...                                                                                                                                                                                                               

  • How do i see what beta ver i'm at - deeper than Help | About Firefox - registry .. ?

    i am enrolled in the beta channel but because the notification popups are so quick i someties do not see that a new beta ver is available. i consult filehippo regularly to see what updates are out there but i want to have a way i can find what beta i'm at - Help|About Firefox doesn't get it - how can i find that? looked in registry but haven't found what i want
    any idees?
    ciao
    saw

    I'm not trying to discredit your work. But I did actually read the workaround and it is valid. That is true. But still that's not an answer to my question nor an explanation for that design choice. It's a workaround for a software not displaying the exact version.
    So why not jump in this thread if it exists? Why create a new thread with the same question? Also to apply your logic, why didn't anybody tell the user to use the stable version if he's incapable of figuring out the obvious?

  • Performance with using dbms_lock.sleep

    Hi,
    does anybody knows wether the performance of my database will going down if i use a dbms_lock.sleep(900) in one of my sessions.
    Regards, Kay

    We use dbms_lock.sleep all the time without any problems. Although, I have never used a 900 second value. Maybe you should look into using dbms_job.

  • Which file in Omni.ja contains the version number in HELP | ABOUT

    We are using Firefox in a corporate locked down environment.
    we have made a number of changes to files in the OMNI.JA file to configure Firefox accordingly.
    We now have a newer version of firefox to install/package however, when we replace the default omni.ja file in FF 10.0.10 and go into HELP | ABOUT it shows the version number of FF that the omni.ja file came from, ie 10.0.4.
    Which file(s) need to be replaced in omni.ja so that when we select HELP | ABOUT it shows the correct version of 10.0.10 ?
    regards
    Bill

    hello biffal, which changes to the omnia.ja file have you done originally? maybe there's a better way to do it, because this file will be overwritten by each & every firefox update...

Maybe you are looking for

  • QuickVPN and Windows 8

    I had been using QuickVPN from home to connect to an RVS4000 at my office. I recetnly updgraded to a RV180W. I can connect a Windows 7 Pro PC on my home network to the RV180W with QuickVPN. But I cannot conncect with a Windos 8 laptop. I have tried a

  • How do I authorize a new computer to play my purchased music on iTunes

    I recently got a new computer. My previous computer has iTunes but is no longer able to access the internet. I was able to get my music library from my original computer to the new one. When I try to play music, I get a window asking me to authorize

  • Problem with Field catalog

    Hi, I am trying to create a condition table for inventory management. I require it at material group / movement type level. I added the fields ZZMATKL (type MATKL) and ZZBWART (type BWART) in the structure KOMPBZ2 (which is present in in the include

  • Sorting a resultset

    Hi, How can I sort a resultset based on a particular column value? thanks in advance

  • Refine Edge tool problem

    I'm following a tutorial from the CS6 Photoshop essential skills CD using the supplied images. When I am using the refine edge tool and going over the areas around the hair of my subject, my selections appear as they do in the tutorial but as soon as