Installation ORACLE11GR2 RAC one Node on SuSE Linux Enterprise Server 11sp2 (i)

Source: Internet
Author: User

1. Deployment environment

Operating system: SuSE Linux Enterprise Server 11sp2

Database: Oracle 11gR2 (112040)

Shared storage:

Device Name
Size
/dev/sdb
2g
/dev/sdc
10g
/dev/sdd
20g


2. Create an account
Groupadd-g Oinstall
Groupadd-g 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. Configuring the/etc/hosts file
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, the installation of the required RPM package
#rpm-Q binutils gcc gcc-32bit gcc-c++ glibc glibc-32bit glibc-devel glibc-devel-32bit ksh libaio libaio-32bit libaio-deve L 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. Modify Kernel Parameters
/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. Disable NTP service
Service NTP stop
Chkconfig NTP off
Mv/etc/ntp.conf/etc/ntp.conf.bak


7. Grid User Environment Variables
Node 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

Node 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 User Environment variables

Node 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

Node 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. Configuring ASM Disks

SUSE Linux under Udev configuration asmdisk Reference http://dreamsanqin.blog.51cto.com/845412/1653889

This article is from "Technical achievement dream!" "Blog, be sure to keep this provenance http://dreamsanqin.blog.51cto.com/845412/1653910

Installation ORACLE11GR2 RAC one Node on SuSE Linux Enterprise Server 11sp2 (i)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.