Hi all,
Help please.
Environment:
Unix (Tru64) / Apache / PHP4.0.6 / Oracle8i
Establish connection to Oracle:
for ($I=0; $I<$max_attempt s; $I++) {
if (!$conn) {
$conn = @OCILogon($user name, $password, $db);
}
}
if (!$conn) {
echo "Connection failed";
$subject = "Connection failed";
$body = "Error Message: [" . OCIError($conn) . "]";
mail($me, $subject, $headers, $body, $param);
exit;
} else {
echo "Connected! ";
}
Connection appeared to have failed, but no OCIError displaying (Error
Message: []).
Discovered that the Oracle password had expired, but that I was still in
the "14 day grace period". OCI was actually returning
"OCI_SUCCESS_WI TH_INFO" (the extra info being the password expiry
alert).
$conn not valid (apparently the "WITH_INFO" somehow scrambled it???),
but
a Oracle session *WAS* actually established, and eventually the DB maxed
out on session limits due to continual script retries.
Any suggestions on how best to handle this?
TIA
Geoff M
Help please.
Environment:
Unix (Tru64) / Apache / PHP4.0.6 / Oracle8i
Establish connection to Oracle:
for ($I=0; $I<$max_attempt s; $I++) {
if (!$conn) {
$conn = @OCILogon($user name, $password, $db);
}
}
if (!$conn) {
echo "Connection failed";
$subject = "Connection failed";
$body = "Error Message: [" . OCIError($conn) . "]";
mail($me, $subject, $headers, $body, $param);
exit;
} else {
echo "Connected! ";
}
Connection appeared to have failed, but no OCIError displaying (Error
Message: []).
Discovered that the Oracle password had expired, but that I was still in
the "14 day grace period". OCI was actually returning
"OCI_SUCCESS_WI TH_INFO" (the extra info being the password expiry
alert).
$conn not valid (apparently the "WITH_INFO" somehow scrambled it???),
but
a Oracle session *WAS* actually established, and eventually the DB maxed
out on session limits due to continual script retries.
Any suggestions on how best to handle this?
TIA
Geoff M
Comment