📄 1748.html
字号:
border=0></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=10 cellPadding=0 width="100%" bgColor=#ffffff
border=0>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
<TR>
<TD vAlign=top align=middle width="60%">
<TABLE cellSpacing=0 cellPadding=0 width="100%"
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>在RedHat 7.0下Oracle 8.1.6 的安装实例</font></B></FONT><BR><FONT class=smallfont color=#ff9900>2004-04-23 15:18 pm</FONT><BR><FONT class=normalfont>作者:王海涛Carlwang<br>来自:http://www.linuxforum.net<br>联系方式:无名<br><br>1. 本文目的<br>
在RedHat 7.0下安装Oracle 8I release 2企业版本数据库服务器<br>
2. 安装前的软件准备<br>
RedHat7.0安装光盘2张<br>
Oracle8161_tar.gz下载地址:<br>
http://technet.oracle.com/software/products/oracle8i/software_index.htm<br>
glibc2.1版本(GNU C Library)下载地址:<br>
http://ftp.valinux.com/pub/support/hjl/glibc/sdk/2.1/i386-glibc-2.1-linux.tar.gz<br>
3. 我使用的机器:PIII733 with 128M RAM.Oracle推荐使用最少128MB内存,最好256MB 以上。<br>
4. 开始安装<br>
A. 硬盘分区<br>
1. Oralcel建议SWAP交换分区为400M或2倍于当前使用的系统物理内存,当然越大越好。<br>
2. 分区时划定两个安装点,/u01(用于安装ORALCE软件)和/u02(用于存放数据库数据),/u01分区的大小,<br>
典型安装 750MB<br>
最小安装650MB<br>
自定义安装 1000MB<br>
这两个安装点可以在安装时划定或完成系统安装后在"/"目录或别的目录下建立<br>
B.安装必须具备:(安装RedHat7.0时选择完全安装)<br>
1.X Windows<br>
2.Development packages(c,gcc等)<br>
C.解压缩oracle8161_tar.gz,以root帐号登录,执行:<br>
[root@rh70 /root]cd /usr/src<br>
[root@rh70 src]tar zxvf oracle8161_tar.gz <br>
在/usr/src/目录下生成一Oralce8iR2目录,内含解包后的文件<br>
D.安装glibc 2.1包<br>
RedHat7.0安装的是glibc2.2。Oracle 8I不能使用glibc 2.2进行编译,而需要glibc 2.1的SDK。<br>
[root@rh70 /root]cd /<br>
[root@rh70 /]tar zxvf /usr/src/i386-glibc-2.1-linux.tar.gz<br>
隐藏/usr/bin 目录下的gcc,cc,ld,避免被Oracle installer使用<br>
[root@rh70 /]cd /usr/bin<br>
[root@rh70 bin]mkdir saved<br>
[root@rh70 bin]mv gcc cc ld saved<br>
[root@rh70 bin]ln -s /usr/i386-glibc-2.1-linux/bin/i386-glibc21-linux-gcc gcc<br>
[root@rh70 bin]ln -s gcc cc<br>
[root@rh70 bin]ln -s /usr/i386-glibc-2.1-linux/bin/i386-glibc21-linux-ld ld <br>
隐藏/usr/lib目录下的libc.so,libdl.so,libm.so和libpthread.so文件,避免被Oracle installer使用<br>
[root@rh70 bin]cd ../lib<br>
[root@rh70 lib]mkdir saved<br>
[root@rh70 lib]mv libc.so libdl.so libm.so libpthread.so saved<br>
[root@rh70 lib]mv libc.a libdl.a libm.a libpthread.a saved<br>
E.创建oracle帐号和组<br>
以root帐号登录,开启一个terminal窗口,创建oinstall和dba组<br>
[root@rh70 /root]groupadd oinstall<br>
[root@rh70 /root]groupadd dba<br>
创建oracle帐号,以oinstall为primary组,dba为secondary组<br>
[root@rh70 /root]useradd oracle -g oinstall -G dba<br>
[root@rh70 /root]passwd oracle (设置oralce帐号的密码)<br>
F.创建Oracle软件安装目录<br>
[root@rh70 /root]mkdir /u01/app/oracle/product/8.1.6<br>
修改所创建目录的所属组及拥有者<br>
[root@rh70 /root]chown oracle:dba /u01/app/oracle/product/8.1.6 <br>
[root@rh70 /root]chown oracle:dba /u02 <br>
G.设置oracle用户环境<br>
使用oracle帐号登录,开启terminal窗口<br>
利用umask指令查看umask是否为022,若不是022,则需要把指令umask 022加到/home/oracle/.bash_profile文件中。<br>
[oracle@rh70 oracle]umask <br>
使用文本编辑器打开/home/oracle/.bash_profile,加入如下环境变量的设置行:<br>
#ORA_NLS=/u01/app/oracle/product/8.1.6/ocommon/nls/admin/data<br>
#export ORA_NLS<br>
#NLS_LANG="simplified chinese"<br>
#export NLS_LANG<br>
ORACLE_BASE=/u01/app/oracle<br>
export ORACLE_BASE<br>
ORACLE_HOME=/u01/app/oracle/product/8.1.6<br>
export ORACL_HOME<br>
ORACLE_SID=ora1 (自定义,最好不要超过四个字符)<br>
export ORACLE_SID<br>
CLASSPATH=/u01/app/oracle/product/8.1.6/jdbc/lib/calsses111.zip<br>
export CLASSPATH<br>
LD_LIBRARY_PATH=/u01/app/oracle/product/8.1.6/lib<br>
export LD_LIBRARY_PATH <br>
USERNAME="oracle"<br>
PATH=$PATH:$ORACLE_HOME:$ORACLE_HOME/bin:$ORACLE_HOME/dbs<br>
PATH=$PATH:/bin:/usr/bin:/usr/sbin:/usr/local:/usr/local/bin:/usr/bin/X11:/usr/X11R6/bin<br>
Log out,重新以oracle帐号登录,开启terminal窗口,键入env指令查看刚才设置的环境变量。<br>
[oracle@rh70 oracle]env<br>
H.安装Oracle 8i 数据库软件<br>
1.用oracle帐号登录,进入Xwindows,开启terminal窗口<br>
2.[oracle@rh70 oracle]cd /usr/src/Oracle8iR2<br>
3.[oracle@rh70 Oralcle8iR2]./runInstaller <br>
4.在出现的基于JAVA的Oracle installer安装界面上检查Source Path为:<br>
/usr/src/Oracle8iR2/stage/products.jar, <br>
Destination Path为$ORACLE_HOME环境变量设置的路径,点击Next。<br>
5.在Unix Group Name窗口中,键入"oinstall",点击Next;<br>
6.一个窗口会弹出,要求以root身份运行/usr/app/oracle/product/8.1.6/orainstRoot.sh。<br>
开启一个新的terminal窗口<br>
[oracle@rh70 Oralcle8iR2]su root (输入root密码)<br>
[oracle@rh70 Oralcle8iR2]cd $ORACLE_HOME<br>
[oracle@rh70 8.1.6]sh orainstRoot.sh<br>
返回刚才弹出的窗口,点击Retry。<br>
7.在出现的"Available products"窗口上选择"Oracle8I enterprise edition8.1.6.1.0",点击Next。<br>
8.下一个画面上选择Typical<br>
9.提示输入global database name,输入的数据库名字可以加上完整的域名,如oradb.xxx.com,<br>
数据库名字长度不要超过8个字符<br>
10.验证ORACLE_SID是否正确,点击Next<br>
11.提示输入db files localtion,输入定义的/u02<br>
12.最后在summary窗口上,点击Install<br>
13.在文件被拷贝和联接后,弹出一个要求运行root.sh的窗口<br>
14.返回刚才以root帐号开启的terminal窗口<br>
[oracle@rh70 8.1.6]cd $ORACLE_HOME<br>
[oracle@rh70 8.1.6]sh root.sh<br>
在询问local bin directory时按下Enten键<br>
[oracle@rh70 8.1.6]exit 退出root权限<br>
[oracle@rh70 8.1.6]exit 结束terminal窗口<br>
15.返回要求运行root.sh的窗口上,点击OK<br>
16.Oracle Net8 Configuration和Oracle Database Configuration Assistants启动,安装Net8和创建数据库。<br>
17. Oracle Database Configuration Assistants结束后,在弹出的完成数据库创建窗口上点击OK<br>
18.在End of Installation画面上,点击Exit<br>
现在所有的Oralce 8i Enterprise就安装好了! <br>
之后可以使用Oracle数据库管理工具svrmgrl、sql*plus来对安装好的数据库进行测试!<br>
<br>
结束<br>
<br>
<br>
<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 + -