📄 1750.html
字号:
background="images/back.gif" tppabs="http://www.linuxhero.com/docs/images/back.gif" border=0>
<TBODY>
<TR>
<TD vAlign=top width="80%">
<DIV align=center>
<FORM action="search.html" tppabs="http://www.linuxhero.com/docs/search.html" method=get>
</FORM>
<TABLE cellSpacing=0 cellPadding=0 width="95%"
border=0><TBODY>
<TR>
<TD background="images/bgi.gif" tppabs="http://www.linuxhero.com/docs/images/bgi.gif"
height=30></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=3 width="95%"
align=center border=0>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=3 width="100%"
border=0>
<TBODY>
<TR>
<TD vAlign=top>
<p><FONT class=normalfont><B><font color=blue>ORACLE8.1.7+TOMCAT3.2.1安装手册</font></B></FONT><BR><FONT class=smallfont color=#ff9900>2004-04-23 15:18 pm</FONT><BR><FONT class=normalfont>作者:申进国<br>来自:http://www.linuxforum.net<br>联系方式:无名<br><br>一、 环境所需软件:<br>
1、操作系统: RedHat Linux 6.2<br>
2、数据库: Oracle8.1.6<br>
3、Java运行环境: j2sdk-1_3_0_02-linux-rpm.bin<br>
4、TomCat: jakarta-tomcat-3.1.1.tar<br>
<br>
二、 安装前说明:<br>
在分区时给Oracle独立分一个区,并且要尽量大一点。现在环境参数设置的目录是/oracle,<br>
如有改动,请改动环境参数的设置。<br>
安装时以Oracle用户登入,如在安装过程中有涉及到权限的问题,请升级为root用户;如<br>
没有特殊说明的,按系统默认的配置进行安装。<br>
# chown oracle.dba /oracle<br>
<br>
三、 开始安装:<br>
1、 安装RedHat 6.2 ,以server方式安装。<br>
(1)、建一个dba组<br>
(2)、建一个oracle用户<br>
(3)、在/etc/profile文件中加入如下行:<br>
#Setup ORACLE environment<br>
ORACLE_HOME=/oracle/OraHome1<br>
export ORACLE_HOME<br>
ORACLE_SID=orcl<br>
export ORACLE_SID<br>
ORACLE_TERM=xterm<br>
export ORACLE_TERM<br>
ORACLE_OWNER=oracle8<br>
export ORACLE_OWNER<br>
TNS_ADMIN=/oracle/config/8.1.6<br>
export TNS_ADMIN<br>
CLASSPATH=$ORACLE_HOME/jdbc/lib/classes111.zip<br>
export CLASSPATH<br>
TOMCAT_HOME=/usr/local/tomcat<br>
export TOMCAT_HOME<br>
JAVA_HOME=/usr/java/jdk1.3.0_02<br>
export JAVA_HOME<br>
CLASSPATH=$CLASSPATH:/usr/java/jdk1.3.0_02/lib:/usr/java/jdk1.3.0_02/jre/lib<br>
export CLASSPATH<br>
<br>
#Setup up the search paths:<br>
PATH=$PATH:/usr/local:/bin:/sbin<br>
PATH=$PATH:/usr/bin:/usr/sbin:/usr/local/bin:$ORACLE_HOME/bin<br>
PATH=$PATH:/usr/java/jdk1.3.0_02:/usr/java/jdk1.3.0_02/bin:/usr/java/jdk1.3.0_02/jre/bin<br>
PATH=$PATH:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:.<br>
export PATH<br>
<br>
2、 安装JAVA环境:(以root用户安装)<br>
将文件j2sdk-1_3_0_02-linux-rpm.bin拷到目录/usr/local下运行 <br>
(1)、 ./j2sdk-1_3_0_02-linux-rpm.bin<br>
(2)、rpm -ivh j2sdk-1_3_0_02-linux-rpm <br>
3、 安装Oracle 8i R2 (8.1.6) (以Oracle用户<br>
(1)、将文件拷贝到/oracle目录下将解包<br>
# tar zxvf oracle8161_tar.gz<br>
# mkdir /oracle/database (作为数据库目录)<br>
(2)、运行X-windows,进入/oracle/Oracle8iR2目录,执行Oracle安装程序。 ./runInstaller<br>
(3)、这时可以看到JDK运行的图形化的欢迎界面,按照提示安装进程:<br>
<br>
Welcome:<br>
按 next<br>
<br>
File Locations:<br>
默认为/oracle/OraHome1, 按 next<br>
<br>
UNIX Group Name:<br>
默认为dba,按 next<br>
<br>
弹出"oracle universal installer"界面<br>
"please execute the /oracle/OraHome1/orainstRoot.sh script"<br>
<br>
Available Products:<br>
选 Oracel8i Enterprise Edition 8.1.6 ,按 next<br>
<br>
Installation Types:<br>
选 Custom ,建议将Oracle Intermedia 取消,有些技术资料介绍说这个软件运行不太稳定,<br>
其他的根据所需选择。<br>
<br>
Database Identification:<br>
Global Database Name: 输入oracle8<br>
SID:保留orcl<br>
按next<br>
<br>
Database File Location:<br>
/oracle/database (根据自己情况选择)<br>
<br>
打开一个新的控制台(字符窗口)<br>
升级为root权限,进入/oracle/OraHome1目录<br>
运行root.sh<br>
屏幕显示:<br>
Enter the full pathname of the local bin directory:[/usr/local/bin]: 回车,<br>
执行完毕,退出此界面,返回前一界面,按OK.<br>
<br>
Database Creation Progress 开始,逐步进行以下4个过程<br>
Creating and starting Oracle instance<br>
Copying database files<br>
Initializing database<br>
Database creation completed<br>
以上4个过程执行完成,弹出Oracle Database Configuration Assistant Alert 窗口,<br>
根据自己所需配置数据库。如数据库不能自动安装,请手动安装:<br>
# /oracle/OraHome1/bin/dbassist<br>
<br>
End of Installation ,按Exit退出OUI,这时,Oracle数据库已经安装成功。<br>
<br>
(4)、Oracle服务的启动与停止:<br>
以Oracle用户登入,进入/oracle/OraHome1目录<br>
svrmgrl<br>
SVRMGRL>connect internal<br>
SVRMGRL>startup (启动服务)<br>
SVRMGRL>shutdown IMMEDIATE (停止服务)<br>
SVRMGRL>quit<br>
<br>
启动监听服务:<br>
lsnrctl<br>
LSNRCTL>start (启动服务)<br>
LSNRCTL>stop (停止服务)<br>
LSNRCTL>exit<br>
<br>
4.安装TOMCAT (3.1.1) (以root用户安装)<br>
(1)、将光盘上的jakarta-tomcat-3.1.1.tar 拷贝到 /usr/local目录并解包。<br>
将jakarta-tomcat 改名为tomcat<br>
<br>
(2)、Tomcat 和Apache连接<br>
修改 /usr/local/tomcat/conf/tomcat.conf<br>
将 Loadmodule Jserv_Module Libexec/mod_jserv.so 改为:<br>
Loadmodule jserv_Module /etc/httpd/modules<br>
<br>
将光盘上的mod_jserv.so 拷贝到 /etc/httpd/modules目录下<br>
# cp /usr/local/tomcat/conf/tomcat.conf /etc/httpd/conf/.<br>
# vi /etc/httpd/conf/httpd.conf<br>
加入<br>
Include /etc/httpd/conf/tomcat.conf<br>
<br>
(4)、退出并重新登入<br>
运行tomcat服务:<br>
/usr/local/tomcat/bin/startup.sh (启动服务)<br>
/usr/local/tomcat/bin/shutdown.sh (停止服务)<br>
# lynx http://localhost/examples<br>
如果显示了jsp、servlet目录,说明Apache和Tomcat已经连接成功。<br>
<br>
结束<br>
</FONT><br>
</TD>
</TR>
<TR>
<TD colSpan=2><FONT
class=middlefont></FONT><BR>
<FONT
class=normalfont>全文结束</FONT> </TD>
</TR>
<TR>
<TD background="images/dot.gif" tppabs="http://www.linuxhero.com/docs/images/dot.gif" colSpan=2
height=10></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV></TD>
<TD vAlign=top width="20%"
background="images/line.gif" tppabs="http://www.linuxhero.com/docs/images/line.gif" rowSpan=2>
<DIV align=center>
<table class=tableoutline cellspacing=1 cellpadding=4
width="100%" align=center border=0>
<tr class=firstalt>
<td noWrap background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif" colspan=2 height=21>
<font class=normalfont><b>所有分类</b></font></td>
</tr>
<tr class=secondalt> <td noWrap width=27%> <font class=normalfont>1:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type1.html" tppabs="http://www.linuxhero.com/docs/type1.html">非技术类</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>2:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type2.html" tppabs="http://www.linuxhero.com/docs/type2.html">基础知识</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>3:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type3.html" tppabs="http://www.linuxhero.com/docs/type3.html">指令大全</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>4:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type4.html" tppabs="http://www.linuxhero.com/docs/type4.html">shell</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>5:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type5.html" tppabs="http://www.linuxhero.com/docs/type5.html">安装启动</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>6:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type6.html" tppabs="http://www.linuxhero.com/docs/type6.html">xwindow</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>7:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type7.html" tppabs="http://www.linuxhero.com/docs/type7.html">kde</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>8:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type8.html" tppabs="http://www.linuxhero.com/docs/type8.html">gnome</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>9:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type9.html" tppabs="http://www.linuxhero.com/docs/type9.html">输入法类</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>10:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type10.html" tppabs="http://www.linuxhero.com/docs/type10.html">美化汉化</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>11:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type11.html" tppabs="http://www.linuxhero.com/docs/type11.html">网络配置</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>12:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type12.html" tppabs="http://www.linuxhero.com/docs/type12.html">存储备份</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>13:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type13.html" tppabs="http://www.linuxhero.com/docs/type13.html">杂项工具</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>14:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type14.html" tppabs="http://www.linuxhero.com/docs/type14.html">编程技术</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>15:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type15.html" tppabs="http://www.linuxhero.com/docs/type15.html">网络安全</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>16:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type16.html" tppabs="http://www.linuxhero.com/docs/type16.html">内核技术</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>17:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type17.html" tppabs="http://www.linuxhero.com/docs/type17.html">速度优化</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>18:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type18.html" tppabs="http://www.linuxhero.com/docs/type18.html">apache</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>19:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type19.html" tppabs="http://www.linuxhero.com/docs/type19.html">email</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>20:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type20.html" tppabs="http://www.linuxhero.com/docs/type20.html">ftp服务</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>21:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type21.html" tppabs="http://www.linuxhero.com/docs/type21.html">cvs服务</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>22:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type22.html" tppabs="http://www.linuxhero.com/docs/type22.html">代理服务</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>23:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type23.html" tppabs="http://www.linuxhero.com/docs/type23.html">samba</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>24:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type24.html" tppabs="http://www.linuxhero.com/docs/type24.html">域名服务</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>25:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type25.html" tppabs="http://www.linuxhero.com/docs/type25.html">网络过滤</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>26:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type26.html" tppabs="http://www.linuxhero.com/docs/type26.html">其他服务</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>27:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type27.html" tppabs="http://www.linuxhero.com/docs/type27.html">nfs</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>28:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type28.html" tppabs="http://www.linuxhero.com/docs/type28.html">oracle</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>29:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type29.html" tppabs="http://www.linuxhero.com/docs/type29.html">dhcp</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>30:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type30.html" tppabs="http://www.linuxhero.com/docs/type30.html">mysql</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>31:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type31.html" tppabs="http://www.linuxhero.com/docs/type31.html">php</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>32:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type32.html" tppabs="http://www.linuxhero.com/docs/type32.html">ldap</a></font></td> </tr> </table></td></tr> </table>
</DIV></TD></TR>
<TR vAlign=top>
<TD width="80%">
<DIV align=center><BR>
</DIV>
</TD></TR></TBODY></TABLE></TD></TR>
</TABLE></TD></TR>
</TABLE>
<TABLE cellSpacing=0 cellPadding=4 width="100%" bgColor=#eeeeee
border=0><TBODY>
<TR>
<TD width="50%">
<P><FONT class=middlefont>版权所有 © 2004 <A
href="mailto:bjchenxu@sina.com">linux知识宝库</A><BR>
违者必究. </FONT></P>
</TD>
<TD width="50%">
<DIV align=right><FONT class=middlefont>Powered by: <A
href="mailto:bjchenxu@sina.com">Linux知识宝库</A> Version 0.9.0 </FONT></DIV>
</TD></TR></TBODY></TABLE>
<CENTER></CENTER></TD></TR>
</TABLE></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -