phpycho — 2012-10-30T04:07:43-04:00 — #1
I want to connect Oracle Db using oci_* functions.
I tried to enable the Oracle extension by uncommenting: extension=php_oci8.dll line from php.ini
and restarting Apache server. But that didn't work.
Looking at Apache Server Log file 'error.log' gave me the following errors:
"PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_oci8.dll' - The specified module could not be found.\r\
in Unknown on line 0"
But php_oci8.dll file is there is the mentioned dir.
Can anyone guide me where did i go wrong? or
How to enable Oracle extension in localhost (Windows)?
Thanks in advance for any help.
cpradio — 2012-10-30T07:30:23-04:00 — #2
I'd start at http://www.oracle-base.com/articles/misc/apache-php-install-on-windows.php
If those steps don't do it, let me know and I'll see if I can dig up any more resources.
phpycho — 2012-10-30T09:10:47-04:00 — #3
Thanks for your willingness to help but unfortunately that didn't work for me.
Actually i did the same thing previously. Not sure if we need to install some Oracle client kind of software in windows?
cpradio — 2012-10-30T09:22:36-04:00 — #4
Assuming your Oracle DB is located on a remote server (or not locally), it seems you need the Instant Client.
sand — 2012-12-01T04:54:05-05:00 — #5
I installed php , apache ,oracle and Instant Client Package in windows 7 as its provided in this link -- http://www.oracle.com/technetwork/ar...nt-084410.html .
its working fine in localhost .
m trying to connect to remote database and getting this error ( oci_connect(): ORA-12546: TNS permission denied ) help me .
logic_earth — 2012-12-01T07:07:19-05:00 — #6
To connect to any database server remotely, it must be configured to allow remote connections.