Can trigger wait for another trigger before it is fired?

i have table TAB1
and i have TAB1_HISTORY
when row gets inserted into TAB1 i have some logic in TRIG1 to updated few fields using rowid ARRAYS just to be safly updated everything in case more than one rows gets into TAB1.
now TRIG1_HISTORY suppose to move data from TAB1 into TAB1_HISTORY but some fields are null because TRIG1 may be not finished updating fields yet.
Any way to trig1_history follows trig1? I know one way is to make TRIG1_HISTORY as store proc .
i am usign 10g
thanks

There is no such thing as unassigned rowids.
If there is a rowid, the row exists and it can be updated.
The general strategy for your problem is
before statement trigger: set up an array with empty values.
before or after for each row: do whatever you want, and buffer the primary key (or rowid) in the arrary you set up.
After statement: do anything you want to do with the collected primary keys/rowids.
This is being processed in the correct order and it shouldn't fail.
Hth
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • Can i make a method to wait for 2 mins before executing in java??

    can i make a method to wait for 2 mins before executing??
    i mean when i execute a method ....it has to wait for 2 mins before finally executing...
    can i do this in java????
    Thanks,

    Sure, put this at the beginning of the method.
    try
        Thread.sleep(120000);
    catch (Exception ex)

  • Package deployment keeps getting stuck with message 'Waiting for another program'

    Hi, I just started working on SCCM.  We have an Orchestrator runbook which creates a collection and then creates an advertisement for packages and task sequences.  I was able to get a task sequence and a package successfully execute.  When
    creating the advertisement, I set it to RERUN_ALWAYS.  However, the next time I ran our runbook which creates the collection andadvertisement (I manually deleted the previous one), it does create them but the deployment is stuck to In Progres with the
    Description of 'Waiting for another program'.  This just happens for packages before and not for task sequences the other day but now, it's the same issue whether I use a package or a task sequence.   
    I see this in execmgr.log:
    <![LOG[Package UAT0007D, program Test is ready but can not be started because package , program  is currently running.]LOG]!><time="17:07:20.993+480" date="02-06-2015" component="execmgr" context=""
    type="1" thread="6804" file="executionrequest.cpp:9083">
    <![LOG[Raising event:
    [SMS_CodePage(437), SMS_LocaleID(1033)]
    instance of SoftDistProgramWaitingForAnotherProgram
    AdvertisementId = "UAT2011A";
    BlockingPackageID = "";
    BlockingProgramName = "";
    ClientID = "GUID:2FE27567-3215-4015-BE09-0E65F09767C8";
    DateTime = "20150207010721.004000+000";
    MachineName = "ACAA-UAT-SCCM";
    PackageName = "UAT0007D";
    ProcessID = 6316;
    ProgramName = "Test";
    SiteCode = "UAT";
    ThreadID = 6804;
    ]LOG]!><time="17:07:21.010+480" date="02-06-2015" component="execmgr" context="" type="1" thread="6804" file="event.cpp:729">
    <![LOG[Successfully raised SoftDistProgramWaitingForAnotherProgram event for program Test.]LOG]!><time="17:07:21.021+480" date="02-06-2015" component="execmgr" context="" type="1" thread="6804"
    file="executionrequest.cpp:9128">

    yes check the exemgr.log file and also see is that package has dependency for another package? and if yes then that package is already available non DP?
    Sharad Singh | My blogs: SharadTech | Twitter:
    @SinghSharaad | | Please remember to click “Mark as Answer” on the post that helps you.This can be beneficial to other community members reading the thread.

  • What is a quick alternative to launching an enterprise DPS app if Apple Store rejects the App? We are under a major deadline and can't wait for Apple. We want to host the app elsewhere. How do we host our DPS app on our client's website?

    What is a quick alternative to launching an enterprise DPS app if Apple Store rejects the App? We are under a major deadline and can't wait for Apple to approve. We want to host the app elsewhere. How do we host our DPS app on our client's website? Thanks.

    Unless I misunderstand the question, you can't do what you're asking to do. Apple doesn't allow you to bypass their store and host public apps on a website. The exception is an enterprise app, which requires an Enterprise account with both Apple and Adobe. This type of enterprise app can be distributed only within the company. If that's what you want to do, you can learn more here:
    Digital Publishing Suite Help | Creating viewer apps for private distribution
    Distributing enterprise iOS viewer applications with Digital Publishing Suite | Adobe Developer Connection
    Another option is to add the development app to several devices and use those for your demo.

  • Waiting for another script to finish...

    I can no more start or stop FMS3 server, it says :
    Waiting for another script to finish...
    According to the start script, i check
    /home/fms/tmp/script.lck and i have this file as empty, what should
    i do then ?
    Do you all have this file ? /home/fms/tmp/script.lck ?
    Jerome

    My reply is late i just read your problem after having the same, it locked up my whole Ubuntu system.
    Its easy to solve just delete the lock folder you see. Server should restart and work fine.

  • BEx Analyzer Report error - microsoft office excel is waiting for another

    Hi,
    I am running a query from BEx Analyzer, it is throwing the error as " microsoft office excel is waiting for another application to complete an ole action "
    Here in variable screen, I am trying to give input for the variables, then it is throwing the above error message.

    The error message you are receiving means that an Excel macro is waiting for another macro to finish in order to proceed. It is an informational message so you understand why the system is slower than expected.
    The solution is on the Microsoft side, see BOJ Note 1201513.
    From the MSDN link below, you will see a description of the Display
    Alerts Property:
    http://msdn.microsoft.com/en-us/library/aa194195(office.10).aspx
    DisplayAlerts Property
    wdAlertsNone No alerts or message boxes are displayed. If a macro encounters a message box, the default value is chosen and the macro continues.
    The Note suggests changing the "Application.DisplayAlerts = False" to "Application.DisplayAlerts = wdAlertsNone"

  • When server start, get "Waiting for another script to finish..." message and doesn't go anywhere.

    Hello, my engineer (Japanese) is trying to start AdobeMediaServer but he got stuck after getting "Waiting for another script to finish..." message. Any idea how to resolve this situation?
    [[email protected] /opt/adobe/ams]# ./server start
    NPTL 2.5
    chmod: changing permissions of `./tmp/': 読み込み専用ファイルシステムです
    Waiting for another script to finish...
    [[email protected] /opt/adobe/ams]#
    [[email protected] /opt/adobe/ams]#
    [[email protected] /opt/adobe/ams]# ls -l
    合計 52324
    drwxr-xr-x 15 ams  ams      4096  9月 11 17:54 Apache2.2
    -rwxr-xr-x  1 root root  1061035  9月 11 17:54 License.htm
    -rwxr-xr-x  1 root root    43374  9月 11 17:54 License.txt
    -rwxr-xr-x  1 root root    58827  9月 11 17:54 ReleaseNotes.htm
    -rwxr-xr-x  1 root root     5715  9月 11 17:54 adminserver
    -rwxr-xr-x  1 root root      871  9月 11 17:54 adobe-lq.png
    -rwxr-xr-x  1 root root     2912  9月 11 17:54 ams_icon.png
    -rwxr-xr-x  1 root root  3220552  9月 11 17:54 amsadmin
    -rw-r--r--  1 root root        6  9月 11 17:54 amsadmin.pid
    -rwxr-xr-x  1 root root 11187664  9月 11 17:54 amscore
    -rwxr-xr-x  1 root root  4331472  9月 11 17:54 amsedge
    -rwxr-xr-x  1 root root  3070840  9月 11 17:54 amsmaster
    -rw-r--r--  1 root root        6  9月 11 17:54 amsmaster.pid
    -rwxr-xr-x  1 root root     5242  9月 11 17:54 amsmgr
    drwxrwxrwx  6 ams  ams      4096  9月 11 17:54 applications
    -rwxr-xr-x  1 root root      960  9月 11 17:54 cleanup
    drwxr-x---  3 ams  ams      4096  9月 11 17:54 conf
    drwxr-xr-x  5 ams  ams      4096  9月 11 17:54 creds
    drwxr-xr-x  3 root root     4096  9月 11 17:54 documentation
    -rwxr-xr-x  1 root root 16368842  9月 11 17:54 libadbe_dme.so
    -rwxr-xr-x  1 root root   336065  9月 11 17:54 libadbe_flv.so
    -rwxr-xr-x  1 root root    59248  9月 11 17:54 libasneu.so.1
    -rwxr-xr-x  1 root root    71263  9月 11 17:54 libcares.so
    -rwxr-xr-x  1 root root    71263  9月 11 17:54 libcares.so.2
    -rwxr-xr-x  1 root root    71263  9月 11 17:54 libcares.so.2.0.0
    -rwxr-xr-x  1 root root  1968482  9月 11 17:54 libcrypto.so.1.0.0
    -rwxr-xr-x  1 root root   162403  9月 11 17:54 libexpat.so.1
    -rwxr-xr-x  1 root root  3497472  9月 11 17:54 libfmsccme.so
    -rwxr-xr-x  1 root root  6992879  9月 11 17:54 libhds.so
    -rwxr-xr-x  1 root root   403767  9月 11 17:54 libssl.so.1.0.0
    drwxr-xr-x  2 root root     4096  9月 11 17:54 licenses
    drwxrwxrwx  2 root root     4096  9月 11 17:54 logs
    drwxr-xr-x  5 root root     4096  9月 11 17:54 modules
    drwxr-xr-x  6 root root     4096  9月 11 17:54 samples
    drwxr-xr-x  3 root root     4096  9月 11 17:54 scriptlib
    -rwxr-xr-x  1 root root     7494  9月 11 17:54 server
    -rwxr-xr-x  1 root root   300864  9月 11 17:54 shmrd
    -rwxr-xr-x  1 root root    36206  9月 11 17:54 tcSrvMsg
    drwxrwxrwx  2 root root     4096  9月 11 17:54 tmp
    drwxr-xr-x  9 root root     4096  9月 11 17:54 tools
    -rwxr-xr-x  1 root root     2411  9月 11 17:54 uninstallAMS
    drwxr-xr-x  8 ams  ams      4096  9月 11 17:54 webroot
    [[email protected] /opt/adobe/ams]#
    [[email protected] /opt/adobe/ams]#
    ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー

    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.<br />
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    * https://support.mozilla.com/kb/Server+not+found
    * https://support.mozilla.com/kb/Firewalls

  • Microsoft Excel is waiting for another application to complete an Ole actio

    When I access Data Manager, I get the error message: "Microsoft Excel is waiting for another application to complete an Ole action."  When I click OK, I get another error: "Cannot download the dimension list from server.  Timeout expired.  The timeout period elapsed prior to obtaining a connection from the pool.  This may have occurred because all pooled connections were in use and max pool size was reached."  It never used to happen until recently.  I don't know what to tell the IT guys to do.  Thanks.

    This is a known error in V5. I have had this error at almost every V5 customer.
    The following solution (got it from support) solves it permanently.
    Changes have to be made to the outlooksoft.config file and the connectionstrings in tblappsetinfo. Be sure to restart the server(s) after applying these changes.
    1. In outlooksoft.config file of x:\OutlookSoft\Websrvr\bin folder on the web server change the following line:
    <add key="Database_AppServerDBConn" value="Server=<servername>;Database=AppServer;Trusted_Connection=True;"/>
    to
    <add key="Database_AppServerDBConn" value="Server=<servername>;Database=AppServer;Trusted_Connection=True;pooling=false"/>
    Please note that where I have <servername> you should put the name of your server ****
    Also, add the pooling=false; to every connection string in tblappsetinfo.
    I am sure this helps,
    Regards,
    Alwin Berkhout

  • LATINOS ARE SCREWED with final cut pro x. Everytime I use tildes like  á  for example. FCPX freezes and restarts.... really is a bummer. And on a side note, Color Curves? 3 Wheel Color Wheels? XML support? Can´t wait for multicam. God Bless!

    With final cut pro x. Every time I use tildes like  á  for example. FCPX freezes and restarts.... really is a bummer. PLZ FIX. Here in Colombia I can not use FCPX for projects which involve names or text. (ALL PROJECTS)
    And on a side note, Color Curves? 3 Wheel Color Wheels (color board is great, but i didnt read a 400 page book on 3 wheel color correction for nothing) ? XML support? Can´t wait for multicam. God Bless!
    FCPX IS GREAT. It really is. Just a few features are required.....

    w andrewfromjupiter wrote:
    Tildes can be both
    I think the idea that an acute accent can also be called a "tilde" is total nonsense.
    http://en.wikipedia.org/wiki/Tilde
    http://en.wikipedia.org/wiki/Acute_accent
    But good idea to report the bug here:
    http://www.apple.com/feedback/finalcutpro.html

  • Waiting for another JSP to end.

    document.dados.action = "exists.jsp?familia="+familia;
    document.dados.submit();
    alert('After ');the problem is that when I execute this peace of code the exists.jsp runs AFTER
    alert('After '); this one...
    But I wanted to do that alert before this...
    I belive the question is: how can I wait in my jsp for another jsp to finish running?
    Can you help me?
    Thanks in advance.
    Jos� Neves
    Edited by: Jose_Neves on Jul 30, 2008 5:00 AM

    Here is a link with the monthly fees:
    http://www.apple.com/iphone/easysetup/rateplans.html
    You would be forced to select one of these plans and pay for the actiavtion as well as the first month up front. With the cheapest plan this will be a little over $100.

  • Waiting for Pre+ fixes before buying

    I finally got the approval from my company to get the Pre+ on Verizon (switching from ATT). My company employs 66,000 people so the approval process on new devices takes some time especially if you want to use EAS.
    Now that the time is here, I find myself waiting for a few critical issues to get addressed before retiring my trusty 680.
    1. Double keys being entered - one big reason for not getting the iPhone is lack of a keyboard. Have an unreliable keyboard seems even worse. I hope 1.4.1 addresses this problem
    2. GPS not locking or not accurate - I use Telenav multiple times per week. I believe that I can port the Sprint image to the Pre+, but all the problems reported about GPS locking make me worried.
    Lastly, the AT&T pitch about being able to talk and surf the web at the same time has some appeal. I am on ATT now. A Pre+ on ATT would be an easier migration since I just swap the SIM. The GPS application problem would be addressed too since ATT supports Telenav. Now if I just knew how long "in the coming months" was!
    The thought of StyleTap on the iPhone with HotSync coming soon makes my head hurt since I could then use Datebk6.
    Any advice?

    travellerva wrote:
    When you say "disk problems", do you mean hardware problems, firmware problems or software problems?
    On directly-attached disks, we see this when the disk spins down, but won't spin back up fast enough or properly; or with a USB disk that gets its power from the Mac, but not quite enough sometimes; or port or cable problems; or one that's beginning to fail. It's very hard to tell, of course, which.
    I'm not very familiar with TCs, but a disk is a disk!

  • Patched Deployments issue: "waiting for another installation to complete"

    I have some percent of computers which runs into above state in monthly patch deployments. I could minimal information from execmgmr, udpatesdeployment.log,
    CliSpy and Client Center etc tools but that doesn’t offer much help to nail down the issue completely. Have any of you dealt to resolve such issue successfully ? Is there any efficient way to handle this ?
    It seems I have
    DeploymentA, waiting for the completion of DeploymentB, which in turn waiting for the completion of
    DeploymentC. Is there any better approach I could take to nail down and resolve the issue. One of my finding is,  KB articles installs (SCCM R3, SCCM Asset Intelligence) causes these issue as they restart (upgrade sort of execution) the
    agent during the execution, I need to confirm these
    Vasu

    Hi Vasu,
    This issue can be caused by a deployment was previously deployed and was now deleted. This was because the clients finished installation
    and wanted to notify the Server that it is done, but since the deployment was deleted, it couldn’t Notify its progress to the site server and the CCM_DeploymentTaskEx1 got stuck.
    Please use the following scripts to delete the instance to test this issue.
    strService = "CcmExec"
    strComputer = "."
    Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\CCM\SoftwareUpdates\DeploymentAgent")
    Set colWMISettings = objWMIService.ExecQuery("Select * from CCM_DeploymentTaskEx1")
    For Each objWMISetting in colWMISettings
    objWMISetting.AssignmentId = ""
    objWMISetting.JobId = "{00000000-0000-0000-0000-000000000000}"
    objWMISetting.Put_
    Next
    'Stop service
    Set objWMI = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
    Set objService = objWMI.Get("Win32_Service.Name='" & strService & "'")
    objService.StopService()
    WScript.Sleep 10000 ' Pause to allow service to stop
    'Start service
    Set objService = objWMI.Get("Win32_Service.Name='" & strService & "'")
    objService.StartService()
    WScript.Sleep 10000 ' Pause to allow service to start
    Regards,
    Sabrina
    This posting is provided "AS IS" with no warranties or guarantees, and confers no rights. |Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
    This can be beneficial to other community members reading the thread.

  • Whether two session with for update at the same time will wait for another?

    Will this scenario happen?
    One session executes: select ... for update/select ... for update nowait
    The other session also executes: select ... for update/select ... for update nowait
    Two sessions happens at the same time unluckily. Whether they will all stand by because of "for update" or quit immediately because of "nowait"?
    Thx a lot.

    HiddenName wrote:
    This situation is called 'a deadlock'. Oracle will automaticaly detect a deadlock. One of the statements will fail with ORA-00060 deadlock detected;
    No, it's not.
    A deadlock is when sesson-A has a lock on something that session-B needs in order to continue, and at the same time, session-B has a lock on something that Session-A needs in order to continue. They BOTH have something the other needs.
    In the OP's case, at least as he described it, it is simple serialization. The one with the lower scn will go, then the next.
    PS.
    Why don't you try? You can setup a small table with some records, open 2 sessions to the same database and for example issue UPDATE statements:
    session 1: update where id=1
    session 2: update where id=2
    session 1: update where id=2 - this will hang waiting for session 2 to commit and free lock
    session 2: update where id=1 - ORA-00060
    You may also read about deadlocks in chapter on "Data Concurency and Consistency" of "Oracle Concepts'.

  • VI waiting for another VI finishing before completing

    Howdy
    i have a goniometer.vi which should move the detectorarm 1°, then starts a spectrometer.vi and measures the spectrum. after completing measurements the goniospectrometer.vi should move another 1° and again...
    i have made the spectrometer.vi a sub.vi and wanted to include it into goniometer.vi, but i have no idea how to tell the goniometer.vi that spectrometer.vi is ready for moving on.
    thanks
    Robert

    Use a while loop. Make sure that both subvi's (goniometer and spectrometer) have error in and error out. Call the goniometer vi first and spectrometer second, wire error out from the first to error in of the second. Put some kind of exit condition to stop the loop. The first vi will execute, then when it is done the second will execute. The process will repeat until the stop condition is met.
    - tbob
    Inventor of the WORM Global

  • Waiting for another Process??

    hello all,
    I need a little help. when my application starts i need to be able to launch another process(another java application) and then kill my current one. The way i am doing it now is i fire off the other application and then do a system.exit(0). Well, this works when i test, but when a launcher is built with InstallAnywhere, it does not. When i call the system.exit to kill the current process, everything gets killed, the second app never gets launched. So, im guessing it just doesnt have enough time to start teh new process. I wanted to put some code in to wait and make sure this new process has been started before killing this current process. I am not sure how to do this. I know it is possible to get some process information using JNI, but we can not use it do to portability issues
    thanks!

    I beg your pardon?
    You want to get a reference to the program that some code is running in? And when that program ends, you want some code in that program to do something? Regardless of the fact that the program already ended and that code doesn't exist any more?

Maybe you are looking for

  • Highlighting Text in CAD drawings

    I would like to have the ability to highlight page items other than "text." For example, if a page has been scanned in (and has not had OCR performed on it) you cannot highlight the text, because Acrobat views the page as a raster image, not as text

  • CC Swiper with new iPhone OS?

    Does anyone have any kind of idea when we'll see a credit card swiper come to market for the iPhone? I know that previously a swiper was not possible, but my understanding is that with the iPhone OS 3.0 that it's possible to have things like credit c

  • DB migration from 9i to 10g (in a new server) using a cold backup

    We have a cold backup of a 9.2.0.5 database, we would like to migrate this 9i DB to a new server with only 10g software already installed. 1- can we use DBUA to do the migration? 2- should we start the database before running DBUA? 3- if yes then we

  • Problem with netbeans IDE

    hey! i am a learner of j2se 5.0 and am horrible at command line compiling. so i use netbeans IDE and well it has been doing excellently till now. recently i had a porblem with ImageIcons and i found the exact problem which i was having but with repec

  • Bex Error : period 0000000 - No Valid translation date to specify (Z_FRCPE)

    Hi Experts, While executing the reports with few selection we are getting the below warning message : period 0000000 - No Valid translation date to specify (Z_FRCPE) period 0000000 - No Valid translation date to specify (ZMOEND ) I want to know why t