📄 1716.html
字号:
mkdir /opt/oracle/product/9.0.1<br>
chown -R oracle.oinstall /opt/oracle<br>
mkdir /var/opt/oracle<br>
chown oracle.dba /var/opt/oracle<br>
chmod 755 /var/opt/oracle<br>
<br>
设置 Oracle 环境<br>
<br>
以 Oracle 用户进入,建立 $HOME/.bash_profile:<br>
# Oracle Environment<br>
export ORACLE_BASE=/opt/oracle<br>
export ORACLE_HOME=/opt/oracle/product/9.0.1<br>
export ORACLE_SID=test<br>
export ORACLE_TERM=xterm<br>
#export TNS_ADMIN= 设置这个变量,如果 sqlnet.ora, tnsnames.ora等不在$ORACLE_HOME/network/admin 目录下。<br>
export NLS_LANG=AMERICAN;<br>
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data<br>
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/openwin/lib<br>
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/td/lib:/usr/ucblib:/usr/local/lib<br>
export LD_LIBRARY_PATH<br>
# Set shell search paths:<br>
PATH=/bin:/usr/bin:/usr/sbin:/etc:/opt/bin:/usr/ccs/bin:/usr/openwin/bin:/opt/local/GNU/bin<br>
PATH=$PATH:/opt/local/bin:/opt/NSCPnav/bin:$ORACLE_HOME/bin<br>
PATH=$PATH:/usr/local/samba/bin:/usr/ucb:<br>
export PATH<br>
# CLASSPATH must include the following JRE locations:<br>
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib<br>
CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib<br>
<br>
启动 runInstaller<br>
<br>
Oracle 不再支持字符模式的安装,因此必须设置 DISPLAY 变量,假设节点名为 oracleserver,那么 oracleserver 必须允许 runInstaller 显示 X 信息。如果你不在远程安装数据库,可以跳过下面的第一和第二步。<br>
第一步:yourdesktop:user$ xhost +oracleserver<br>
第二步:从 oracleserver 的控制台上以 Oracle 用户执行:<br>
oracleserver:oracle$ export DISPLAY=yourdesktop:0.0<br>
第三步a:从第一张 CD ,执行 runInstaller (不要 cd 到 /mnt/cdrom !)<br>
oracleserver:oracle$ mount /mnt/cdrom<br>
oracleserver:oracle$ /mnt/cdrom/runInstaller<br>
第三步b:或者从下载点:<br>
oracleserver:oracle$ Disk1/RunInstaller<br>
<br>
运行 Oracle 安装<br>
<br>
下面是我回答 runInstaller 的问题: What would you like as the base directory (Inventory Location): /opt/oracle/oraInventory<br>
UNIX Group Name (permission for updating Oracle software): oinstall<br>
Full path name of the Oracle Home: /opt/oracle/product/9.0.1<br>
JDK Home Directory: /usr/local/java<br>
注意:<br>
<br>
如果没有“降级” binutils 包的话,安装到第三张 CD 时,你会看到下面的错误:<br>
"Error invoking target install of makefile /opt/oracle/product/9.0.1/plsql/lib/ins_plsql.mk"<br>
解决的办法请看后面的“Oracle 安装错误”。<br>
<br>
你可能还会碰到 "Oracle Net Configuration Assistant" 挂起的问题,请参考 后面的”Oracle 安装中重要的技巧和提示“。<br>
<br>
启动 Oracle 9i 数据库<br>
<br>
9i 中已经没有 svrmgrl 了,所有的管理工作都听过 sqlplus 来完成:<br>
dba$ sqlplus /nolog<br>
SQL> connect / as sysdba<br>
SQL> startup<br>
<br>
<br>
Oracle 安装中重要的技巧和提示<br>
<br>
* 如果遇到 gunzip 出错,检查文件的校验和:<br>
$ md5sum Linux9i_Disk1.cpio.gz Linux9i_Disk2.cpio.gz Linux9i_Disk3.cpio.gz<br>
f1a99eb8c8aca1d69a9eeaa8858570d7 Linux9i_Disk1.cpio.gz<br>
f2444c0fa53c898e7d2f78c184829d7d Linux9i_Disk2.cpio.gz<br>
ec655402d8bc547ed031f14122da574b Linux9i_Disk3.cpio.gz<br>
* 不要 cd 到 /mnt/cdrom 执行 ./runInstaller !<br>
否则你将不能在安装时弹出 CD,因为 unmount 不能把挂接着的 CD 卸下来。<br>
(译者注:我安装 9iAS 遇到的就是这样的问题啊!害得我把 CD 复制到硬盘再安装)。<br>
* 如果忘记了设置 DISPLAY 环境变量或者忘记赋予数据库服务器在桌面 PC 上显示 X 信息的权限(例如: xhost +oracleserver),将得到下面的错误:<br>
Xlib: connection to ":0.0" refused by server<br>
Xlib: Client is not authorized to connect to Server<br>
解决的办法是:rm -rf /tmp/OraInstall<br>
如果不这样做,安装程序将挂在那里,没有任何错误信息。 同时也要检查 runInstaller 是否在后台停止了运行。<br>
* 当 runInstaller 开始配置工具时,"Oracle Net Configuration Assistant" 会挂起,简单的解决办法是停止其配置,重新配置或者继续安装,当其他安装结束后,再来一次“Retry"。<br>
* 如果在安装中系统停止了反应,可能就是没有足够的交换空间了。如果发生这样的事情,只能等待到系统反应为止。<br>
* Oracle 的安装还需要运行 make 等程序,在生产环境中,你或许没有安装编译器和其他开发工具,所以,需要临时安装下面的几个包:<br>
cpp, egcs, egcs-c++, glibc-devel, kernel-headers 。<br>
* 如果不能成功安装 9i 而需要重来的话,需要清除下面的文件和目录:<br>
rm -rf /etc/oraInst.loc /etc/oratab /tmp/OraInstall<br>
rm -rf $ORACLE_BASE/*<br>
/tmp/<br>
<br>
<br>
Oracle 安装错误<br>
<br>
下面是别人关于 Oracle 安装时碰到的问题和解决的办法,我并没有遇到其中的大多数问题,因此不能确定这些解答是否正确,如果你有好的解决办法或者其他问题,可以写信给我,我将会加入到这个文件中。<br>
<br>
* 首先检查/tmp/OraInstall 中的错误日志,如果遇到 make 的错误,检查 : $ORACLE_HOME/install/make.log 。<br>
* "Error invoking target install of makefile /opt/oracle/product/9.0.1/plsql/lib/ins_plsql.mk"<br>
"Error invoking target install of makefile /opt/oracle/product/9.0.1/precomp/lib/ins-precomp.mk"<br>
"Error invoking target install of makefile /opt/oracle/product/9.0.1/precomp/lib/ins-net-client"<br>
"Error invoking target install of makefile /opt/oracle/product/9.0.1/precomp/lib/ins-oemagent"<br>
编辑 $ORACLE_HOME/bin/genclntsh 把<br>
LD_SELF_CONTAINED="-z defs"<br>
改成:<br>
LD_SELF_CONTAINED=""<br>
然后运行脚本:$ORACLE_HOME/bin/genclntsh:<br>
$ $ORACLE_HOME/bin/genclntsh<br>
Created /opt/oracle/product/9.0.1/lib/libclntst9.a<br>
$<br>
在错误对话框中点击 重试。<br>
* "Error in setting permissions of file/directory /opt/oracle/jre/1.1.8/bin/i686/native_threads/.extract_args.<br>
当错误框打开时,手工找到并从安装 jre 的目录下拷贝文件 .extract_args 到 runInstaller 提示文件丢失的地方。<br>
<br>
Oracle 的链接<br>
<br>
在我的主页上有一些 Oracle 的 Linux 连接。我只是涵盖和 Linux 相关的 Oracle 问题,没有涉及到具体的 Oracle 配置问题。您可以通过 电子邮件和我联系。<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 + -