真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

centos6.4下安裝oracle11hgrac參數(shù)

cat /etc/security/limits.conf <

專注于為中小企業(yè)提供網(wǎng)站制作、成都網(wǎng)站制作服務(wù),電腦端+手機(jī)端+微信端的三站合一,更高效的管理,為中小企業(yè)丹徒免費(fèi)做網(wǎng)站提供優(yōu)質(zhì)的服務(wù)。我們立足成都,凝聚了一批互聯(lián)網(wǎng)行業(yè)人才,有力地推動了1000+企業(yè)的穩(wěn)健成長,幫助中小企業(yè)通過網(wǎng)站建設(shè)實(shí)現(xiàn)規(guī)模擴(kuò)充和轉(zhuǎn)變。

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    ###  檢查hangcheck是否成功啟動" >> /etc/modprobe.d/modprobe.conf

/sbin/modprobe hangcheck_timer    ### 啟動hangcheck

#grep hangcheck /var/log/messages | tail -2 

禁用 /etc/selinux/config 和iptables

cat /ect/profile <

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服務(wù)器上安裝kmod-oracleasm文件:
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 安裝:
 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 創(chuàng)建:

/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  ]

[root@rac2 modprobe.d]# .
Marking disk "ocrvdisk1" as an ASM disk: [  OK  ]
[root@rac2 modprobe.d]# /etc/init.d/oracleasm createdisk ocrvdisk2 /dev/sdb1
Marking disk "ocrvdisk2" as an ASM disk: [  OK  ]
[root@rac2 modprobe.d]# /etc/init.d/oracleasm createdisk ocrvdisk3 /dev/sde1
Marking disk "ocrvdisk3" as an ASM disk: [  OK  ]
[root@rac2 modprobe.d]# /etc/init.d/oracleasm createdisk dbfile1 /dev/sdd1
Marking disk "dbfile1" as an ASM disk: [  OK  ]
[root@rac2 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

###創(chuàng)建軟件安裝目錄:
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

###檢查節(jié)點(diǎn)之間是否一致性:
./runcluvfy.sh stage -pre crsinst -n rac1,rac2 -fixup -verbose

### IP SAN硬盤偵測:
iscsiadm -m discovery -t sendtargets -p ip:port

附件:http://down.51cto.com/data/2367361

名稱欄目:centos6.4下安裝oracle11hgrac參數(shù)
網(wǎng)頁地址:http://weahome.cn/article/iesiph.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部