📄 1782.html
字号:
<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>oracle8i在linux9的安装步骤</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>
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=20060&sid=<br>
<br>
本安装步骤是经过本人数天的实践和参考其他网友的文档综合而成,只用于在REDHAT LINUX 9.0 上安装oracle 8.1.7之用。在此对那些网友表示衷心感谢。<br>
步骤1:准备软件<br>
下载JDK,sun网站上1.4,1.3都可。<br>
下载oracle的补丁:glibc-2.1.3-stubs.tar.gz<br>
下载glibc-2.1: i386.glibc-2.1-linux.tar.gz<br>
下载binutils:binutils-2.10.91.0.2-3.i386.rpm<br>
<br>
上述软件包请自己进行寻找,本人不提供<br>
<br>
步骤2:安装glibc2.1<br>
把i386.glibc-2.1-linux.tar.gz拷贝到根目录<br>
使用root用户<br>
tar zxvf i386.glibc-2.1-linux.tar.gz<br>
<br>
步骤3:隐藏文件<br>
使用root用户<br>
cd /usr/bin<br>
mkdir saved<br>
mv gcc cc ld saved<br>
ln -s /usr/i386-glibc-2.1-linux/bin/i386-glibc21-linux-gcc gcc<br>
ln -s gcc cc<br>
ln -s /usr/i386-glibc-2.1-linux/bin/i386-glibc21-linux-ld ld<br>
<br>
cd /usr/lib<br>
mkdir saved<br>
mv libc.so libdl.so libm.so libpthread.so saved<br>
mv libc.a libdl.a libm.a libpthread.a saved<br>
<br>
步骤4:安装JDK<br>
安装jdk,不要问我怎样安装<br>
安装使用root用户<br>
cd /usr/local<br>
ln -s /usr/java/j2sdk-1.2.1_0n java<br>
<br>
<br>
步骤5:安装binutils<br>
rpm -Uvh --force --nodeps binutils-2.10.91.0.2-3.i386.rpm<br>
<br>
<br>
步骤6:创建oracle用户和组<br>
groupadd oinstall<br>
groupadd dba<br>
useradd oracle -g oinstall -G dba<br>
passwd oracle<br>
chown -R oracle.dba /oracle<br>
chmod 750 /oracle<br>
<br>
<br>
步骤7:解压缩oracle<br>
会生成一个Disk1的目录(建议使用oracle用户)<br>
<br>
步骤8:设置用户环境<br>
把oracle用户的.bash_profile更改为下面的内容<br>
# .bash_profile<br>
<br>
# Get the aliases and functions<br>
if [ -f ~/.bashrc ]; then<br>
. ~/.bashrc<br>
fi<br>
<br>
# User specific environment and startup programs<br>
<br>
PATH=$PATH:$HOME/bin<br>
<br>
export PATH<br>
unset USERNAME<br>
# +------------------------------------------------------------+<br>
# | FILE : .bash_profile |<br>
# +------------------------------------------------------------+<br>
<br>
umask 022<br>
EDITOR=vi; export EDITOR<br>
TERM=xterm; export TERM<br>
TMPDIR=/tmp; export TMPDIR<br>
<br>
# +--------------------------+<br>
# | SETUP ORACLE ENVIRONMENT |<br>
# +--------------------------+<br>
<br>
export ORACLE_SID=orcl<br>
export ORACLE_BASE=/oracle<br>
export ORACLE_HOME=$ORACLE_BASE/product/8.1.7<br>
<br>
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib<br>
export TNS_ADMIN=$ORACLE_HOME/network/admin<br>
<br>
export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1<br>
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data<br>
<br>
export ORACLE_OWNER=oracle<br>
export ORACLE_TERM=xterm<br>
<br>
#export LDEMULATION=elf_i386_glibc21<br>
export GCC_EXEC_PREFIX=/usr/i386-glibc21-linux/lib/gcc-lib/<br>
# +--------------------------+<br>
# | LINUX STUFF |<br>
# +--------------------------+<br>
<br>
export LD_ASSUME_KERNEL=2.4<br>
#source /usr/i386-glibc2.1-linux/bin/i386-glibc21-linux-env.sh<br>
<br>
# +--------------------------+<br>
# | SETUP SEARCH PATH |<br>
# +--------------------------+<br>
<br>
PATH=$PATH:$ORACLE_HOME/bin:/opt/bin:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/java/bin:.<br>
export PATH<br>
# +--------------------------+<br>
# | SETUP JAVA ENVIRONMENT |<br>
# +--------------------------+<br>
<br>
export JAVA_HOME=/usr/local/java<br>
<br>
export CLASSPATH=/oracle/product/8.1.7/jdbc/lib/classes12.zip:/oracle/product/8.1.7/JRE:/oracle/product/8.1.7/jlib:/oracle/product/8.1.7/rdbms/jlib:/oracle/product/8.1.7/network/jlib:.<br>
<br>
# +-------------+<br>
# | "GREETINGS" |<br>
# +-------------+<br>
echo ".bash_profile executed"<br>
<br>
运行此文件:source .bash_profile ,或者重新启动用户<br>
步骤9:安装oracle<br>
使用oracle用户登录<br>
export LANG=en(为了避免出现乱码)<br>
runInstaller<br>
当出现错误时安装oracle补丁,一定oracle用户进行安装补丁,否则安装过程会有点难受。<br>
安装过程不再描述<br>
步骤10:恢复系统<br>
rpm ?e ?force ?nodeps bintuils-2.10.0.18<br>
rpm ?ivh ?force binutils高版本<br>
cd /usr/bin<br>
rm ?f gcc cc ld<br>
mv ./saved/* .<br>
rmdir daved<br>
cd /usr/lib<br>
mv ./saved/* .<br>
rmdir daved<br>
<br>
步骤11:设置自动启动,修改oratab文件<br>
root# vi /etc/oratab<br>
将最后的N改为Y<br>
简单的服务启动脚本:<br>
root#vi /etc/rc.local<br>
添加以下内容:<br>
su ? oracle ?c ‘lsnrctl start’<br>
su ? oracle ?c ‘dbstart’<br>
<br>
步骤11:设置自动关闭<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 + -