首頁  >  文章  >  後端開發  >  php 遠端連線oracle 報TNS:listener does not currently know of service

php 遠端連線oracle 報TNS:listener does not currently know of service

WBOY
WBOY原創
2016-09-05 08:59:541738瀏覽

  1. 我本地php連接遠端oracle 資料庫,我下載了oracle的客戶端instantclient-basic-nt-11.2.0.2.0,配置了環境變量,把開啟了php_oci8和php_oci8_11,重啟了電腦然後用連接,把開啟了php_oci8和php_oci8_11,重啟了電腦然後用連接,報了下面的錯誤

<code>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
</code>

回覆內容:

  1. 我本地php連接遠端oracle 資料庫,我下載了oracle的客戶端instantclient-basic-nt-11.2.0.2.0,配置了環境變量,把開啟了php_oci8和php_oci8_11,重啟了電腦然後用連接,把開啟了php_oci8和php_oci8_11,重啟了電腦然後用連接,報了下面的錯誤

<code>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
</code>
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn