原文:Suse Enterprise 11 安装Oracle 11.2(中)
接着上一篇文章 Suse Enterprise 11 安装Oracle 11.2(上)
继续oracle的安装。本来以为我之前有安装的经验,本次可以很顺利就通过的。而原来suse和centos还是有一点小差别,因此没能很快就完成安装,当中卡在几个问题上。
[font=宋体]我们继续按应有的步骤进行下去[/font]
[font=宋体]检查系统硬件[/font]
[font=宋体]如图,利用[/font][font=Times New Roman]linux[/font][font=宋体]命令检查系统是否满足要求。[/font]
[font=宋体]内存[/font][font=Times New Roman]1G[/font][font=宋体]以上[/font]
[font=宋体]交换空间[/font][font=Times New Roman]1.5G[/font][font=宋体]以上[/font]
[font=宋体]磁盘空间[/font][font=Times New Roman]16G[/font]
[font=Times New Roman] [img=641,567]http://www.linuxsight.com/wp-content/uploads/pic/2010/0821/1.jpg[/img][/font]
[font=宋体]修改[/font][font=Times New Roman]linux[/font][font=宋体]内核参数[/font]
[font=宋体]检查内核参数是否满足[/font]
[font=Times New Roman][img=641,411]http://www.linuxsight.com/wp-content/uploads/pic/2010/0821/2.jpg[/img] [/font]
[font=Times New Roman] /etc/sysctl.conf [/font][font=宋体]加上如下内容[/font]
[font=Times New Roman]fs.aio-max-nr = 1048576[/font]
[font=Times New Roman]fs.file-max = 6815744[/font]
[font=Times New Roman]kernel.shmall = 2097152[/font]
[font=Times New Roman]kernel.shmmax = 536870912[/font]
[font=Times New Roman]kernel.shmmni = 4096[/font]
[font=Times New Roman]kernel.sem = 250 32000 100 128[/font]
[font=Times New Roman]net.ipv4.ip_local_port_range = 9000 65500[/font]
[font=Times New Roman]net.core.rmem_default = 262144[/font]
[font=Times New Roman]net.core.rmem_max = 4194304[/font]
[font=Times New Roman]net.core.wmem_default = 262144[/font]
[font=Times New Roman]net.core.wmem_max = 1048586[/font]
[font=Times New Roman]net.ipv4.tcp_wmem = 262144 262144 262144[/font]
[font=Times New Roman]net.ipv4.tcp_rmem = 4194304 4194304 4194304[/font]
[font=Times New Roman]# /sbin/chkconfig boot.sysctl on
[/font][font=宋体]让[/font][font=Times New Roman]suse[/font][font=宋体]启动时加载[/font][font=Times New Roman]/etc/sysctl.conf[/font]
[font=Times New Roman]# /sbin/sysctl -p
[/font][font=宋体]使修改的参数立即生效[/font]
[font=Times New Roman][img=608,426]http://www.linuxsight.com/wp-content/uploads/pic/2010/0821/3.jpg[/img] [/font]
[font=宋体]创建[/font][font=Times New Roman]oracle[/font][font=宋体]用户和组及安装目录[/font]
[align=left][font=Times New Roman]linuxsight:/# groupadd oinstall [/font][font=宋体](创建用户组[/font][font=Times New Roman]oinstall[/font][font=宋体])[/font][/align]
[align=left][font=Times New Roman][size=10.5pt][font=Times New Roman]linuxsight:/# [/font] groupadd dba[/font][/size][font=宋体](创建用户组[/font][font=Times New Roman]dba[/font][font=宋体])[/font][/align]
[align=left]
[/align]
[align=left][font=Times New Roman][size=10.5pt][font=Times New Roman]linuxsight:/# [/font] useradd -g oinstall -G dba [/size]-m oracle ( 第一个问题就在这里,必须加 -m[/font][font=Times New Roman] )[/font][/align]
[align=left][font=Times New Roman][[size=10.5pt][font=Times New Roman]linuxsight:/# [/font]passwd oracle([/font][/size][font=宋体]设置密码[/font][font=Times New Roman])[/font][/align]
[align=left][font=Times New Roman][size=10.5pt][font=Times New Roman]linuxsight:/# [/font] mkdir -p /fantlam/oracle [/size][/font][/align]
[align=left][font=Times New Roman][size=10.5pt][font=Times New Roman]linuxsight:/# [/font]chown -R oracle:oinstall /fantlam[/font][/size][font=宋体](改目录组)[/font]
[/align]
[align=left]
[/align]
[align=left][font=宋体][size=10.5pt][font=Times New Roman]linuxsight:/# [/font] su - oracle[/size][/font][/align]
[align=left][font=宋体]oracle@linuxsight:/home/oracle> vi .profile 添加[/font][/align]
[align=left]
[/align]
[align=left][font=宋体]ORACLE_BASE=/fantlam[/font][/align]
[align=left][font=宋体]ORACLE_HOME=$ORACLE_BASE/oracle[/font][/align]
[align=left][font=宋体]ORACLE_SID=fantlam[/font][/align]
[align=left][font=宋体]PATH=$ORACLE_HOME/bin:$PATH[/font][/align]
[align=left][font=宋体]export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH[/font][/align]
[align=left]
[/align]
[align=left][font=宋体][font=宋体][size=10.5pt]oracle@linuxsight:/home/oracle> [/font]exit [/size][/font][font=宋体](退出登录让设置生效)[/font][/align]
[align=left][font=宋体][size=10.5pt][font=Times New Roman][size=10.5pt][font=Times New Roman]linuxsight:/#[/font][/font][/size] su - oracle[/size][/font][/align]
[align=left][font=宋体][font=宋体][size=10.5pt]oracle@linuxsight:/home/oracle>[/font] env | grep ORA[/size][/font][/align]
[align=left][font=宋体]ORACLE_SID=fantlam[/font][/align]
[align=left][font=宋体]ORACLE_BASE=/fantlam[/font][/align]
[align=left][font=宋体]ORACLE_HOME=/fantlam/oracle[/font][/align]
[font=宋体]为[/font][font=Times New Roman]oracle[/font][font=宋体]用户设置[/font][font=Times New Roman]shell[/font][font=宋体]的限制[/font]
[font=Times New Roman]1[/font][font=宋体]、[/font][font=Times New Roman]gedit /etc/security/limits.conf [/font][font=宋体]加入如下内容[/font]
[font=Times New Roman]oracle soft nproc
2047[/font]
[font=Times New Roman]oracle hard nproc
16384[/font]
[font=Times New Roman]oracle soft nofile 1024[/font]
[font=Times New Roman]oracle hard nofile 65536[/font]
[font=Times New Roman]oracle hard stack
10240[/font]
[img=647,516]http://www.linuxsight.com/wp-content/uploads/pic/2010/0821/4.jpg[/img]
[font=Times New Roman]2[/font][font=宋体]、[/font][font=Times New Roman]gedit /etc/pam.d/login[/font]
[font=宋体]加入[/font]
[font=Times New Roman]session required /lib/security/pam_limits.so[/font]
[font=Times New Roman]3[/font][font=宋体]、[/font][font=Times New Roman]gedit /etc/profile[/font]
[font=宋体]加入[/font]
[font=Times New Roman]
if [ $USER = "oracle" ]; then[/font]
[font=Times New Roman]
if [ $SHELL = "/bin/ksh" ]; then[/font]
[font=Times New Roman]
ulimit -p 16384[/font]
[font=Times New Roman]
ulimit -n 65536[/font]
[font=Times New Roman]
else[/font]
[font=Times New Roman]
ulimit -u 16384 -n 65536[/font]
[font=Times New Roman]
fi[/font]
[font=Times New Roman]
fi[/font]
[font=Times New Roman][img=650,450]http://www.linuxsight.com/wp-content/uploads/pic/2010/0821/5.jpg[/img][/font]
解压文件并移动到fantlam目录
[font=Times New Roman][font=Times New Roman][font=宋体][size=10.5pt][font=Times New Roman]linuxsight:/# [/font][/size][/font][/font]unzip linux_11gR2_database_1of2.zip[/font]
[font=Times New Roman][font=Times New Roman][font=宋体][size=10.5pt][font=Times New Roman]linuxsight:/# [/font][/size][/font][/font]unzip linux_11gR2_database_2of2.zip[/font]
[font=Times New Roman][font=宋体][size=10.5pt][font=Times New Roman]linuxsight:/# [/font][/size][/font]mv database/ /fantlam[/font]
[font=Times New Roman][font=宋体][size=10.5pt][font=Times New Roman]linuxsight:/# [/font][/size][/font]cd /fantlam[/font]
[font=Times New Roman][font=宋体][size=10.5pt][font=Times New Roman]linuxsight:/# [/font][/size][/font]chown -R oracle:oinstall database/
[/font]
sauntor 于 2010-10-09 21:04:30发表:
这个基本是按Oracle 11.2官方手册写的,如果能看懂英文,按手册原文指导安装会有更多收获,不过还是要顶一下。:0wpoi2
如果楼主能在openSUSE 11.3/11.2中安装成功,那俺可就真是佩服到家了 q):-s
fantlam 于 2010-09-10 22:31:49发表:
我自己顶一下吧
nxzcc 于 2010-08-22 08:41:47发表:
学习了