Oracle and PHP [message #194797] |
Mon, 25 September 2006 06:30 |
bagyagl
Messages: 2 Registered: September 2006 Location: bangalore
|
Junior Member |
|
|
I am the beginner for php
i am trying to get the connection with oracle
i have written the fllg code
<?php
if ($c=OCILogon("scott@finance", "tiger")) {
echo "Successfully connected to Oracle.\n";
OCILogoff($c);
} else {
// $err = OCIError();
echo "Oracle Connect Error " ;//. $err[text];
}
?>
but in the browser i'm getting error like
Warning: ocilogon() [function.ocilogon]: _oci_open_server: ORA-12560: TNS:protocol adapter error in c:\wamp\www\exp php\orac2.php on line 2
Oracle Connect Error
please helpme
|
|
|