ORA-24408: could not generate unique server group name when PHP connects to Oracle on Linux system

Getting "ORA-24408: could not generate unique server group name" error on Linux server, the same code works fine on local Windows. Google a bit and found the solution:

there is a "HOSTNAME=netdisk7" record in /etc/sysconfig/network (netdisk7 is the set hostname, if it does not exist, it needs to be added), then add 127.0.0.1 netdisk7 in /etc/hosts , the two Hostnames must be the same. If you modify /etc/sysconfig/network, you need to execute service network restart to take effect.

 

# vi /etc/sysconfig/network



 

# vi /etc/hosts


 
Reference source: http://www.cnblogs.com/enjoycode/p/3542739.html
http://blog.csdn.net/geniuslinchao/article/details/22662917

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326615123&siteId=291194637