|
|
|
| [일반] oracle10g + php5.1.2 error [OCIEnvNlsCreate() failed] |
|
| 호석 님께서 쓴 글입니다 - 211.♡.74.31 |
읽음:7900 |
|
|
oracle10g + php5.1.2 error [OCIEnvNlsCreate() failed]
2006.10.20 09:39
http://tong.nate.com/marilith/27267031
Warning: ocilogon() [function.ocilogon]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that ORACLE_HOME is set and points to the right directory in **** on line 523
1. 환경 변수 설정 (/etc/bashrc, /usr/local/apache/bin/apachectl)
export ORACLE_HOME=/data/oracle/product/10.2.0/db_1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:${LD_LIBRARY_PATH}
export TNS_ADMIN=/data/oracle/product/10.2.0/db_1/network/admin
2. 파일 및 디렉토리에 대한 퍼미션 설정
chmod 755 /opt/oracle
chmod 755 /opt/oracle/product/102/bin
chmod 755 /opt/oracle/product/102/lib
chmod 644 /opt/oracle/product/102/lib/*.*
chmod 751 /opt/oracle/product/102/rdbms/log
chmod 751 /opt/oracle/product/102/rdbms/
chmod 751 /opt/oracle/product/102/sqlplus/
chmod 644 /opt/oracle/product/102/sqlplus/*
chmod 6751 /opt/oracle/product/102/bin/oracle <---- 중요
3. apache 유저를 oinstall, dba group에 추가 시켜준다.
php에서 오라클 접속이 안되서 해번 것들. 3번이 큰 이유인거 같다. 어떻든 지금은 해결.
|
|
|

|
|
|