简体   繁体   中英

OCI_CONNECT, Connecting to remote machine's TNS

Apache web server is running in my machine (localhost). But TNS entry is located in another machine within same network,

another machine ip is - 192.168.11.122.

I need to connect remote machine's TNS as follows. but givin an error

Fatal error: ORA-12154: TNS:could not resolve the connect identifier specified

oci_connect("ABS", "b2a8a621", "//192.168.11.122 / 10.20.42.11:1521/AVABS");

How do I do that?

Is 10.20.42.11 the IP address of the Oracle Database Server? If so, try:

oci_connect("ABS", "b2a8a621", "//10.20.42.11:1521/AVABS");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM