当前位置:Gxlcms > PHP教程 > php远程连接oracle报TNS:listenerdoesnotcurrentlyknowofservice

php远程连接oracle报TNS:listenerdoesnotcurrentlyknowofservice

时间:2021-07-01 10:21:17 帮助过:35人阅读

  1. 我本地php连接远程oracle 数据库,我下载了 oracle的客户端instantclient-basic-nt-11.2.0.2.0,配置了环境变量,把开启了php_oci8和 php_oci8_11,重启了电脑然后用连接,报了下面的错误

Warning: ocilogon() [function.ocilogon]: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor in D:\WWW\php-interface\sqlserver.php on line 53
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor

回复内容:

  1. 我本地php连接远程oracle 数据库,我下载了 oracle的客户端instantclient-basic-nt-11.2.0.2.0,配置了环境变量,把开启了php_oci8和 php_oci8_11,重启了电脑然后用连接,报了下面的错误

Warning: ocilogon() [function.ocilogon]: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor in D:\WWW\php-interface\sqlserver.php on line 53
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor

人气教程排行