在/etc/profile.d/簡歷oracle.sh
內容如下在NLS_LANG設定編碼
<span>1</span> ORACLE_HOME=/usr/lib/oracle/<span>12.1</span>/<span>client64 </span><span>2</span> C_INCLUDE_PATH=/usr/include/oracle/<span>12.1</span>/<span>client64 </span><span>3</span> LD_LIBRARY_PATH=$ORACLE_HOME/<span>lib </span><span>4</span><span>#remember this is the client NLS_LANG not the server one </span><span>5</span> NLS_LANG=<span>FRENCH_FRANCE.UTF8 </span><span>6</span> export ORACLE_HOME LD_LIBRARY_PATH NLS_LANG
然後修改/etc/init.d/php-fpm
在頭部增加
等。 sysconfig/php-fpm ]; then. /etc/sysconfig/php-fpm
fi
then
exit 0
-fpm"
pidfile=${PIDFILE-/var/run/php-fpm/php-fpm.pid}
lockfile=${LOCKFILE-/var/lock/subsys/php-fpm}
. /etc/profile.d/oracle.<span>sh<br></span>
然後重新啟動php即可
以上就介紹了php pdo oracle中文亂碼,包含了ORACLE,php方面的內容,希望對PHP教學有興趣的朋友有幫助。