Link to home
Start Free TrialLog in
Avatar of scotru
scotruFlag for United States of America

asked on

Oracle ORA-24408: could not generate unique server group name PHP on Ubuntu

I am trying to setup a PHP (Ubuntu) server to connect to an Oracle database.  Installed oci8 PHP extension by following these directions:

https://help.ubuntu.com/community/PHPOracle

When I try to make my connection with oci_connect, I get:

ORA-24408: could not generate unique server group name

This article suggests downgrading to 10g, but I'd like to get it working with the latest client if possible:

http://nickshontz.wordpress.com/2011/11/29/php-oracle/

Comments suggest it might be related to a hostname problem--but I'm not clear from comments how to address the issue.  Any help much appreciated.
ASKER CERTIFIED SOLUTION
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of scotru

ASKER

Definitely on the right track.  I had to add a hosts entry for the server's host name in the /etc/hosts file for the loopback address.

127.0.0.1    server-hostname

This fixed the problem.  I'm not clear on the difference between 127.0.0.1 and 127.0.1.1 (maybe this should be the later, but it works with the 0.0.1).
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

127.0.0.1 is the universal loopback address.  technically anything with 127. is also considered 'local'.
Avatar of scotru

ASKER

Ah, I see-- yea, I'm familiar with 127.0.0.1, just didn't realize the whole class A was local.  

Thanks!