A follow up to Setup Oracle/PHP connection on RHEL6
The Code:
if ($c = oci_connect($username, $password, $hostname)) {
echo "Successfully connected to Oracle.\n";
OCILogoff($c);
} else {
print("
<pre>”.print_r(OCIError(),true).”</pre>
“);
}
The Output:
Array
(
=> 24408
[message] => ORA-24408: could not generate unique server group name
[offset] => 0
[sqltext] =>
)
The fix:
Downgrade the Oracle Instant Client from 11 to 10.
You are a life saver.
Spent two days digging after the wretched ORA-24408 error with absolutely no help.
Your one-liner suggesting downgrade of instant client made my day!
THANK YOU!!!!
Hi,
Just like to add to this; we had the exact same problem following a hostname change (the SA updated /etc/sysconfig/network, but missed /etc/hosts so the loopback address didn’t resolve). Make sure you update /etc/hosts when you change hostnames. So; no need to roll back to 10g!
Should add that rolling back to 10g does fix it, presumably because it doesn’t rely on the loopback address!