Run shutdown oc4j instance automatically when user Turn off/Log off

Hi All,
Can you help me anyone to run the shutdown oc4j instance automatically when user Turn off/Log off the application or the computer?
I want to use any Schema level trigger if possible to solve the issue.
I am using oracle Developer Suite 10g and Database 10g as well.
Arif

Ah, sorry I misunderstood your question (probably not enough coffee in the morning); anyway there are folders for scripts which should be executed on startup / shutdown or logon / logoff:
Startup
%SYSTEMROOT%\System32\GroupPolicy\Machine\Scripts\StartupShutdown
%SYSTEMROOT%\System32\GroupPolicy\Machine\Scripts\ShutdownLogon
%SYSTEMROOT%\System32\GroupPolicy\User\Scripts\LogonLogoff
%SYSTEMROOT%\System32\GroupPolicy\User\Scripts\LogoffWrite a script to startup / shutdown your OC4J (probably calls to startinst.bat and stopinst.bat) and place them in the apropriate folders.
cheers

Similar Messages

  • Hi I do not want iTunes to open up automatically when I turn on my macbook pro.  I tried going to System Preferences Users and Groups Login Items and then I took iTunes off the list but it still opens up automatically when I turn on my laptop.

    Hi I do not want iTunes to open up automatically when I turn on my macbook pro.  I tried going to System Preferences>Users and Groups>Login Items and then I took iTunes off the list but it still opens up automatically when I turn on my laptop. What should I do?

    Hi r,
    Make sure you close iTunes before shutdown.  And you're quite welcome.

  • I am trying to stop programs from opening automatically when I turn my computer on.  I tried system preferences users and groups login items...then I deleted them from the list but it did nothing.

    I am trying to stop programs from opening automatically when I turn my computer on.  I tried system preferences>users and groups>login items...then I deleted them itunes and emial from the list but it did nothing.  They continue to open up every time I turn on my Macbook Pro.

    Hi r,
    It sounds like you're running Lion?
    Have you tried running Verify and/or Repair Disk?
    Have you tried running Repair Permissions?
    Do you have at least 15% free space available on your HD?

  • How do I stop apps and docs from opening automatically when I turn on my laptop?

    How do I stop apps and docs from opening automatically when I turn on my laptop?

    system preferences>users and groups>select user>check boxes of apps you do not want to auto open.

  • OC4J instance restart when launch the URL

    Hi,
    We are using oracle 10g AS and 10G db for our environment. I managed to configure and bring up the OC4J instance (based on vendor doc) but when I try to connect to the system. the OC4J instance automatically get restarted (it is connecting to http://t1fpmsmyap:7778/ls/mainMenu.do). Here is the log file gathered from opmn/logs directory.
    05/10/01 12:58:35 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)
    initialized
    05/10/01 13:19:50 /z01/appl/oracle/as10gj/9.0.4/j2ee/t1fpmsmyap/applications/ls_
    app/ls_web/WEB-INF/classes
    When i connect the sysem, the entry below display in the log file and after a while the OC4J instance get rebooted. The /z01/appl/oracle/as10gj/9.0.4/j2ee/t1fpmsmyap/applications/ls_
    app/ls_web/WEB-INF/classes directory is where all the applications code store.
    05/10/01 13:19:50 /z01/appl/oracle/as10gj/9.0.4/j2ee/t1fpmsmyap/applications/ls_
    app/ls_web/WEB-INF/classes
    05/10/01 13:23:29 Stop process
    05/10/01 13:25:01 OrionCMTConnection not closed, check your code!
    05/10/01 13:25:01 Logical connection not closed, check your code!
    05/10/01 13:25:01 (Use -Djdbc.connection.debug=true to find out where the leaked
    connection was created)
    05/10/01 13:25:14 Shutting down...
    05/10/01 13:25:15 Start to clear system configuration
    05/10/01 13:25:15 Start to clear the cache
    05/10/01 13:25:15 Clear the cache succes
    I am very new to oracle apps server and java. Appreciate for any help.
    JAVA OPTION setting is
    -server -Xms512m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:NewSize=256m -XX:MaxNewSize=256m -Djava.security.policy=/z01/appl/oracle/as10gj/9.0.4/j2ee/t1fpmsmyap/config/java2.policy -Dconfig.file.path=/z01/appl/oracle/as10gj/9.0.4/j2ee/t1fpmsmyap/app_config/ -Dconfig.appserver.path=/z01/appl/oracle/as10gj/9.0.4/j2ee/t1fpmsmyap/ -Dconfig.appserver.instance.name=t1fpmsmyap -Ddedicated.rmicontext=true -Djava.awt.headless=true -Djava.library.path=/opt/mqm/java/lib/
    HIBERNATE_HBM_PATH:/z01/appl/oracle/as10gj/9.0.4/j2ee/t1fpmsmy
    ap/applications/ls_app/ls_web/WEB-INF/classes
    Thanks
    Regards,
    Goh

    Hi,
    same problem, no clue....
    I have IAS 10g 10.1.2.
    My Box is a Pentium Xeon 700 MHZ 2GB RAM; also installed Oracle 9.2.0.4 .
    Thanks for any help.

  • In windows 7, how to make firefox start automatically when I turn on the computer

    In Windows 7, how to make Firefox start automatically when I turn on the computer. Note, I am asking how to do this with Windows 7, not xp, not vista.

    You need to place a shortcut to open Firefox in the Start > Programs > Startup folder.<br />
    That is basically the same in all Windows versions.

  • Why is the brightness of my iMac become 100% automatically when I turn on..

    Why is the brightness of my iMac become 100% automatically when I turn on my computer even though I set the brightness to the lowest before I shut it down.
    I want to set the brightness to the lowest every time I turn on the computer automatically.
    Is there anything I can do?

    Hi,
    There seems to be a serious issue with screen brightness on the 24" iMac. About 6 days ago I bought a 24" iMac (2.66 Mhz model w/4 GB RAM + 640HD).
    Out of the box it had Leopard 10.5.5 installed; there were several problems.
    1. Screen brightness was way too BRIGHT. Display preferences would not pull brightness down. At least not down far enough so that the screen could be viewed without extreme discomfort. Plus add insult to injury a reboot would reset the preferences to maximum brightness. NOTE: An upgrade to 10.6.1 did NOT fix the issue.
    2. Viewing a browser page via either Safari or Firefox (latest versions of each) was not good. A vertical scrolling would be jumpy and appear pixelated. Upgrade to 10.6.1 seemed to fix most of the issue in Safari, but Firefox was still not working properly. The issue appeared like a horizontal "ripple" in about the bottom 2/3 of the browser window. The effect did NOT extend outside of browser window. Changing screen resolutions did not work.
    3. Connecting a USB Logitech head set caused issues with Sound preferences.
    If the head set was connected during startup the machine would recognize them as main sound. The internals speakers did NOT appear in the Sound preferences. as an optional choice. Removing USB headset and reboot would return the internal speakers to the Sound preferences. Plugging in headseat would work for a while. We could repeat and same problem would occur.
    These are all in 10.6.1 - definate bugs.
    Returned with the iMac to the Apple store. Bottom line, after nearly three hours; the Apple technician, and everyone could see what we were talking about.
    Regarding the screen brightness. Nothing they could do about it. They stated that "not too many people have complained about it, to their knowledge." They stated that the electronics in the "florescent" panel could not be turned down the same way. TRANSLATION: The programers at Apple let this one slip past them. As a customer (software programmer & network analyst) I expected a bit more of an intelligent answer.
    However.
    Examining the 20" model I noticed that we could turn down the screen brightness - at least to a level that my wife and I could live with. PLUS the settings remained after a restart. Something that was NOT happening with the 24" model.
    So - we exchanged the 24" for a 20". Frankly we are a LOT happier. The Safari/Firefox issue is still carried over to the 20". However it is not nearly so noticable on the smaller screen.
    Plus the USB headset did not cause the same Sound Preference issues.
    So - Thanks for the speedy return/exchange of the iMac. But someone needs to look at this from the programming side of things.

  • In windows 7, how do I make firefox start automatically when I turn on the pc.?

    In windows 7, how do I make firefox start automatically when I turn on the pc

    That worked, thanks. When I turn on the pc, I almost always go to the internet before anything else, so this eliminates one step. It doesn't seem to save any time, however, but it is easy. If anyone else wants to try this, it looks like it's very easy to undo if you change your mind.

  • Hp pavilion 15 screen turn off for few second when i turn on or off charger

    Hello,
    I bought new hp pavilion 15. i notice many time when i turn on or off my charger, screen turn off for few second then after few second screen turn on. please help me out its furstating me . 
    This question was solved.
    View Solution.

    >> It is customary and in this case Necessary for you to provide the exact model of Notebook you have a problem-with. [ There are MANY variations of HP Pavilion 15-T Models, for example. ]
    >> You should always be sure you have installed/applied ALL updates for all of your Notebook's hardware devices, and ALL Windows Updates labeled "Important" and ALL "Optional"-section Windows Updates for any hardware device in your Notebook which the Windows Updates service detects (and offers an Update for).
    >> For example, this link:  http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=4158&lc=en&cc=us&dlc=en&sw_lang=&product=6787... has the latest HP Drivers and Patches for a specific variant of the Pavilion 15-T.
    >> AFTER you are certain you have all the latest drivers and patches in-place, you can try the 'old Trick' as follows: Shutdown Windows; when your Notebook has turned-Off completely (after Shutdown completes), THEN remove the AC Adapter connector and remove the BatteryPack.
    >> Hold DOWN the power-button continuously for a full 62 seconds. Then put your BatteryPack back in your Notebook. Do NOT connect your AC Adapter yet. Power-On the Notebook and Logon into Windows. Check the Control Panel\Power Options settings and find out the Charge Level of your BatteryPack. If it is below 25%, then (and only then) plug in your AC Adapter and connect it to your Notebook... and let the BatteryPack charge up "completely" to 98-100% Level. *Note: if your Adapter has a removable AC cord-connector, be certain that connection is 'tight'. <Do NOT stick your fingers or ANY object into any AC Adapter!> If you even think your AC Adapter is faulty, GET A NEW ONE! Damaging a $400-$800 Notebook PC is NOT worth it, versus the cost of a New Adapter.
    >> Use the built-in Help functions of your Notebook to find out how to DISABLE(!) "Hibernation", and eliminate that TROUBLE-CAUSING 'feature' of Windows PCs. When you have done so, always REStart Windows, to be certain the changes are applied. *Many changes and Updates take place 'Fully' only "during" Shutdown and/or "during" Startup of Windows PCs. [While Windows O.S. is "running", most of it's System Files are LOCKED.]
    >> FYI: always let your BatteryPack run down to it's Lower setting BEFORE you plug-in your AC Adapter/Charger. Charging  any rechargeable BatteryPack at  "mid-charge-levels" causes shorter BatteryPack life...

  • Clicks & glitches in the automation when bypass turns on and off

    I get clicks & glitches when I automate logic plugins to turn on/off (bypass) on an audio track. The clicks & glitches happen at the point in the automation when bypass turns on and off.
    Has anyone else experienced this?
    Who can help me with this?
    Thanks so much
    ps - I use Logic Pro 8

    Certain fx plug ins unfortunately just do that when you switch them on and off while audio is passing through them. It's not technically a bug, it's just the way the audio is handled by the plug in that means it can't manage to cleanly cut in and out. When this happens, you have to use alternative methods such as the one already suggested. Depending on what you need to do there are other ways around this. If you're able to engage/disengage the plug in at moments of silence in the audio (such as in between words in a vocal track), then you could use volume automation to go in very precisely to silence the clicks when they happen. But if you're automating the effect on continuous audio, sereen's suggestion of using an aux and automating the send is a more appropriate workaround. Another technique is to just bounce an entire copy of the track with the effect on it, and then just edit it in and out (still on a separate track if you like) as needed, this way you can use fades as well to clean it up. But this is only appropriate in certain situations and might not be the right approach depending on what you're doing.

  • FRM-92101 when user tries to log on with invalid password

    Hi,
    We have the following issue.
    When users try to log on to our webforms applications with correct user name and password everything works fine.
    When they try to logon and use (by accident) an incorrect password they do not get the expected ORA-1017 invalid username/password; logon denied but a FRM-92101 - There was a failure in the Forms Server during startup ....
    Any help is appreciated!

    B.t.w. the application.log on the Oracle Application Server shows the error text:
    java.io.IOException: FRM-93000: unexpected internal error.
    Details: No HTTP headers received from runform
    at oracle.forms.servlet.ListenerServlet.forwardResponseFromRunform(Unknown Source)
    at oracle.forms.servlet.ListenerServlet.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534).

  • Why does my signal drops and takes a long time to search and connect when I turn on or off my cellular data? And normal text messages are not getting delivered properly. It shows sent but later it will show try again, Is it just me?

    I do not know what the problem is, but after the latest update it is really hard to send text messages. It is taking alot of time to send the messages, it is not the problem with the carrier because sending text messages with the same number in the same area is really easy on my normal nokia 1100. Please suggest me what I should check. Second problem I am facing is the carrier signal drops to nothing when I turn on the cellular data. It has to then search for the network and connect again the same happens when I turn the data off again. Please tell a solution. I do not think it is the problem with the hardware because the phone is hardly 2weeks old and everything was working properly with ios 6. It initaly had problem with the battery on updating to ios7 but that was rectified with the new update but again these are the new issues am facing.

    This may sound stupid, but I'm gonna throw it out there anyway. Is it possible, that if I have enough junk on my desktop it might disrupt the signal? It seems odd, but it kind of looks like my signal is strong and relatively steady now that I've cleaned my desktop. I do tend to get very cluttered. I use a lot of reference images and save text clippings to use later... it just piles up very quickly.
    So, I wonder if all that extra effort my system has to do keeping up with the junk might have something to do with the drop outs?

  • When I take a picture with the flash on auto, I get a blue circle and no picture. When I turn the flash off the  picture comes out fine. What do I do to take a pic in low light

    When I take a picture with my iphone 4 and the flash is on I get a blue flash and a big blue screen with no pic. When I  turn the flash off the pics come out
    fine. I turn the flash on to take a pic in low light I just get a blue screen. How do I remedy this?

    Try a reset or restart of the device.
    If that doesn't work attempt a restore of the phone's iOS

  • I have to reenter my Wifi password every time I restart my Ipod touch.  It used to retain the password but now it drops out when I turn the Ipod off. Any suggestions?

    I have to reenter my Wifi password every time I restart my Ipod touch.  It used to retain the password but now it drops out when I turn the Ipod off. Any suggestions?

    Try:
    ipod touch wont remember wifi password: Apple Support Communities
    Also, have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"?

  • The light on the back of my phone will not turn off, even when I turn the phone off. Help?

    The light on the back of my iphone 4s will not turn off. Even when I turn the phone off the light stays on.  Can someone help? I did notice that the camera on the back has a little bit of moisture. (I have 3 small kids).

    You will need to have the hold switch replaced.

Maybe you are looking for

  • Is it possible to add a custom menu item to built-in apps like addressbook, safari etc in iPhone

    Is it possible to add a custom menu item to built-in apps like addressbook, safari etc in iPhone

  • Issue at making an interface

    Hi guys In oDI 10.1.3.5 I am making an interface that has many relations between tables of an ERP of Oracle when I drag an drop any of them it's pasted in the source area in the interface but I can not see its columns. i can check the number of rows

  • Payment terms using a fixed amount.

    Is there a way to create a payment terms for a fixed amount instead of a percent discount.  We have a term where the customer can take a 10.00 discount if paid within 30 days.  All i can see is a percent of discount.  This wont work cause the invoice

  • How to clear cache for file server

    Hi All, I want to know that how to clear the cache in solaris using commands. What is the ip connection cache file? Please share your knowledge with me. Thanks in anticipation. Regards Anup

  • Active "Report Service Integration Feature" failed

    Hi Expert,   I tried to reactive the "Report Service Integration Feature" from "Deactivate", but failed. system show  The content type with Id 0x010100C3676CDFA2F24E1D949A8BF2B06F6B8B defined in feature {e8389ec7-70fd-4179-a1c4-6fcb4342d7a0} was foun