oracle10g + php5.2.11 error [OCIEnvNlsCreate() failed]

by ADMINPLAY posted Feb 24, 2010
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

Warning: ociplogon() [function.ociplogon]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that ORACLE_HOME is set and points to the right directory in /home/httpd/html/ora_test.php on line 5

 

1. apachectl set

vi /usr/local/apache/bin/apachectl

########################################################################################
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
LD_LIBRARY_PATH=/u01/app/oracle/product/10.2.0/db_1/lib:/lib:/usr/lib:${LD_LIBRARY_PATH}
TNS_ADMIN=/u01/app/oracle/product/10.2.0/db_1/network/admin
export ORACLE_HOME LD_LIBRARY_PATH TNS_ADMIN
########################################################################################

 

2. chmod 

# find $ORACLE_HOME \( -perm 750 -o -perm 640 \) -print|wc -l


# chmod -R o+rx $ORACLE_HOME


Articles

1 2 3