RHEL6.4_64安装单实例Oracle 12cR1

RHEL6.4_64安装单实例Oracle 12cR1

预安装

安装依赖包

yum -y install libXp.x86_64 libXp.i686 elfutils-libelf.x86_64 elfutils-libelf-devel.x86_64 compat-db.i686 compat-db.x86_64 libstdc++-devel.i686 libstdc++-devel.x86_64 openmotif22.i686 openmotif22.x86_64 libaio-devel.i686 libaio-devel.x86_64 control-center.x86_64 make.x86_64 gcc.x86_64 sysstat.x86_64 libaio.i686 gcc-c++.x86_64 compat-libf2c-34.x86_64 compat-libf2c-34.i686 unixODBC.i686 unixODBC.x86_64 unixODBC-devel.i686 unixODBC-devel.x86_64  libgomp.x86_64 compat-libstdc++-33.x86_64 compat-libstdc++-33.i686 glibc.i686 glibc.x86_64 glibc-common.x86_64 glibc-devel.i686 glibc-devel.x86_64 glibc-headers.x86_64 libXmu.i686 libXmu.x86_64 libgcc.i686 libgcc.x86_64 kernel-headers.x86_64 libstdc++.i686 binutils.x86_64 libstdc++.x86_64 compat-libcap1.x86_64 ompat-libcap1.i686 smartmontools

创建用户和配置环境变量

groupadd -g 1001 dba && groupadd -g 1002 oinstall && useradd -u 1001 -g oinstall -G dba oracle && passwd oracle && id nobody && su - oracle

配值环境变量

su - oracle

在 ~/.bash_profile的最后加入

ORACLE_BASE=/oracle
ORACLE_HOME=$ORACLE_BASE/10.2/db_1
ORACLE_SID=SEM
PATH=$ORACLE_HOME/bin:$PATH

export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH
export NLS_LANG='SIMPLIFIED CHINESE_CHINA.UTF8'
export LANG=zh_CN.UTF8

 


配置文件打开句柄,shell中运行如下内容:

cat >> /etc/security/limits.conf << EOF
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
EOF


配置kernel参数,shell中运行如下:

cat >> /etc/sysctl.conf << EOF
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
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=1048586     
EOF

配置的内核参数生效
sysctl -p

 


编辑/etc/profile文件,末尾加入如下内容:
if [ $USER = "oracle" ]; then
    if [ $SHELL = "/bin/ksh" ]; then
        ulimit -p 16384
        ulimit -n 65536
    else
    ulimit -u 16384 -n 65536
    fi
fi

 


解压数据库安装程序


unzip linuxamd64_12c_database_1of2.zip


unzip linuxamd64_12c_database_2of2.zip

 


设置display变量客户端起Xmanage

客户端在win上安装Xmanage

然后双击:Xmanager - Passive

然后系统右下角托盘中出现Xmanage图标,鼠标放上去会显示出来Xmanage n [:n.n]

然后在oracle的安装机器上设置DISPLAY变量如下

export DISPLAY=客户端IP:n.n

然后运行./runInstaller

相关阅读:

相关推荐