Jump to content

PHP and Oracle client


Recommended Posts

Hi,

I have installed oracle client on my linux machine. When i try to run the following commad

 

$c = OCILogon('user', 'password', 'database');

 

it display the following error.

 

Fatal error: Call to undefined function: ocilogon() in /var/www/html/db.php on line 2

 

I am not able to make out what is worng. Please help.

 

Regards,

Shashidhar

Link to comment
Share on other sites

I found the solution to my problem. In ./configure i had --disable-rpath, i just had to removed it.

And reinstalled the php with --with-oci8-client and --enable-sigchild. Now my php is able to run oci commands.

 

But a new problem!!!!! :-(

 

how do i configure tnsnames.ora to my php? I have tried the steps given in [a href=\"http://www.oracle.com/technology/pub/notes/technote_php_instant.html\" target=\"_blank\"]http://www.oracle.com/technology/pub/notes...hp_instant.html[/a]

 

but i get the following error.

 

Warning: ocilogon(): _oci_open_server: Error while trying to retrieve text for error ORA-12154 in /var/www/html/db.php on line 2

 

anyone knows what should be done now?

 

Regards,

Shashidhar

Link to comment
Share on other sites

  • 1 month later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.