Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check databases in Perl

Status
Not open for further replies.

sappleg

Programmer
Apr 15, 2008
31
CA
Hi,
I am writing a perl script that does some actions based upon the database (Oracle) availability. We have 2 databases. For example, if the 'Database 1' is avaialable, I want the program to do some required steps, and the same with 'Database 2'. Both are Oracle databases. If none of the database is available, then simply do exit or do anything else.

Is it possible in Perl (I guess so). Can someone please enlighten me in this regard?

Your help is really appreciated. Thanks in advance.
 
Oh! By the way, I don't want to use DBI
 
I guess i have to ask..

Why don't you want to use DBI?

I guess you could shell out to sqlplus but that is definitely a pain.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top