📄 1795.html
字号:
href="index.html" tppabs="http://www.linuxhero.com/docs/index.html"><IMG height=83
src="images/header_r1_c1.gif" tppabs="http://www.linuxhero.com/docs/images/header_r1_c1.gif" width=472 border=0
name=header_r1_c1></A></TD>
<TD colSpan=3>
<form action="http://www.linuxhero.com/docs/search.html" method=get>
<table
style="BORDER-RIGHT: #c4c4c4 1px solid; BORDER-TOP: #c4c4c4 1px solid; BORDER-LEFT: #c4c4c4 1px solid; BORDER-BOTTOM: #c4c4c4 1px solid"
cellspacing=0 cellpadding=3 width="95%" border=0 align="center">
<tbody>
<tr>
<td noWrap background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif">
<div align=center><font class=normalfont>搜索文章:
<input type=hidden value=result name=action2>
<input type=radio checked value=title name=type>标题
<input type=radio value=content name=type>内容
<input type=image src="images/button_go.gif" tppabs="http://www.linuxhero.com/docs/images/button_go.gif" border=0 name=image2>
</font></div>
</td>
</tr>
<tr>
<td noWrap>
<div align="center">
<input maxlength=100 size=30 name=keyword2>
</div>
</td>
</tr></tbody>
</table>
</form>
</TD>
<TD rowSpan=2><IMG src="images/header_r1_c7.gif" tppabs="http://www.linuxhero.com/docs/images/header_r1_c7.gif" width=26 border=0 name=header_r1_c7></TD>
<TD><IMG height=83 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1 border=0></TD></TR>
<TR>
<TD background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif"><IMG height=22
src="images/header_r2_c1.gif" tppabs="http://www.linuxhero.com/docs/images/header_r2_c1.gif" width=296 border=0
name=header_r2_c1></TD>
<TD background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif" colSpan=5>
<DIV align=right><FONT class=normalfont>当前位置:
<A href="index.html" tppabs="http://www.linuxhero.com/docs/index.html">本站首页</A>
<font color="#FF6699">>></font>
<A href="type28.html" tppabs="http://www.linuxhero.com/docs/type28.html">oracle</A> | <A href="copyright.html" tppabs="http://www.linuxhero.com/docs/copyright.html">版权说明</A></font></DIV>
</TD>
<TD><IMG height=22 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1
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 8I release 2企业版本数据库服务器</font></B></FONT><BR><FONT class=smallfont color=#ff9900>2004-04-23 15:18 pm</FONT><BR><FONT class=normalfont>作者:作者<br>来自:Linux知识宝库<br>联系方式:无名<br><br>安装前的软件准备<br>
RedHat7.0安装光盘2张<br>
Oracle8161_tar.gz<br>
<br>
开始安装<br>
<br>
一、硬盘分区<br>
Oralcel建议SWAP交换分区为400M或2倍于当前使用的系统物理内存,当然越大越好。典型安装 750MB、最小安装650MB、自定义安装 1000MB<br>
分区时划定两个安装点,/u01(用于安装ORALCE软件)和/u02(用于存放数据库数据),/u01分区的大小,这两个安装点可以在安装时划定或完成系统安装后在“/”目录或别的目录下建立<br>
<br>
二、安装必须具备:(安装RedHat7.0时选择完全安装)<br>
·X Windows<br>
·Development packages(c,gcc等)<br>
<br>
<br>
三、解压缩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>
<br>
四、安装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>
<br>
五、创建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>
<br>
六、创建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>
<br>
七、设置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>
<br>
----------------------------------------------------------------------------<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>
--------------------------------------------------------------------------------<br>
<br>
<br>
Log out,重新以oracle帐号登录,开启terminal窗口,键入env指令查看刚才设置的环境变量。<br>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -