Skip to Main Content

Containers, Cloud Native & Kubernetes

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How can I get the InstantClient configured for a PHP docker image?

Nathan BennettNov 20 2023 — edited Nov 20 2023

I have a pretty basic PHP docker image and I'm trying to install the Oracle InstantClient - I have a copy of the instantclient_11_2.zip unzipped in the container and have created a lib directory and symlinked the libclntsh.so.11.1 file to libclntsh.so . ORACLE_HOME is also set up to & added to the PATH. Everything seems to be working up untill…

When trying to install the oci8 module via pecl :

pecl install oci8 --with-oci8=instantclient,/opt/oracle/instantclient_11_2

I get the following error:

/tmp/pear/temp/oci8/php_oci8_int.h:56:10: fatal error: oci.h: No such file or directory
56 | #include <oci.h>
| ^~~~~~~

From what I've read, there's also an ‘InstantClient SDK’ which may be needed in addition to the instantclient.zip, but I don't see anywhere to download it. The links on the Oracle InstantClient Downloads page don't seem SDK related….

Thanks for any help!

This post has been answered by Nathan Bennett on Nov 21 2023
Jump to Answer

Comments

InoL Apr 29 2024

How doc gen treats nulls values?

You have to be more specific. Are your referring to the pre-built Document Generator function?

If so:

When my query return null in some columns

What is the JSON that is generated?

You should always include the element in the JSON, with an empty value. Don't leave it out.

Francois Robert-Oracle Jan 8 2025 — edited on Jan 8 2025

Since September 2024, when a tag has no corresponding value in the JSON data or the value is null, the tag is replaced by an empty string.

See the September Release Notes

1 - 2

Post Details

Added on Nov 20 2023
4 comments
1,094 views