Start application after Oracle has started


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Start application after Oracle has started
# 1  
Old 08-13-2003
Data Start application after Oracle has started

Who can tell me how I can see to it that a application doesn't try to start it's processes untill Oracle has completely started.

Thanx.
# 2  
Old 08-13-2003
The exact answer depends on which OS you are running. But these days most unix variants have a series of little start up scripts that are run in order according to the name of the script. If you look at your start up scripts, it should be fairly obvious.
# 3  
Old 08-13-2003
Thank you for your reply, but the boot sequence is OK. It just doesn't seem to wait for one (Oracle) to completely start up, before it tries to start up the next one.[

QUOTE]Originally posted by Perderabo
The exact answer depends on which OS you are running. But these days most unix variants have a series of little start up scripts that are run in order according to the name of the script. If you look at your start up scripts, it should be fairly obvious. [/QUOTE]
# 4  
Old 08-13-2003
First, post what OS and version.

Second, post how you are starting these two processes - include, if applicable, the lines from the script(s). Post if the processes are started from the same script, or two different ones.

As a suggestion (since the information isn't yet known), you could look for the first process id from the script running the second process (modify your script to write it to a file, or create a temp file that the second script waits to be delete before starting to run) and use either the sleep command or wait command while waiting for the first to finish.

Example:
First script starts first Oracle process: change it to create a temp file
touch /tmp/Oracle1.tmp
At the end of the script, remove the temp file.

Second script starts second Oracle process:
Checks to see if the file exists - if it does, sleep for xx amount of time and then check again. Once the file is removed, the second script will start the second process.

If your OS, as Perderabo has mentioned, uses different scripts in startup, then it's also just as easy to find how much time you need to wait and just put the second script in a 'later' start by changing the number of the script (S99 versus S01).
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Programming

The application was unable to start correctly(0xc0150002).

Dear Team, please help me on the issue "The application was unable to start correctly(0xc0150002).click ok to close the application" Have created the build using installshield 2012. dll was generated from VS2008. Used 3rd party libraries.Included all the libraries,dll. This was the first tme... (1 Reply)
Discussion started by: SA_Palani
1 Replies

2. Shell Programming and Scripting

Want to backup dirs on application start and close.

Hi I want to write a script that will back up one directory if a certain application launches and then backs up another directory if that same application is closed down. NFI where to start. It seems like cron isn't the tool for this because that is time based. I'm thinking I need... (6 Replies)
Discussion started by: zorrokan
6 Replies

3. UNIX for Dummies Questions & Answers

Shell Scripting Stop/Start Application

I did a search of these forums but couldnt find a suitable resolution. I am attempting to script a stop and start of an application on AIX. Such as: However it has authentication where username and password prompts will appear after running the above command requiring input from a... (2 Replies)
Discussion started by: Soupy
2 Replies

4. UNIX for Dummies Questions & Answers

How to start application and keep script running

What I'm looking for is best explained with a little example. #!/bin/bash gedit echo "I need this message to appear while gedit is still running, but it appears only then when I close gedit." Of course most of the times you want the script to wait, but in this case I want to start a new... (5 Replies)
Discussion started by: MrZehl
5 Replies

5. Shell Programming and Scripting

How can I start a SH application when someone makes a ssh connection?

Hello everyone, I'm trying to control the access in my server. I did an application that can read audit logs and sys logs with the purpose to send me a report by email with important information about the user. It's a SH file. My problem is start the program when someone makes a ssh connection.... (4 Replies)
Discussion started by: journey
4 Replies

6. Shell Programming and Scripting

Start and stop of an application thru shell scripts.

Hi, I just learnt the shell scripting and got working on that right now. I have one problem. Here i am having a java application that needs to be start and stop using two shell scripts, i.e., starting the java application using one shell script and stopping the application using another... (1 Reply)
Discussion started by: sadha
1 Replies

7. Linux

where to put an application if i want to start it on start up

hi i want to know the way by which i put any file somewhere and it get s started when the system restarts or bots i mean whenever my system starts that application must also start thanks (3 Replies)
Discussion started by: shukla_chanchal
3 Replies

8. UNIX for Dummies Questions & Answers

how do i auto start application upon startup?

sorry, i'm a newbie to unix... but how do i or rather where do i write scripts that auto start my application e.g. Informix? in Windows it would be services but in UNIX where can i auto start my informix program? To run informix i just type "oninit". And do i have to login to any user before... (2 Replies)
Discussion started by: doofie
2 Replies
Login or Register to Ask a Question