Quercus using OCI8

94 views
Skip to first unread message

sotram

unread,
Oct 16, 2014, 12:18:36 PM10/16/14
to caucho-...@googlegroups.com
Hello ,
I am new to using Quercus and wanted to use quercus with php application that connects to oracle database using
oci8 mode.
 
os linux redhat 6.6
tomcat 8.0.14
quercus 4.0.41
I had odbc jar in /WEB-INF/lib/ojdbc6.jar
BDRCT is good declared in tnsnames.ora in  
/usr/lib/oracle/11.2/client
<?php
//phpinfo();
include('/opt/server/apache-tomcat-8.0.14/webapps/blog/preprd/volume2/includes/conf.php');
$db_name ='BDRCT';
echo "$db_login, $db_passwd,$db_name ";
$conn =oci_connect($db_login, $db_passwd, $db_name );
//$conn = oci_connect($db_login, $db_passwd, $db_name);
if (!$conn) {
    $e = oci_error();
    trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
}
else
{
echo "connecté base $db_name  $db_login $db_passwd";
}
?>
 
result :
Warning: A link to the server could not be established. java.sql.SQLRecoverableException: Erreur d'E/S: The Network Adapter could not establish the connection [oci_connect] /opt/server/apache-tomcat-8.0.14/webapps/blog/test.php:11: Fatal Error: [trigger_error]

sotram

unread,
Aug 13, 2015, 10:10:14 AM8/13/15
to Quercus
Hello,

i have the same problem as you , i don't know how to connect ???? , did you found the solution ?
Regards.
Reply all
Reply to author
Forward
0 new messages