Weird exception! An error occurred while connecting to oracle in adodb, But PL/SQL can be used for normal connection-php Tutorial

Source: Internet
Author: User
Weird error !! An error occurred while connecting to oracle in adodb but PLSQl can be normally connected & lt; B & gt; Warning & lt; B & gt;: ocilogon () & nbsp; adodbdriversadodb-oci8.inc.php & lt; B & gt; online & lt; B & gt; 244 & lt; B & gt; & lt; br & gt; 172.17.6 strange error !! An error occurred while connecting adodb to oracle. However, PL/SQL can be used for normal connection.
Warning: Ocilogon ()
\ Adodb \ drivers \ adodb-oci8.inc.phpOn line 244

172.17.66.11: 1521: ORA-12505: TNS: the listener cannot currently recognize the SID given in the connection descriptor

The configuration of tnsnames. ora is as follows:

KFDBRAC =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = 172.17.66.11) (PORT = 1521 ))
)
(CONNECT_DATA =
(SERVICE_NAME = kfdbrac)
)
)

The listener. ora configuration is as follows:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1 ))
(ADDRESS = (PROTOCOL = TCP) (HOST = admin-PC) (PORT = 1521 ))
)
)
Self: $ conn = & ADONewConnection ("oci8 ");
Self: $ conn-> Connect ('192. 17.66.11: 100', 'tyyy', 'tyyy', 'fdbrac ');

A data cluster is created on 172.17.66.11.



------ Solution --------------------
Kfdbrac
------ Solution --------------------
Try ocr instead.
I have not connected to oracle in the adodb + oci8 mode

The value has been in the PDO + ocr mode.
------ Solution --------------------
Ado + oracle is high.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.