Installing Oracle 11HG RAC parameters under CentOS 6.4

Source: Internet
Author: User
Tags gpg

Cat/etc/security/limits.conf <<eof

Grid Soft Nproc 2047
Grid hard Nproc 16384
Grid Soft Nofile 1024
Grid hard Nofile 65536
Oracle Soft Nproc 2047
Oracle Hard Nproc 16384
Oracle Soft Nofile 1024
Oracle Hard Nofile 65536

Eof


echo "Session required/lib64/security/pam_limits.so" >>/etc/pam.d/login

echo "Options Hangcheck-timer hangcheck_tick=30 hangcheck_margin=180 # # # # # # # Check Hangcheck successful launch" >>/etc/modprobe.d/m Odprobe.conf


/sbin/modprobe Hangcheck_timer # # # Start Hangcheck

#grep Hangcheck/var/log/messages | Tail-2

disabling/etc/selinux/config and Iptables


Cat/ect/profile <<eof

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

Eof



# # # #Oracle服务器上安装kmod-oracleasm file:
cd/etc/yum.repos.d/
wget Http://public-yum.oracle.com/public-yum-ol6.repo
wget Http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6-O/etc/pki/rpm-gpg/rpm-gpg-key-oracle

Yum Install Kmod-oracleasm


# # #oracle Yum Installation:
Yum install-y binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel glibc \
Glibc-common glibc-devel gcc gcc-c++ libaio-devel \
Libaio libaio-devel libgcc libstdc++ libstdc++-devel make sysstat UnixODBC unixodbc-devel \
Pdksh Numactl-devel Glibc-headers


GROUPADD-G 501 Oinstall
GROUPADD-G 502 DBA
GROUPADD-G 504 Asmadmin
GROUPADD-G 506 ASMDBA
GROUPADD-G 507 Asmoper


Useradd-u 1000-g oinstall-g Dba,asmdba Oracle
Useradd-u 1006-g oinstall-g asmadmin,asmdba,asmoper grid

Mkdir-p/u01/app
Chown-r grid:oinstall/u01/app/
Chmod-r 775/u01/app/


Mkdir-p/u01/app/orainventory
Chown-r grid:oinstall/u01/app/orainventory
Chmod-r 775/u01/app/orainventory

Mkdir-p/u01/app/grid
Mkdir-p/u01/app/oracle

Chown-r Grid:oinstall/u01/app/grid
Chown-r oracle:oinstall/u01/app/oracle

Chmod-r 775/u01/app/oracle
Chmod-r 775/u01/app/grid

# # #asmlib Created:

/etc/init.d/oracleasm start
/etc/init.d/oracleasm Enable


/etc/init.d/oracleasm Configure
Default user to own the driver interface []: Grid
Default Group to own the driver interface []: Asmadmin
Start Oracle ASM Library driver on Boot (y/n) [n]: Y
Scan for Oracle ASM disks on Boot (y/n) [y]: Y
Writing Oracle ASM Library driver Configuration:done
Initializing the Oracle asmlib driver: [OK]
Scanning the system for Oracle asmlib disks: [OK]

[Email protected] modprobe.d]#.
Marking disk "Ocrvdisk1" as an ASM disk: [OK]
[Email protected] modprobe.d]#/etc/init.d/oracleasm createdisk ocrvdisk2/dev/sdb1
Marking disk "Ocrvdisk2" as an ASM disk: [OK]
[Email protected] modprobe.d]#/etc/init.d/oracleasm createdisk ocrvdisk3/dev/sde1
Marking disk "Ocrvdisk3" as an ASM disk: [OK]
[Email protected] modprobe.d]#/etc/init.d/oracleasm createdisk dbfile1/dev/sdd1
Marking disk "Dbfile1" as an ASM disk: [OK]
[Email protected] modprobe.d]#/etc/init.d/oracleasm createdisk fra1/dev/sdf1
Marking disk "Fra1" as an ASM disk: [OK]


# # #停止ntpd
Service NTPD Stop
Mv/etc/ntp.conf/etc/ntp.conf.bak
Chkconfig ntpd off


Cat>>/home/grid/.bash_profile<< EOF

Export tmp=/tmp;
Export tmpdir= $TMP;
Export ORACLE_HOSTNAME=RAC1;
Export ORACLE_SID=+ASM1;
Export Oracle_base=/u01/app/grid;
Export Oracle_home=/u01/app/11.2.0/grid;
Export nls_date_format= "Yy-mm-dd HH24:MI:SS";
Export Oracle_term=xterm
Export tns_admin= $ORACLE _home/network/admin

Export Path=/usr/sbin: $PATH
Export path= $ORACLE _home/bin: $PATH;
Export Nls_lang=american_america. Al32utf8;
Export Ld_library_path= $ORACLE _home/lib:/lib:/usr/lib
Export classpath= $ORACLE _home/jre: $ORACLE _home/jlib: $ORACLE _home/rdbms/jlib
Export Editor=vi
Export Lang=en_us
Umask 022

Eof


Cat>>/home/oracle/.bash_profile<< EOF

Export tmp=/tmp;
Export tmpdir= $TMP;
Export ORACLE_HOSTNAME=RAC1;
Export oracle_base=/u01/app/oracle;
Export oracle_home=/u01/app/oracle/product/11.2.0/db_1;
Export Oracle_path=/u01/app/common/oracle/sql;
Export oracle_unqname=racdb;
Export ORACLE_SID=RACDB1;
Export oracle_term=xterm;
Export Path=/usr/sbin: $PATH;
Export path= $ORACLE _home/bin: $PATH;
Export ld_library_path= $ORACLE _home/lib:/lib:/usr/lib;
Export classpath= $ORACLE _home/jre: $ORACLE _home/jlib: $ORACLE _home/rdbms/jlib;
Export nls_date_format= "Yy-mm-dd HH24:MI:SS";
Export Nls_lang=american_america. ZHS16GBK;
Export Lang=en_us

Eof


# # #创建软件安装目录:
Mkdir-p/u01/app/11.2.0/grid
Chown-r grid:oinstall/u01
Mkdir-p/u01/app/oracle
Chown-r oracle:oinstall/u01/app/oracle


# # #检查节点之间是否一致性:
./runcluvfy.sh Stage-pre Crsinst-n Rac1,rac2-fixup-verbose



# # # IP San HDD Detection:
Iscsiadm-m discovery-t sendtargets-p Ip:port

Installing Oracle 11HG RAC parameters under CentOS 6.4

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.