错误提示:
Warning: oci_connect(): OCIEnvNlsCreate() failed. There is something wrong with your system - please check that LD_LIBRARY_PATH includes the directory with Oracle Instant Client libraries in ......
Warning: oci_connect(): Error while trying to retrieve text for error ORA-01804 in ......
connection failed
提示说是Oracle客户端依赖库路劲有问题。
网上的解决方法大多都说是没有配置环境变量,配置完oracle环境变量基本上能解决。
确实,一般情况下配置完oracle环境变量可以解决问题。但在非一般情况下就难说了。
0x00、问题来源
zabbix服务器迁移完,打开zabbix web,连接不上oracle,没有具体错误提示。
创建一个测试文件把zabbix连接oracle数据库的代码copy过来,然后通过浏览器访问该测试文件,可以看到错误信息了。如下:
Warning: oci_connect(): OCIEnvNlsCreate() failed. There is something