CentOS7 oracle12c 安装

2021/7/11 19:10:04

本文主要是介绍CentOS7 oracle12c 安装,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

安装系统的时候选择 web的那个

系统装好后 补包

yum -y install binutils compat-libcap1 compat-libstdc++-33 compat-libstdc++-33*.i686 elfutils-libelf-devel gcc gcc-c++ gcc-c++glibc*.i686 glibc glibc-devel glibc-devel*.i686 ksh libgcc*.i686 libgcclibstdc++ libstdc++*.i686 libstdc++-devel libstdc++-devel*.i686 libaiolibaio*.i686 libaio-devel libaio-devel*.i686 make sysstat unixODBC unixODBC*.i686 unixODBC-devel unixODBC-devel*.i686 libXp

 yum groupinstall "GNOME Desktop"

yum install tigervnc-server*
groupadd oinstall -g 1000
cat /etc/passwd
groupadd oinstall -g 2000
groupadd dba -g 2001
groupadd oper -g 2002
useradd -g oinstall -G dba,oper oracle

 

修改内核参数vi /etc/sysctl.conf,添加:
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 4294967295
kernel.shmmni = 4096
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

改好后,使之生效:sysctl -p

 

改文件限制:vi /etc/security/limits.d/20-nproc.conf 添加:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240

 

oracle用户的  .bash_profile
ORACLE_BASE=/oracle/app

ORACLE_HOME=$ORACLE_BASE/product/12.2.0/dbhome_1

ORACLE_SID=orcl12c

export ORACLE_BASE ORACLE_HOME ORACLE_SID

PATH=$PATH:$HOME/.local/bin:$HOME/bin:$ORACLE_HOME/bin

id oracle

mkdir /oracle
chown oracle.oinstall /oracle/
su - oracle

启动vnc,然后就是开安装

 



这篇关于CentOS7 oracle12c 安装的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程