2) 然后检查状态,dbstat 是个很好的脚本,在SunOS/HP-UX下应该也可以使用。$ perl -V
$ ln -s $ORACLE_HOME/jdk $ORACLE_HOME/Apache/jdk
$ cd $ORACLE_HOME/Apache/Apache/bin
![]()
$ vi 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
----->
![]()
$ vi startJServ.sh
<-----
$...{APACHE_HOME}/bin/apachectl startssl
----->
![]()
$ dbstart
$ lsnrctl start
$ agentctl start
$ startJServ.sh
配置好 Linux 的 iptables 后,在另一台机器上就可以访问它的Apache了。$ tnsping 192.168.100.60
$ dbstat
$ lsnrctl status
$ agentctl status
![]()
$ apachectl status
$ apachectl fullstatus
http://192.168.100.60:7777/
http://192.168.100.60:7778/
https://192.168.100.60:4443/
在重装 Oracle 的时候,如果你忘了注释掉 oraweb/orassl/oraSSL 三项,那么装好后的 Apache 端口会跟上面的不同,但很容易就调整回正常。
$ vi $ORACLE_HOME/Apache/Apache/conf/httpd.conf {在vi用/444和/777查找}
<-----
Port 7777
Listen 7777
......
<IfModule mod_ssl.c>
Port 7778
Listen 7778
Listen 4443
</IfModule>
......
<IfModule mod_oprocmgr.c>
ProcNode rebeca 7777
<IfModule mod_ssl.c>
ProcNode rebeca 7778
</IfModule>
......
##
## SSL Virtual Host Context
##
<VirtualHost _default_:4443>
......
Port 4443
----->
$ vi $ORACLE_HOME/Apache/Apache/bin/apachectl {在vi用/:77查找}
<----
STATUSURL="http://localhost:7778/server-status"
----->
$ apachectl restart
$ apachectl fullstatus
3) 如果你想让Oracle在开机和关机的时候以服务方式运行,请参考"脚本精选"。如果手工启动和关闭已经足够,那么现在就在WinXp上装个客户端访问ora9i。
例如:ORACLE_SID=ora9i, ORACLE_NAME=turbo, IP=192.168.100.60。那么,配置 Net Config 时,填写 turbo 和 192.168.100.60,在 oemapp cosole访问时,可以使用本地 tnsname 的 TURBO,或者写主机名(填IP或域名)以及SID,然后网络服务名就会自动变成 ORA9I_192.168.100.60。
--------------------
参考文献:
好几年前就使用 Oracle 8i,安装过程很复杂,不看文档根本做不下去。现在Oracle 9i 比较好一点,问题少一些,但别人的经验总是有帮助的。在我动手安装和整理文档的时候,主要是参考以下内容,随后进行了比较大的补充。
1) http://www.chinaunix.net/jh/19/365977.html
[原创] RedHatLinux AS3 U2 安装 oracle9204 成功 笔录
2) http://www.linuxmine.com/3494.html
在RedHat EL AS 3上安装Oracle9.2.0
3) http://www.cublog.cn/opera/showart.php?blogid=10337&id=80972
Oracle for AS3 安装教程
4) http://oracle.chinaitlab.com/install/365186.html
在DELL pe800下安装linux AS3.0+ora 9i 成功经验
5) http://www.gbunix.com/htmldata/2004_08/2/5/article_643_1.html
在Redhat9上安装Oracle 9.2
6) http://www.chinaunix.net/jh/19/650937.html
[原创] 红旗高级服务器Linux 4.1 最新安装Oracle9204 改记
注:本文已经原作者wwashington授权IT168刊登,感谢wwashington对IT168鼎力支持。
原文链接:http://bbs.boletips.com/blbbs/viewthread.php?tid=176&extra=page=2