Installing Oracle 12c RAC on Linux 6

Source: Internet
Author: User
Tags chmod iptables

1. Modify the Hosts file

Vi/etc/sysconfig/network-scripts/ifcfg-eth0

#Public

192.168.1.240 Node1

192.168.1.241 Node2

#Virtual

192.168.1.242 NODE1-VIP

192.168.1.243 NODE2-VIP

#Private

192.168.0.240 Node1-priv

192.168.0.241 Node2-priv

#SCAN

192.168.1.245 Node-cluster Cluster-scan

2. Turn off the firewall

Service Iptables Stop

Chkconfig iptables off

Setenforce 0

3. Configure SELinux to

Vi/etc/selinux/config

Selinux=permissive

4. Add a group

Groupadd-g 54321 Oinstall

Groupadd-g 54322 dba

Groupadd-g 54323 Oper

Groupadd-g 54325 ASMDBA

Groupadd-g 54328 Asmadmin

Groupadd-g 54329 Asmoper

5. Add Users

Useradd-u 54321-g oinstall-g Dba,oper,asmdba Oracle

Useradd-u 54322-g oinstall-g dba,asmdba,asmadmin,asmoper grid

passwd Oracle

passwd grid

6. Configure Shell limits for Oracle users

Vi/etc/security/limits.confs

Add content

# Grid User

Grid Soft Nofile 2047

Grid hard Nofile 65536

Grid Soft Nproc 16384

Grid hard Nproc 16384

Grid Soft Stack 10240

Grid Hard Stack 32768

Grid hard Memlock 134217728

Grid Soft Memlock 134217728

# Oracle User

Oracle Soft Nofile 2047

Oracle Hard Nofile 65536

Oracle Soft Nproc 16384

Oracle Hard Nproc 16384

Oracle Soft Stack 10240

Oracle Hard Stack 32768

Oracle Hard Memlock 134217728

Oracle Soft Memlock 134217728

7. Create a New installation directory

Mkdir-p/u01/app/12.1.0/grid

Mkdir-p/u01/app/grid

Mkdir-p/u01/app/oracle

Chown-r grid:oinstall/u01

Chown oracle:oinstall/u01/app/oracle

Chmod-r 775/u01/

8. Edit Vi/etc/pam.d/login

Session required/lib64/security/pam_limits.so

Session Required Pam_limits.so

9. Delete NTP

/sbin/service ntpd Stop

Chkconfig ntpd off

mv/etc/ntp.conf/etc/ntp.conf.org

Rm/var/run/ntpd.pid

/etc/init.d/avahi-daemon stop

Chkconfig Avahi-daemon off

10. Configure Environment variables

VI. bash_profile

#grid用户下

ORACLE_SID=+ASM1; Export Oracle_sid

Oracle_base=/u01/app/grid; Export Oracle_base

Oracle_home=/u01/app/12.1.0/grid; Export Oracle_home

Oracle_term=xterm; Export Oracle_term

Path= $ORACLE _home/bin: $PATH; Export PATH

Ld_library_path= $ORACLE _home/lib:/lib:/usr/lib:/usr/local/lib; Export Ld_library_path

Classpath= $ORACLE _home/jre: $ORACLE _home/jlib; Export CLASSPATH

Export Temp=/tmp

Export Tmpdir=/tmp

#oracle

ORACLE_SID=SALMANDB1; Export Oracle_sid

Oracle_base=/u01/app/oracle; Export Oracle_base

Oracle_home=/u01/app/oracle/product/12.1.0/dbhome_1; Export Oracle_home

Oracle_term=xterm; Export Oracle_term

Path= $ORACLE _home/bin: $PATH; Export PATH

Ld_library_path= $ORACLE _home/lib:/lib:/usr/lib:/usr/local/lib; Export Ld_library_path

Classpath= $ORACLE _home/jre: $ORACLE _home/jlib; Export CLASSPATH

Export Temp=/tmp

Export Tmpdir=/tmp

11. Configuring Storage ASM

For i in B c d E F g;

Do

echo "kernel==\" sd*\ ", bus==\" scsi\ ", program==\"/sbin/scsi_id--whitelisted--replace-whitespace--device=/dev/\$ Name\ ", result==\" '/sbin/scsi_id--whitelisted--replace-whitespace--device=/dev/sd$i ' \ ", NAME=\" asm-disk$i\ ", Owner=\ "grid\", group=\ "asmadmin\", mode=\ "0660\" ">>/etc/udev/rules.d/99-oracle-asmdevices.rules

Done

Restart Service/sbin/start_udev

Then edit: vi/etc/rc.d/rc.local

Chown-h GRID:ASMADMIN/DEV/ASM-DISKB

Chown-h GRID;ASMADMIN/DEV/ASM-DISKC

Chown-h GRID:ASMADMIN/DEV/ASM-DISKD

Chown-h Grid:asmadmin/dev/asm-diske

Chown-h GRID:ASMADMIN/DEV/ASM-DISKF

Chown-h grid:asmadmin/dev/asm-diskg

chmod 660/DEV/ASM-DISKB

chmod 660/DEV/ASM-DISKC

chmod 660/DEV/ASM-DISKD

chmod 660/dev/asm-diske

chmod 660/DEV/ASM-DISKF

chmod 660/dev/asm-diskg


Forgot to edit the kernel parameters vi/etc/sysctl.conf

Fs.file-max = 6815744

Kernel.sem = 250 32000 100 128

Kernel.shmmni = 4096

Kernel.shmall = 4294967296

Kernel.shmmax = 4398046511104

Kernel.panic_on_oops = 1

Net.core.rmem_default = 262144

Net.core.rmem_max = 4194304

Net.core.wmem_default = 262144

Net.core.wmem_max = 1048576

FS.AIO-MAX-NR = 1048576

Net.ipv4.ip_local_port_range = 9000 65500




This article is from the "vmware/oracle" blog, make sure to keep this source http://123124432.blog.51cto.com/12616119/1904443

Installing Oracle 12c RAC on Linux 6

Related Article

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.