My script is only to verify database connection, database and listen is up.
Even for that purpose, I would use DBI and DBD::Oracle. It avoids messing with the default shell, and it avoids messing with SQLplus, which is absolutely not designed to be scripted.
DBI->connect(...) either works or fails, put that in a loop and report the collected pass/fail information.
Alexander
In reply to Re: SQLPLUS connect database
by afoken
in thread SQLPLUS connect database
by ytjPerl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |