Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to test oracle is up and running in remote machine using shell script

user4469127Jul 11 2010 — edited Jul 14 2010
Hello,

I need help to write an linux script.

I have a java application server running on machine 192.168.5.20 and our oracle 10g standard 1.0.2 is running on machine 192.168.5.21.
I have found script to start oracle when computer is turned on.

But I cannot start my application server automatically since it depends on whether oracle is up and running or not on the remote machine.

Therefore, in case of power failure or maintenance, our client has to call us to start application server.

I would be grateful if someone can help me "How can I write script to check oracle is up and running in machine 192.168.5.21 from machine 192.168.5.20.

For your information, I have no oracle installed in application server. So tnsping won't work.

What I want is when power is back, application server script automatically and tesing for oracle server is up and running. If it is up, script will start application server.

Thanking you.
This post has been answered by Dude! on Jul 13 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 11 2010
Added on Jul 11 2010
12 comments
13,000 views