View Full Version : glassfish + oracle database is not working

11-29-2011, 10:23 AM
Hi, I cannot connect to a oracle database using TNS names or PDO, I tried both,
the first give me the error "The Network Adapter could not establish the connection[ocilogon]", I can connect to the database without trouble, using other programs, I have the oracle client installed and I have the oracle driver in my lib folder. :confused:

the second give me the error Fatal Error: 'jdbc/coocafe' is an unknown PDO data source. I tried everything 'java:jdbc/coocafe', 'java:comp/env/jdbc/coocafe' and is not working, anyone knows how to use PDO in glassfish??
ahh, I have configured the JDBC to oracle and I used the 'ping' button in glassfish and its working, so its a problem with the name I am using to call the JDBC resource, anyone knows how to use it in glassfish?