ORA-24408: could not generate unique server group name

一台新虚拟机,CentOS 6.5系统,用lnmp一键安装包安装好Nginx + PHP环境,再安装Oracle客户端,准备搭建PHP连接Oracle,访问oracle.php,测试连接Oracle的时候,出错:

ORA-24408: could not generate unique server group name


LZ也是遇到这样的问题,Camden S.给出的回答很详细:

You can downgrade to 10g if you want (it evidently doesn't care about this) but that's not necessary...

The 11g instant client requires a /etc/hosts file entry for your hostname pointing to The normal "localhost" entry is not sufficient on it's own.

Assuming your host name is foomachine, there are two places you'll need to check:

In /etc/hosts, make sure you have any entry like - add it if it's not there:   foomachine

And also make sure the /etc/sysconfig/network file also has 


That should do the trick.





posted @ 2014-02-10 13:50 享受代码 阅读(...) 评论(...) 编辑 收藏