Installation Oracle11gR2 RAC One Node on SuSE Linux Enterprise Server 11SP2 ( 一 )

1、部署环境

操作系统:SuSE Linux Enterprise Server 11SP2

数据库:Oracle 11gR2(112040)

共享存储:

设备名 大小
/dev/sdb 2g
/dev/sdc 10g
/dev/sdd 20g

2、 创建账户
 groupadd -g 1000 oinstall  
 groupadd -g 1200 asmadmin 
 groupadd -g 1201 asmdba  
 groupadd -g 1202 asmoper  
 useradd -m -u 1100 -g oinstall -G asmadmin,asmdba,asmoper -d /home/grid -s /bin/bash  grid 
 groupadd -g 1300 dba 
 groupadd -g 1301 oper 
 useradd -m -u 1101 -g oinstall -G dba,oper,asmdba -d /home/oracle -s /bin/bash oracle 
 mkdir -p /u01/app/grid 
 mkdir -p /u01/app/11.2.0/grid 
 chown -R grid:oinstall /u01 
 mkdir -p /u01/app/oracle 
 chown oracle:oinstall /u01/app/oracle 
 chmod -R 775 /u01 
 passwd oracle 
3、配置/etc/hosts文件
192.168.1.30     node1 
192.168.1.50     node1-vip 
10.10.10.30      node1-priv 
192.168.1.31     node2 
192.168.1.51     node2-vip 
10.10.10.31      node2-priv 
192.168.1.41     my-cluster my-cluster-scan
4、安装所需的rpm包
#rpm -q binutils gcc gcc-32bit gcc-c++ glibc glibc-32bit glibc-devel glibc-devel-32bit ksh libaio libaio-32bit libaio-devel libaio-devel-32bit libstdc++33 libstdc++33-32bit libstdc++43 libstdc++43-32bit libstdc++43-devel libstdc++43-devel-32bit libgcc43 libstdc++-devel make sysstat unixODBC unixODBC-devel unixODBC-32bit unixODBC-devel-32bit libcap1 
binutils-2.23.1-0.17.18 
gcc-4.3-62.198 
gcc-32bit-4.3-62.198 
gcc-c++-4.3-62.198 
glibc-2.11.3-17.54.1 
glibc-32bit-2.11.3-17.54.1 
glibc-devel-2.11.3-17.54.1 
glibc-devel-32bit-2.11.3-17.54.1 
ksh-93u-0.18.1 
libaio-0.3.109-0.1.46 
libaio-32bit-0.3.109-0.1.46 
libaio-devel-0.3.109-0.1.46 
libaio-devel-32bit-0.3.109-0.1.46 
libstdc++33-3.3.3-11.9 
libstdc++33-32bit-3.3.3-11.9 
libstdc++43-4.6.9-0.11.38 
libstdc++43-32bit-4.6.9-0.11.38 
libstdc++43-devel-4.3.4_20091019-0.37.30 
libstdc++43-devel-32bit-4.3.4_20091019-0.37.30 
libgcc43-4.6.9-0.11.38 
libstdc++-devel-4.3-62.198 
make-3.81-128.20 
sysstat-8.1.5-7.45.24 
unixODBC-2.2.12-198.17 
unixODBC-devel-2.2.12-198.17 
unixODBC-32bit-2.2.12-198.17 
unixODBC-devel-32bit-2.2.12-198.17 
libcap1-1.10-6.10 
5、修改内核参数
/etc/sysctl.conf
net.ipv4.icmp_echo_ignore_broadcasts = 1 
net.ipv4.conf.all.rp_filter = 1 
fs.inotify.max_user_watches = 65536 
net.ipv4.conf.default.promote_secondaries = 1 
net.ipv4.conf.all.promote_secondaries = 1 
fs.aio-max-nr = 1048576 
fs.file-max = 6815744 
kernel.shmall = 2097152 
kernel.shmmax = 536870912 
kernel.shmmni = 4096 
kernel.sem = 250 32000 100 128 
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 
vm.hugetlb_shm_group = 1000

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

vi /etc/pam.d/login
session required pam_limits.so
6、禁用NTP服务
service ntp stop
chkconfig ntp off 
mv /etc/ntp.conf /etc/ntp.conf.bak

7、grid用户环境变量
节点1
ORACLE_SID=+ASM1; export ORACLE_SID 
ORACLE_BASE=/u01/app/grid; export ORACLE_BASE 
ORACLE_HOME=/u01/app/11.2.0/grid; export ORACLE_HOME 
ORACLE_PATH=/u01/app/oracle/common/oracle/sql; export ORACLE_PATH 
ORACLE_TERM=xterm; export ORACLE_TERM 
 
TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN 
ORA_NLS11=$ORACLE_HOME/nls/data; export ORA_NLS11 
NLS_LANG=AMERICAN_AMERICA.ZHS16GBK; export NLS_LANG 
 
PATH=${PATH}:$HOME/bin:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch 
PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin 
PATH=${PATH}:/u01/app/common/oracle/bin 
export PATH 
 
LD_LIBRARY_PATH=$ORACLE_HOME/lib 
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/lib 
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib 
export LD_LIBRARY_PATH 
 
CLASSPATH=$ORACLE_HOME/JRE 
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib 
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib 
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlib 
export CLASSPATH 
export TEMP=/tmp 
export TMPDIR=/tmp 
 
if [ $USER = "oracle" ] || [ $USER = "grid" ]; then 
    if [ $SHELL = "/bin/ksh" ]; then 
        ulimit -p 16384 
        ulimit -n 65536 
    else 
        ulimit -u 16384 -n 65536 
    fi 
        umask 022 
fi

节点2
ORACLE_SID=+ASM2; export ORACLE_SID 
ORACLE_BASE=/u01/app/grid; export ORACLE_BASE 
ORACLE_HOME=/u01/app/11.2.0/grid; export ORACLE_HOME 
ORACLE_PATH=/u01/app/oracle/common/oracle/sql; export ORACLE_PATH 
ORACLE_TERM=xterm; export ORACLE_TERM 
 
TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN 
ORA_NLS11=$ORACLE_HOME/nls/data; export ORA_NLS11 
NLS_LANG=AMERICAN_AMERICA.ZHS16GBK; export NLS_LANG 
 
PATH=${PATH}:$HOME/bin:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch 
PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin 
PATH=${PATH}:/u01/app/common/oracle/bin 
export PATH 
 
LD_LIBRARY_PATH=$ORACLE_HOME/lib 
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/lib 
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib 
export LD_LIBRARY_PATH 
 
CLASSPATH=$ORACLE_HOME/JRE 
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib 
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib 
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlib 
export CLASSPATH 
export TEMP=/tmp 
export TMPDIR=/tmp 
 
if [ $USER = "oracle" ] || [ $USER = "grid" ]; then 
    if [ $SHELL = "/bin/ksh" ]; then 
        ulimit -p 16384 
        ulimit -n 65536 
    else 
        ulimit -u 16384 -n 65536 
    fi 
        umask 022 
fi

8、oracle用户环境变量

节点1
ORACLE_SID=ORACLE_1; export ORACLE_SID  
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE 
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOME 
ORACLE_PATH=/u01/app/common/oracle/sql; export ORACLE_PATH 
ORACLE_TERM=xterm; export ORACLE_TERM 
 
TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN 
ORA_NLS11=$ORACLE_HOME/nls/data; export ORA_NLS11 
NLS_LANG=AMERICAN_AMERICA.ZHS16GBK; export NLS_LANG 
 
PATH=${PATH}:$HOME/bin:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch 
PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin 
PATH=${PATH}:/u01/app/common/oracle/bin 
export PATH 
 
LD_LIBRARY_PATH=$ORACLE_HOME/lib 
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/lib 
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib 
export LD_LIBRARY_PATH 
 
CLASSPATH=$ORACLE_HOME/JRE 
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib 
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib 
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlib 
export CLASSPATH 
 
export TEMP=/tmp 
export TMPDIR=/tmp 
 
if [ $USER = "oracle" ] || [ $USER = "grid" ]; then 
    if [ $SHELL = "/bin/ksh" ]; then 
        ulimit -p 16384 
        ulimit -n 65536 
    else 
        ulimit -u 16384 -n 65536 
    fi 
        umask 022 
fi

节点2
ORACLE_SID=ORACLE_2; export ORACLE_SID  
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE 
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOME 
ORACLE_PATH=/u01/app/common/oracle/sql; export ORACLE_PATH 
ORACLE_TERM=xterm; export ORACLE_TERM 
 
TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN 
ORA_NLS11=$ORACLE_HOME/nls/data; export ORA_NLS11 
NLS_LANG=AMERICAN_AMERICA.ZHS16GBK; export NLS_LANG 
 
PATH=${PATH}:$HOME/bin:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch 
PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin 
PATH=${PATH}:/u01/app/common/oracle/bin 
export PATH 
 
LD_LIBRARY_PATH=$ORACLE_HOME/lib 
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/lib 
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib 
export LD_LIBRARY_PATH 
 
CLASSPATH=$ORACLE_HOME/JRE 
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib 
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib 
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlib 
export CLASSPATH 
 
export TEMP=/tmp 
export TMPDIR=/tmp 
 
if [ $USER = "oracle" ] || [ $USER = "grid" ]; then 
    if [ $SHELL = "/bin/ksh" ]; then 
        ulimit -p 16384 
        ulimit -n 65536 
    else 
        ulimit -u 16384 -n 65536 
    fi 
        umask 022 
fi

9、配置asm磁盘

SUSE Linux下UDEV配置ASMdisk参考http://dreamsanqin.blog.51cto.com/845412/1653889

时间: 2024-11-11 08:04:43

Installation Oracle11gR2 RAC One Node on SuSE Linux Enterprise Server 11SP2 ( 一 )的相关文章

windows安装SUSE Linux Enterprise Server 12

一:打开"开发人员模式" 点击开始菜单按钮,选择"设置" 在设置中选择"更新和安全" 在菜单中选择"针对开发人员",在三个选项中,选中"开发人员模式" 在弹出的警告框中点击"是" 这样开发人员模式就打开了 二:安装并设置账号 打开"Windows应用商店应用" 下载SUSE Linux Enterprise Server 12 启动应用SUSE Linux Enter

Welcome Docker to SUSE Linux Enterprise Server【水平有限,中英对比,求纠错】

  原文:Welcome Docker to SUSE Linux Enterprise Server Lightweight virtualization is a hot topic these days. Also called "operating system-level virtualization," it allows you to run multiple applications or systems on one host without a hypervisor

Welcome Docker to SUSE Linux Enterprise Server【水平有限,中英对照,求纠错】

  原文:Welcome Docker to SUSE Linux Enterprise Server Lightweight virtualization is a hot topic these days. Also called "operating system-level virtualization," it allows you to run multiple applications or systems on one host without a hypervisor

SUSE Linux Enterprise Server (suse 11 sp2)设置IP、网关、DNS

SUSE Linux Enterprise Server设置IP.网关.DNS   1. 设置ip地址 vi /etc/sysconfig/network/ifcfg-eth0 #编辑配置文件 BOOTPROTO='static' #静态IP BROADCAST='192.168.21.255' #广播地址 IPADDR='192.168.21.172' #IP地址 NETMASK='255.255.255.0' #子网掩码 NETWORK='192.168.21.0' #网络地址 STARTM

安装MySQL -- SuSE Linux Enterprise Server 11 SP3

1.准备工作从MySQL官网上分别下载mysql服务器端于客户端包: MySQL-server-5.5.49-1.sles11.x86.rpm MySQL-client-5.5.49-1.sles11.x86_64.rpm 2.检测系统是否安装MySQL #rpm -qa | grep -i mysql若已安装过,会出现:MySQL-server-5.0.22-0.i386MySQL-client-5.0.22-0.i386那么输入以下命令删除它:#rpm -ev MySQL-server-5.

SUSE Linux Enterprise Server 设置IP地址、网关、DNS

说明: ip:192.168.21.172 子网掩码:255.255.255.0 网关:192.168.21.2 dns:8.8.8.8 8.8.4.4 1.设置ip地址 vi /etc/sysconfig/network/ifcfg-eth0   #编辑配置文件 BOOTPROTO='static'   #静态IP BROADCAST='192.168.21.255'   #广播地址 IPADDR='192.168.21.172'   #IP地址 NETMASK='255.255.255.0'

使用 Visual Studio 部署 .NET Core 应用 ——.Net Core 部署到SUSE Linux Enterprise Server 12 SP2 64 位(GNOME 版本3.20.2)

SUSE Linux安装 apache 命令:sudo zypper in apache 设置apache 服务可用 命令:sudo systemctl enable apache2.service启用apache 服务sudo systemctl start apache2.service 如果出现 403错误,是因为没有index.html初始页的原因,添加一个即可.备注:添加文件需要权限,所以通过 命令 sudo chmod a+w /srv/www/htdocs/ 授权,这样就可以添加i

[Linux 使用(1)] SUSE Linux Enterprise Server 下虚拟机ip设置

1.找到需要设置的地方 2.设置静态ip 下一步 3.编辑DNS 4.设置默认网关 5.查看ip 6.本机测试是否能够ping通

SUSE Linux Enterprise Server 11 软件源

1.添加软件源 zypper ar http://ftp5.gwdg.de/pub/opensuse/discontinued/distribution/11.4/repo/oss oss zypper ar http://ftp5.gwdg.de/pub/opensuse/discontinued/distribution/11.4/repo/non-oss non-oss zypper ar http://ftp5.gwdg.de/pub/opensuse/discontinued/dist