본문 바로가기

PHP관련

OCIEnvNlsCreate() failed 처리안

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

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

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

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

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