Wednesday, 21 August 2013

Problems with oci_connect ORA-12541: TNS:no listener

Problems with oci_connect ORA-12541: TNS:no listener

Yo guys. I have the following snippet:
$conn = oci_connect('user', 'pass', '(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=TCP)
(HOST=myhost.net)(PORT=1521)
)
)
(CONNECT_DATA=
(SERVER = DEDICATED)
(SERVICE_NAME = MYSERVICE)
)
)');
That is giving me the following error: oci_connect: ORA-12541: TNS:no
listener
That's the first time I try to connect to a oracle database. What am I
doing wrong? I'm on Windows.

No comments:

Post a Comment