My script is only to verify database connection, database and listen is up.
my $result = system("sqlplus -L -V scott/scott \@database")
but the result is always 0 regardless. I tried to execute a simple query like select sysdate from dual to prove it is up. but I cannot figure out how to do it. Please help. Thanks in advance