📄 1774.html
字号:
<br>
1、选标准的安全级别。<br>
<br>
2、/dev/swap和/tmp要足够大。用默认值无法正常安装oracle<br>
/dev/swap = /tmp + /var/tmp<br>
<br>
3、不能安装NIS,可按F8跳过。<br>
<br>
4、必须安装开发工具。<br>
安装方法:<br>
将第4张盘mount到/mnt,执行<br>
pkgadd -d /mnt udk<br>
将第2张盘mount到/mnt,执行<br>
pkgadd -d /mnt update711<br>
reboot<br>
<br>
<br>
oracle 8i安装步骤<br>
=================<br>
<br>
1、以root用户登陆<br>
<br>
2、mount CDROM<br>
# mount -F cdfs -oro /dev/cdrom/cdrom1 /cdrom<br>
<br>
3、用scoadmin建立dba group和oracle用户, 将oracle加入dba组<br>
<br>
<br>
4、建立oracle目录 /oracle<br>
# mkdir /oracle<br>
# chown oracle:dba /oracle<br>
<br>
5、修改文件/etc/default/login, 设umask=022<br>
<br>
<br>
6、执行# chmod 777 /dev/async<br>
修改文件/etc/conf/node.d/async, 将600改为777<br>
<br>
<br>
7、修改内核参数<br>
修改文件/etc/conf/mtune.d/ipc, 找到包含"SEMOPM"的行, 有3个数值, 分别<br>
对应default, min, max, 将max值改为100;<br>
修改文件/etc/conf/cf.d/mtune,将SEMOPM的max值改为100。<br>
<br>
进入目录/etc/conf/cf.d, 通过运行下列命令修改文件stune中的相应参数:<br>
../bin/idtune SHMMAX 536870912<br>
../bin/idtune SHMMIN 1<br>
../bin/idtune SHMMNI 200<br>
../bin/idtune SHMSEG 10<br>
../bin/idtune SEMMNI 100<br>
y<br>
../bin/idtune SEMMSL 30<br>
../bin/idtune SEMMNS 700<br>
../bin/idtune SEMOPM 100<br>
../bin/idtune SCORLIM 0x7FFFFFFF<br>
../bin/idtune HCORLIM 0x7FFFFFFF<br>
../bin/idtune SDATLIM 0x7FFFFFFF<br>
../bin/idtune HDATLIM 0x7FFFFFFF<br>
../bin/idtune SVMMLIM 0x7FFFFFFF<br>
../bin/idtune HVMMLIM 0x7FFFFFFF<br>
../bin/idtune SFSZLIM 0x7FFFFFFF<br>
../bin/idtune HFSZLIM 0x7FFFFFFF<br>
../bin/idtune HFNOLIM 2048<br>
../bin/idtune SFNOLIM 128<br>
../bin/idtune NPROC 300<br>
y<br>
../bin/idtune ARG_MAX 1048576<br>
../bin/idtune NPBUF 100<br>
../bin/idtune MAXUP 1000<br>
y<br>
../bin/idtune STRTHRESH 0x500000<br>
../bin/idtune RECVRETRIES 4<br>
<br>
注意:如果是第一次修改内核参数,直接将上述命令copy & paste到#提示符下即可。其中的“y”是执行命令时系统需要确认而加上的。如果不是第一次修改内核参数,为了安全起见,最好一个个命令执行。<br>
<br>
7、rebuild kernel<br>
# /etc/conf/bin/idbuild<br>
# /usr/ucb/reboot<br>
<br>
<br>
<br>
8、以上为root用户要做的事情。下面以oracle用户在控制台登陆。<br>
<br>
9、修改文件.dtprofile, 让.profile生效<br>
把最后一行<br>
DTSOURCEPROFILE=true<br>
前面的#号去掉<br>
<br>
10、在.profile中加入<br>
umask 022<br>
<br>
DISPLAY=workstation_name:0.0<br>
ORACLE_BASE=/oracle<br>
ORACLE_HOME=/oracle<br>
ORACLE_SID=ORCL<br>
ORACLE_OWNER=oracle<br>
export DISPLAY ORACLE_BASE ORACLE_HOME ORACLE_SID ORACLE_OWNER<br>
<br>
PATH=$PATH:$ORACLE_HOME/bin:/usr/local/bin<br>
TMPDIR=/tmp<br>
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/java/lib:/usr/ccs/lib:/usr/lib:$LD_LIBRARY_PATH<br>
JAVA_HOME=/usr/java<br>
CLASSPATH=$ORACLE_HOME/oraInventory/Compoments/oracle/swd/jre/1.1.7:$ORACLE_HOME/jlib<br>
export PATH TMPDIR LD_LIBRARY_PATH JAVA_HOME CLASSPATH<br>
<br>
NLS_LANG=AMERICAN_AMERICA.ZHS16CGB231280<br>
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data <br>
export NLS_LANG ORA_NLS33<br>
<br>
保存文件后, 重新用oracle登陆控制台。<br>
<br>
<br>
11、cd cdrom_mount_point_directory<br>
执行./runInstaller开始安装。要选custom模式,不能选默认安装。<br>
安装过程与在其他unix里安装oracle 8i类似。<br>
<br>
<br>
12、运行/tmp/OraInstall/orainstRoot.sh前, 必须保证root登陆的umask为022<br>
<br>
<br>
13、警告:选择是否建库时,一定要选No。否则前功兼后功尽弃!!!<br>
<br>
<br>
14、安装完成后,配置Net8。如果在启动listener时,太长时间没反应,则按Stop,再next,退出安装过程。在命令行下用lsnrctl status查看,此时listener应该已经启动。如果没启动,则用lsnrctl start启动之。<br>
<br>
<br>
15、随CD附送的安装文档中说oratab文件在/var/opt/oracle/oratab,实际上要copy到/etc/oratab才能使用。<br>
以root用户执行<br>
# cp /var/opt/oracle/oratab /etc<br>
<br>
<br>
16、以oracle用户运行dbassist。不要自动建库,要退出用sql建库。至此,oracle安装完毕。<br>
<br>
17、因为文件$ORACLE_HOME/rdbms/demo/oratypes.h有错,如果要用OCI或PRO*C写程序,需要修改该文件,将第445行<br>
typedef int boolean;<br>
注释掉。<br>
<br>
<br>
<br>
<br>
<br>
自动开关oracle<br>
==============<br>
<br>
<br>
1、修改文件/etc/oratab,将相应的SID设为Y<br>
<br>
<br>
2、在/etc/init.d目录下建立一个dbora文件,并设为可执行。文件内容如下:<br>
<br>
#!/bin/sh<br>
# Set ORA_HOME to be equivalent to the ORACLE_HOME <br>
# from which you wish to execute dbstart and dbshut<br>
# set ORA_OWNER to the user id of the owner of the <br>
# Oracle database in ORA_HOME<br>
<br>
ORA_HOME=/oracle<br>
ORA_OWNER=oracle<br>
<br>
if [ ! -f $ORA_HOME/bin/dbstart ]<br>
then<br>
echo "Oracle startup: cannot start"<br>
exit<br>
fi<br>
<br>
case "$1" in<br>
<br>
'start')<br>
<br>
# Start the Oracle databases:<br>
# The following command assumes that the oracle login will not prompt the<br>
# user for any values<br>
<br>
su - $ORA_OWNER -c $ORA_HOME/bin/dbstart &<br>
su - $ORA_OWNER -c $ORA_HOME/bin/lsnrstart &<br>
<br>
;;<br>
<br>
'stop')<br>
<br>
# Stop the Oracle databases:<br>
# The following command assumes that the oracle login will not prompt the<br>
# user for any values<br>
<br>
su - $ORA_OWNER -c $ORA_HOME/bin/lsnrshut &<br>
su - $ORA_OWNER -c $ORA_HOME/bin/dbshut &<br>
;;<br>
esac<br>
<br>
<br>
3、建立连接<br>
在/oracle/bin目录建立两个文件lsnrstart和lsnrshut,内容为:<br>
lsnrctl start 和 lsnrctl stop,并设为可执行。<br>
以root执行<br>
# ln -s /etc/init.d/dbora /etc/rc0.d/K90dbora<br>
# ln -s /etc/init.d/dbora /etc/rc2.d/S99dbora<br>
<br>
注:oracle文档上为/etc/rc0.d/K10dbora,但因K10在K69inet前面,会令inet无法启动。<br>
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 + -