Discussions
Categories
- 196.8K All Categories
- 2.2K Data
- 239 Big Data Appliance
- 1.9K Data Science
- 450.3K Databases
- 221.7K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 550 MySQL Community Space
- 478 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 544 SQLcl
- 4K SQL Developer Data Modeler
- 187K SQL & PL/SQL
- 21.3K SQL Developer
- 295.8K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.5K Development Tools
- 107 DevOps
- 3.1K QA/Testing
- 646K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 155 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 18 Java Essentials
- 160 Java 8 Questions
- 86K Java Programming
- 80 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 204 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 439 LiveLabs
- 38 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 171 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 232 Portuguese
Installing oic 8

Hi
I wonder if you can advise what I am doing wrong ? Do I need to install oic8 via pecl ?
All hellp greatly appreciated.
Linux 6
I have installed apache 2.2.31 and PHP 5.6.17, compiling from source. Apaceh is executing php scripts fine.
Configuration used for compiling php:
./configure --prefix=/opt/php56 --with-mysql --with-zlib --with-apxs2=/opt/apache22/bin/apxs --with-oci8=shared,/opt/oracle/app/product/12.1.0/client_1
I get this error when i try to use oci connect
Fatal error: Call to undefined function oci_connect() in /opt/apache22/htdocs/db_connect.php on line 17
Line 17:
$conn = oci_connect('hr', 'hrtest', 'xe_test_db');
extract of php.ini
extension_dir = "/opt/php56/lib/php/extensions/no-debug-non-zts-20131226"
extension = "oci8.so"
rwxr-xr-x. 1 root root 490401 Jan 9 18:32 /opt/php56/lib/php/extensions/no-debug-non-zts-20131226/oci8.so
nm /opt/php56/lib/php/extensions/no-debug-non-zts-20131226/oci8.so | grep connect
00000000002232a0 d arginfo_oci_connect
0000000000223360 d arginfo_oci_new_connect
0000000000223420 d arginfo_oci_pconnect
0000000000226438 b le_connection
0000000000226420 b le_pconnection
000000000000a0f0 t php_oci_connection_close
0000000000008ed0 t php_oci_connection_commit
0000000000009f70 t php_oci_connection_descriptors_free
000000000000a320 t php_oci_connection_list_dtor
00000000000094d0 t php_oci_connection_ping
0000000000009fa0 t php_oci_connection_release
0000000000009090 t php_oci_connection_rollback
000000000000d870 t php_oci_do_connect
000000000000b2e0 t php_oci_do_connect_ex
0000000000007e10 t php_oci_dtrace_check_connection
000000000000a2f0 t php_oci_pconnection_list_dtor
000000000000a340 t php_oci_pconnection_list_np_dtor
000000000001b100 t zif_oci_connect
000000000001b120 t zif_oci_new_connect
000000000001b0e0 t zif_oci_pconnect
Answers
-
Did you set LD_LIBRARY_PATH in the appropriate Apache configuration
file? See "Setting the Oracle Environment for PHP on Linux" on p77 of