×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Testing To See If Oracle Instance Is Up On A Remote Server

Testing To See If Oracle Instance Is Up On A Remote Server

Testing To See If Oracle Instance Is Up On A Remote Server

(OP)
I need help figuring out how to test to see if an Oracle instance is up on a remote machine.

We have a copy of the same database on two different servers, one as a production database and the other as an emergency backup. There are several tables that need to be sync'd up nightly. I wrote nightly NT batch files that truncated the backup tables and then reloaded them from the production tables. That worked fine, until the one time that the production machines' Oracle went down. The backup tables got truncated, but since Oracle was unavailable on the production machine, the backup tables remained empty.

Any suggestions? As an added wrench to this, I am not allowed to have logins/passwords in any of the scripts...

RE: Testing To See If Oracle Instance Is Up On A Remote Server

You could copy the backup tables before truncating.  Then the data would be available in case the copy from production failed.  You might even be able to put logic in your batch job to decide whether the copy from production was successful.  You could then automatically restore the backup data from the previous night if the current night's production copy failed.

Your situation seems ideal for replication.  Have you considered setting up replication between your production and backup servers with a 24 hour refresh interval?  That way Oracle would take over the task of keeping the two databases in sync.

RE: Testing To See If Oracle Instance Is Up On A Remote Server

(OP)
Thanks for the suggestion.   I think I have found a way to do this by using the Unix ps -ef command (checks for active processes) and then some more scripting to verify that the processes are running.   

As for Replication...   "It is not our policy to use Replication", said the contracted Oracle DBA assigned to our group...   Sounds like a mechanic having a complete Craftsman toolbox, but only knowing how to use the hammer to me, but it is what I have to work with...

Thanks again...

RE: Testing To See If Oracle Instance Is Up On A Remote Server

Perhaps establishing your second database as a standby, then pushing your archived logfiles across to the standby database from production would be a better alternative. You can make the prod database automatically synch the logfiles via your network (but I think that is only available through v8 or higher.

RE: Testing To See If Oracle Instance Is Up On A Remote Server

This might sound foolish but have you thought of using a dblink running via pl/sql and checking for the error. Ps. Do be so harsh on your dba...

RE: Testing To See If Oracle Instance Is Up On A Remote Server

(OP)
Thank you for all of your suggestions.   It has finally been decided that this is a good occaission to use replication to load the tables nightly.   

Terry M. Hoey
th3856@txmail.sbc.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close