G
Gianni
Im trying to access a database using sqlplus in this way:
$command = "sqlplus -S " . $usr . "/" . $pwrd . " \@miooop060.sql";
print "$command";
$status = system ($command);
print "status" . $status;
if I give the above line the correct user and password there is not
problem.
The problem is when I test the error and give that line the wrong user
and password.
The program writes to the console this error
ORA-01017: invalid username/password; logon denied
and stops. What I would like to do is to the write the error in some
logfile and go on with the program .
Any ideas ?
Thanks
Gianni
$command = "sqlplus -S " . $usr . "/" . $pwrd . " \@miooop060.sql";
print "$command";
$status = system ($command);
print "status" . $status;
if I give the above line the correct user and password there is not
problem.
The problem is when I test the error and give that line the wrong user
and password.
The program writes to the console this error
ORA-01017: invalid username/password; logon denied
and stops. What I would like to do is to the write the error in some
logfile and go on with the program .
Any ideas ?
Thanks
Gianni