Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/06/2003, 17:18
rcl
 
Fecha de Ingreso: junio-2003
Mensajes: 2
Antigüedad: 20 años, 9 meses
Puntos: 0
Oracle: Connection Failed



No se puede conectar a la Base Oracle.
Tengo la siguiente config:
*

Este es el codigo que utilizo.

<html>

<head>
<title></title>
</head>

<body>

<?php
PutEnv("ORACLE_SID=ORCL");
putenv("ORACLE_HOME=c:\orant");
putenv("TNS_ADMIN=c:\orant\network\admin");

if ($conn=Ora_Logon("SYSTEM@SERVER01","MANAGER")) {
echo "<B>SUCCESS ! Connected to database<B>\n";

} else {
echo "<B>Failed Could not connect to database<B>\n";
echo ora_error();
}
Ora_Logoff($conn);

?>


</body>

</html>

-----------------------------

Alguien me puede ayudar?