The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Getting Started in CEP: How to Build an Event Processing Application (Slides) iBot Complex Event Processing RSS News 0 09-23-2007 09:50 AM
Getting Started in CEP: How to Build an Event Processing Application (Part 1) iBot Complex Event Processing RSS News 0 07-19-2007 02:10 AM
Start and stop of an application thru shell scripts. sadha Shell Programming and Scripting 1 05-08-2006 06:36 AM
where to put an application if i want to start it on start up shukla_chanchal Linux 3 11-03-2005 07:12 PM
how do i auto start application upon startup? doofie UNIX for Dummies Questions & Answers 2 04-01-2004 06:20 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 08-13-2003
Registered User
 

Join Date: Aug 2003
Posts: 2
Unhappy 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.
Forum Sponsor
  #2  
Old 08-13-2003
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,609
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
Registered User
 

Join Date: Aug 2003
Posts: 2
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
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
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).
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:05 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0