Skip to Main Content

Integration

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!

11g Webtier not recognizing LD_LIBRARY_PATH

geeta - oracleMay 18 2011
One of my customer has tried configuring 11g Webtier with php as per the following documentation

http://www.oracle.com/technetwork/topics/php/php-ohs-092324.html

After the configuration when trying to test using the sample php application the following errors are seen

[2011-04-05T15:31:31.1289-05:00] [OHS] [INCIDENT_ERROR:32] [OHS-9999] [mod_php5.c] [host_id: devmtier02.tinker.afmc.ds.af.mil] [host_addr: 10.52.4.102] [tid: 1358530880] [user: root] [ecid: 004c372viF3EkJO5qjl3iY0004hD00000L] [rid: 0] [VirtualHost: devmtier02.tinker.afmc.ds.af.mil:0] sapi_apache2.c:326: PHP Warning: oci_connect(): ORA-24315: illegal attribute type in /u01/app/oracle/product/weblogic/Oracle_WT1/instances/instance1/config/OHS/ohs1/htdocs/demo/dbtest.php on line 3

The problem is due to the webtier not recognizing the LD_LIBRARY_PATH which has been set.

export ORACLE_HOME=/u01/app/oracle/product/weblogic/Oracle_WT1
export ORACLE_INSTANCE=/u01/app/oracle/product/weblogic/Oracle_WT1/instances/instance1
export CONFIG_FILE_PATH=$ORACLE_INSTANCE/config/OHS/ohs1
export LD_LIBRARY_PATH=/u01/app/oracle/product/instantclient_11_2:$ORACLE_HOME/lib:$ORACLE_HOME/ohs/lib:$LD_LIBRARY_PATH

We have tried a lot of things like unsetting the LD_LIBRARY_PATH and resetting it again but it did not help. The problem is with the LD_LIBRARY_PATH because if the libraries of instant client are copied inside the ohs/lib then everything works out fine. There are no other oracle products installed

The output of env variable shows that the LD_LIBRARY_PATH has been set properly.

LD_LIBRARY_PATH=/u01/app/oracle/product/instantclient_11_2:/u01/app/oracle/product/weblogic/Oracle_WT1/lib:/u01/app/oracle/product/weblogic/Oracle_WT1/ohs/lib:/u01/app/oracle/product/weblogic/Oracle_WT1/lib

Tried setting the LD_LIBRARY_PATH in bash_profile file also but it did not help.

Any insights on the issue will be highly appreciated.

Thanks
Geeta
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 15 2011
Added on May 18 2011
0 comments
424 views