Weird anomaly! ADODB connection to Oracle error but normal PL/SQL connection

Source: Internet
Author: User
Weird mistake!! ADODB connection to Oracle error but normal PL/SQL connection
Warning: Ocilogon ()
\adodb\drivers\adodb-oci8.inc.phpOn line 244

172.17.66.11:1521:ora-12505:tns: The listener currently does not recognize the SID given in the connection descriptor

The Tnsnames.ora is configured as follows

Kfdbrac =
(DESCRIPTION =
(Address_list =
(ADDRESS = (PROTOCOL = TCP) (HOST = 172.17.66.11) (PORT = 1521))
)
(Connect_data =
(service_name = Kfdbrac)
)
)

The Listener.ora is configured 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 (' 172.17.66.11:1521 ', ' tyyy ', ' tyyy ', ' Kfdbrac ');

A data cluster was made on the 172.17.66.11.



------Solution--------------------
Kfdbrac
------Solution--------------------
Then you should try OCR instead.
I'm not connected to Oracle in ADODB + oci8 mode.

Values have been used in PDO + OCR mode
------Solution--------------------
Ado+oracle 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.