1833613 Members
3300 Online
110062 Solutions
New Discussion

service priority

 
SOLVED
Go to solution
Troyan Krastev
Regular Advisor

service priority

Hi All,

I have a package with two Oracle DB and one daemon. I want these tree services to be started in particular order. Is there a standart way to provide service priority or I have to do it manually in the scripts?

Thanks,
Troy
4 REPLIES 4
Paul Sperry
Honored Contributor

Re: service priority

you should be able to do this with the nice command.

man nice
Troyan Krastev
Regular Advisor

Re: service priority

What I want to do inside the package is:
1. Run Service Number 1 - Oracle Instance 1
2. Run OService Number 2 - Oracle Instance 2 (if service #1 is running)
3. Rum a daemon program (if service #1 and #2 are runing).

The services should be started in exactly this sequence.

Thank


Jeff Schussele
Honored Contributor
Solution

Re: service priority

Hi Troy,

AFAIK it has to be done in the scripts, i.e. DB #2's script must be looking for DB #1 to be up before it starts DB #2. Then the daemon's script needs to look & see if both DB1 & DB2 are up before starting up it's process.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Troyan Krastev
Regular Advisor

Re: service priority

Thanks Jeff,

After I posted this question I found some similar discussions in the forum. They were not for the services but for the packages, which is the same. There is no standard provided by SG for that.

Thanks again,
Troy