Redhat下Oracle9i安装全攻略-常见错误
4.1) 启动 Apache 时候报错,环境变量 PERL5LIB 问题。
按目前 Google 所找到资料去安装 Oracle 9i,一个必然发生的问题就是会看到 httpd could not be started 错误,把 startJServ.sh 和 apachectl的代码逐行在系统运行(设置变量要加 export 和空格),就会看到里面的某些库找不到,经过研究,通过设置 PERL5LIB 可以解决这个问题。
为了保障系统和脚本的正常运行,在 .bash_profile 和 apachectl 都修改了,大家可以利用 perl -V 这个命令来检查运行环境。同时,考虑到 perl5.005 和 5.80 的兼容性,在 PATH 里把 Oracle 自带的 perl 放前面。
设置好 PERL5LIB 后,系统依然提示错误,查了一下资料,要设置 DISPLAY。
按目前 Google 所找到资料去安装 Oracle 9i,一个必然发生的问题就是会看到 httpd could not be started 错误,把 startJServ.sh 和 apachectl的代码逐行在系统运行(设置变量要加 export 和空格),就会看到里面的某些库找不到,经过研究,通过设置 PERL5LIB 可以解决这个问题。
为了保障系统和脚本的正常运行,在 .bash_profile 和 apachectl 都修改了,大家可以利用 perl -V 这个命令来检查运行环境。同时,考虑到 perl5.005 和 5.80 的兼容性,在 PATH 里把 Oracle 自带的 perl 放前面。
4.2) 启动 Apache 时候报错,环境变量 DISPLAY 问题。vi ~/.bash_profile
<-----
export PATH=$ORACLE_HOME/jdk/bin:$ORACLE_HOME/Apache/perl/bin:$PATH
export PERL5LIB=$ORACLE_HOME/Apache/perl/lib/5.00503:$ORACLE_HOME/Apache/perl/lib/site_perl/5.005/i686-linux
----->
![]()
vi $ORACLE_HOME/Apache/Apache/bin/apachectl
<-----
PERL5LIB=/uxdb/ora9i/product/9.2/Apache/perl/lib/5.00503:/uxdb/ora9i/product/9.2/Apache/perl/lib/site_perl/5.005/i686-linux; export PERL5LIB
----->
![]()
#----------------------------
设置好 PERL5LIB 后,系统依然提示错误,查了一下资料,要设置 DISPLAY。
http://www.cublog.cn/u/15347/?u=http://www.cublog.cn/u/15347/showart.php?id=89853
xfly.t的一点个人体会 --> oracle 9.2.0.4安装问答
![]()
Q: http server start failed
oracle# apachectl start
OR
oracle# ./startJServ.sh
oracle apachectl start: httpd could not be started
![]()
A: goto $...{ORACLE_HOME}/Apache/Apache/logs and look at the log files there to see
the exact error message and cause of not starting. If error message is
![]()
[Tue Oct 22 23:09:38 2002] [crit] (2)No such file or directory: Apache JServ enc
ountered a fatal error; check your ApJServLogFile for details if none are presen
t in this file. Exiting.
![]()
then
![]()
1. Set DISPLAY environment variable. e.g. From command line execute command:
$ export DISPLAY=IP address:0.0
2. Start the HTTP Server. e.g. apachectl start.
![]()
#------------------------------------
0
相关文章
