码迷,mamicode.com
首页 > 数据库 > 详细

Oracle Database 11g 部署实录

时间:2018-03-06 23:27:25      阅读:327      评论:0      收藏:0      [点我收藏+]

标签:oracle

[root@king01 ~]# yum -y install \

binutils \

elfutils-libelf \

elfutils-libelf-devel \

elfutils-libelf-devel-static \

gcc \

gcc-c++ \

glibc \

glibc-common \

glibc-devel \

glibc-headers \

ksh \

libaio \

libaio-devel \

libstdc++ \

libstdc++-devel \

make \

sysstat \

unixODBC \

unixODBC-devel  


[root@king01 ~]# yum -y install compat-libstdc++*


[root@king01 ~]# rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' binutils \

elfutils-libelf-devel \

elfutils-libelf-devel-static \

gcc \

gcc-c++ \

glibc \

glibc-common \

glibc-devel \

glibc-headers \

kernel-headers \

ksh \

libaio \

libaio-devel \

libgcc \

libgomp \

libstdc++ \

libstdc++-devel \

make \

sysstat \

unixODBC \

unixODBC-devel


[root@king01 ~]# rpm -qa 'compat-libstdc++*'  


[root@king01 ~]# groupadd oinstall

[root@king01 ~]# groupadd dba

[root@king01 ~]# useradd -g oinstall -G dba oracle

[root@king01 ~]# echo oracle | passwd --stdin oracle


[root@king01 ~]# cat >> /etc/sysctl.conf <<EOF

kernel.shmmni = 4096

fs.aio-max-nr = 1048576

fs.file-max = 6815744

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

EOF


[root@king01 ~]# sysctl -p


[root@king01 ~]# cat >> /etc/security/limits.conf <<EOF

oracle              soft    nproc   2047

oracle              hard    nproc   16384

oracle              soft    nofile  1024

oracle              hard    nofile  65536

oracle              soft    stack   10240

EOF


[root@king01 ~]# cat >> /etc/pam.d/login <<EOF

session    required     pam_limits.so

EOF


[root@king01 ~]# cat >> /etc/profile <<EOF

if [ $USER = "oracle" ]; then

        if [ $SHELL = "/bin/ksh" ]; then

              ulimit -p 16384

              ulimit -n 65536

        else

              ulimit -u 16384 -n 65536

        fi

fi

EOF


[root@king01 ~]# mkdir -p /u01/app/oracle

[root@king01 ~]# chown -R oracle:oinstall /u01/app

[root@king01 ~]# chmod -R 775 /u01/app


[root@king01 ~]# su - oracle

[oracle@king01 ~]$ vi .bash_profile 

export ORACLE_SID=king

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1

export PATH=$ORACLE_HOME/bin:$PATH

export DISPLAY=192.168.1.99:0

export NLS_LANG=AMERICAN_AMERICA.UTF8

stty erase ^H


[oracle@king01 ~]$ source .bash_profile


[oracle@king01 ~]$ unzip p13390677_112040_Linux-x86-64_1of7.zip 

[oracle@king01 ~]$ unzip p13390677_112040_Linux-x86-64_2of7.zip

[oracle@king01 ~]$ cd database/stage/cvu/cv/admin

[oracle@king01 admin]$ vi cvu_config

change CV_ASSUME_DISTID=OEL4 to CV_ASSUME_DISTID=OEL6


[oracle@king01 ~]$ cd database

[oracle@king01 database]$ ./runInstaller



[root@king01 ~]# /u01/app/oraInventory/orainstRoot.sh

[root@king01 ~]# /u01/app/database/11.2.0.4/product/root.sh



Oracle Database 11g 部署实录

标签:oracle

原文地址:http://blog.51cto.com/13598811/2083643

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!