SuSE linux 11 安装 oracle 10g

来源:互联网 发布:淘宝降权会有提示吗 编辑:程序博客网 时间:2024/05/10 12:05

在网上搜索了很多关于suse 11安装 oracle 10g 的文档,关于安装哪些包一直很糊涂,终于忍不了了去官方文档查看了一下终于解决了(英语一直很差)

官方文档内容

 List ofPackages for SUSE Linux Enterprise Server 11

The followingpackages (or later versions) must be installed:

binutils-2.19.11.28

gcc-4.3-62.198

glibc-2.9-13.2

glibc-devel-2.9-13.2

ksh

libaio-0.3.104-140.22

libaio-devel-0.3.104-140.22

libgcc-43-4.3.3-11.18

libstdc++-4.3.3-11.18

libstdc++-devel-4.3.3-11.18

make-3.81

sysstat-8.1.5-7.8

oracle 配置
oracle支持操作系统版本

Linux=redhat-3,SuSE-9,redhat-4,redhat-5,UnitedLinux-1.0,asianux-1,asianux-2

vi /etc/SuSE-release 将版本号修改为9

创建用户及目录
创建Oracle用户组
groupadd oinstall
groupadd dba
创建Oracle用户
useradd -m -goinstall -G dba oracle
设置Oracle用户口令
passwd oracle

如果使用SuSE自带的orarun则只需激活oracle用户即可

vi /etc/passwd

oracle用户后面的/bin/false改为 /bin/bash


创建Oracle安装目录以及数据存放目录
mkdir -p /u01/app/oracle
mkdir -p/u02/oradata
修改目录权限
chown -Roracle:oinstall /u01/app/oracle/ /u02/oradata/
chmod -R 755/u01/app/oracle/ /u02/oradata/
其他参数设置
添加以下内容到/etc/security/limits.conf
vi/etc/security/limits.conf
oracle soft nproc2047
oracle hard nproc 16384
oracle soft nofile1024
oracle hard nofile65536
添加以下内容到/etc/pam.d/login
vi /etc/pam.d/login
session required/lib/security/pam_limits.so
session requiredpam_limits.so
添加以下内容到/etc/profile
vi /etc/profile
if [ $USER ="oracle" ]; then
if [ $SHELL ="/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n65536
fi
fi
四、添加环境变量
编辑.profile
vi /home/oracle/.profile
exportORACLE_BASE=/u01/app/oracle
exportORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
exportORACLE_SID=oracle1
exportPATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:/sbin
执行下面命令使修改生效
source .profile

 

vi /etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmnni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
/sbin/sysctl -p


groupadd oinstall
groupadd dba
useradd -m -g oinstall -G dba oracle
passwd oracle


mkdir -p /u01/app/oracle
mkdir -p /u02/oradata
chown -R oracle:oinstall /u01/app/oracle/u02/oradata
chmod -R 755 /u01/app/oracle /u02/oradata


vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536


vi /etc/pam.d/login
session required /lib/security/pam_limits.so
session required pam_limits.so
vi /etc/profile
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi


vi /home/oracle/.profile
export ORACLE_BASE=/u01/app/oracle
exportORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_SID=oracle1
exportPATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:/sbin
source .profile

./runInstall

1、安装补丁包过程中从网络上搜来的系统补丁包内容不一,心里一直不确定。

通过查看官方文档确定补丁包

2、安装过程中有一个警告三个问题



查看问题报错信息

警告内容为内核参数设置不正确,根据提示修改内核参数即可

3个问题都是因为oracle不支持操作系统版本将版本号改为oracle支持版本问题解决。


原创粉丝点击