this is working fine on cli and on a non pooled connection. when i try the following on cli it works
sqlplus CCP/"***"@DECCP1ST_POOLED.test.vis
but when i try to do this in php it throws an error
$c = oci_connect('CCP', "***", 'domain.com:33001/DECCP1ST_POOLED.test.vis');
print_r($c);
output is
Warning: oci_connect(): ORA-12514: TNS:listener does not currently know of service requested in connect descriptor in
in my tnsnames.ora i have
DECCP1ST_POOLED.test.vis =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = domain.com)(PORT = 33001))
(CONNECT_DATA =
(SERVER = POOLED)
(SERVICE_NAME = DECCP1ST.test.vis)
)
)
I have followed this pdf. i have set oci8.connection_class = SHARED
ddomain.de.