⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 1779.html

📁 著名的linux英雄站点的文档打包
💻 HTML
📖 第 1 页 / 共 2 页
字号:
                          <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>RedHat7.3/8.0下的Oracle 8i安装笔记</font></B></FONT><BR><FONT class=smallfont color=#ff9900>2004-04-23 15:18 pm</FONT><BR><FONT class=normalfont>作者:chedong<br>来自:Linux知识宝库<br>联系方式:无名<br><br>硬件需求<br>
========<br>
至少256M物理内存<br>
<br>
系统准备<br>
========<br>
redhat8按server方式安装需要增加的安装包大类:<br>
1 包含一个X系统,建议使用GNOME,<br>
2 将开发工具包DEVELOP TOOLS选上,标准的GCC工具等就有了。<br>
3 建议将NETWORK UTILIETY选上,nmap mtr之类的小工具很有用<br>
安装大约1.4G空间<br>
<br>
安装后将语言环境设置缺省的en_US.UTF-8(redhat7.3下是en_US.iso885915)改成en_US<br>
root#vi /etc/sysconfig/i18n<br>
改成:<br>
LANG="en_US"<br>
SUPPORTED="en_US:en"<br>
<br>
<br>
一 安装前准备<br>
=============<br>
0 下载:<br>
1 最新的JVM:建议使用IBM JVM1.3 http://www.ibm.com<br>
root#rpm -i IBMJava2-SDK-1.3.1-2.0.i386.rpm<br>
将JAVA_HOME设置到/etc/profile<br>
root#vi /etc/profile<br>
export JAVA_HOME=/opt/IBMJava2-131<br>
export PATH=$PATH:/opt/IBMJava2-131/bin<br>
<br>
2 Oracle8.1.7的安装包: http://www.oracle.com<br>
linux81701.tar oracle8i的LINUX安装包<br>
glibc-2.1.3-stubs.tar.gz 补丁程序<br>
<br>
1 安装JDK<br>
rpm -i IBMJava2-SDK-1.3.1-2.0.i386.rpm<br>
<br>
2 创建用户和组<br>
oracle8i服务用户名:oracle属于dba组<br>
root#groupadd dba<br>
root#useradd oracle -g dba<br>
修改oracle用户密码:<br>
root#passwd oracle<br>
<br>
3 设置oracle用户的环境变量,加入以下设置:<br>
oracle%vi ~oracle/.bash_profile<br>
#####################################################<br>
export LD_ASSUME_KERNEL=2.2.5<br>
# ORACLE_HOME主目录<br>
export ORACLE_BASE=/home/oracle<br>
export ORACLE_HOME=$ORACLE_BASE/product/8.1.7<br>
# 缺省字符集:<br>
export NLS_LANG=american<br>
# 命令行工具入口<br>
export PATH=$PATH:$ORACLE_HOME/bin<br>
#####################################################<br>
如果需要让这些环境设置马上生效:<br>
source .bash_profile<br>
<br>
二 ORACLE的安装过程<br>
===================<br>
解包linux81701.tar(大约530M)<br>
tar xf linux81701.tar<br>
<br>
用Oracle用户进入X环境下运行解包出的Disk1/<br>
<br>
整个安装过程最好开启2个窗口:一个是runInstaller, 在另外一个终端窗口里运行一些辅助脚本程序<br>
以下是按照安装步骤2个窗口的切换过程:<br>
<br>
ORACLE INSTALLER PATCH TERMINAL<br>
-------------------------------------------------------------------------------------------------<br>
1 /PATH/TO/Disk1/runInstaller,<br>
按部就班地按照缺省选项安装就行。<br>
建议只选择:不安装OPS,不安装JServer等,<br>
单数据库单实例,否则会慢得让你怀疑死机了……<br>
1 Oracle Server<br>
2 Net8<br>
3 Oracle Utilities<br>
4 Orcale Configuration Assistants<br>
<br>
2 中间有关出现权限组设置时,<br>
填写预先设置好的dba组 当ORACLE安装提示运行oracle用户组权限设置脚本时<br>
root#orainstRoot.sh<br>
<br>
3 中间关于数据库安装的配置选择不安装数据库<br>
(或者最后出现数据库助手时不安装,一定等用<br>
oracle提供的glibc-2.1.3-stubs.tar.gz中的<br>
setup_stub.sh打完补丁以后再装数据库)<br>
<br>
4 当ORACLE安装提示用root运行root.sh时<br>
root#root.sh<br>
Oracle8.1.7.0.1的版本此时的root.sh有个bug,应该在第156行,改正如下:<br>
RUID=`/usr/bin/id|$AWK -F( '{print $2}'|$AWK -F) '{print $1}'`<br>
最后少写个单引号" ' "---------^<br>
5 ORACLE应用程序安装完成,<br>
NET8配置按照缺省设置即可<br>
至此:数据库应用和网络服务基本安装初步完成<br>
但数据库没有初始化,先退出Installer安装界面<br>
<br>
6 切换到oracle用户打补丁程序<br>
oracle%cp glibc-2.1.3-stubs.tar.gz %ORACLE_HOME/<br>
oracle%cd $ORACLE_HOME<br>
oracle%tar zxf glibc-2.1.3-stubs.tar.gz<br>
oracle%./setup_stubs.sh<br>
7 补丁打完后,在X用oracle用户启动dbassist<br>
按照提示创建数据库。<br>
oracle%dbassist<br>
<br>
安装完成<br>
数据库设置完成后,将新安装的ORACLE_SID设置到.bash_profile里:假设使用缺省的数据库实例ID名:orcl<br>
export ORACLE_SID=orcl<br>
<br>
这时候已经可以使用dbstart脚本启动数据库了<br>
oracle%dbstart<br>
或者<br>
oracle%sqlplus<br>
SQL&gt;connect internal<br>
SQL&gt;startup<br>
<br>
监听端口启动<br>
oracle%lsnrctl start<br>
<br>
三 设置服务自动启动<br>
===================<br>
设置相应数据库实例允许用系统服务自动启动<br>
root# vi /etc/oratab<br>
将最后的:<br>
orcl:/home/oracle/product/8.1.7:N<br>
改为:<br>
orcl:/home/oracle/product/8.1.7:Y<br>
<br>
<br>
简单的服务自动启动脚本<br>
root# vi /etc/rc.local<br>
#start oracle8i listener first<br>
su - oracle -c 'lsnrctl start'<br>
#start oracle8i<br>
su - oracle -c 'dbstart'<br>
<br>
我参考了网上大量的安装文档介绍。最后我发现用oracle8.1.7.0.1其实<br>
compat-libstdc++-6.2-2.9.0.16<br>
compat-glibc-6.2-2.1.3.2<br>
compat-libs-6.2-3<br>
compat-egcs-6.2-1.1.2.16<br>
的兼容包其实可以不用装的,反正在我机器上:<br>
rpm -qa|grep compat 是空的,按照以上过程在2台REDHAT8安装成功。在REDHAT7.3下也安装通过
</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>版权所有 &copy; 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 + -