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.