操作系统oracle linux 6.5

1、建用户和组

roupadd -g 54321 oinstall

groupadd -g 54321 oinstall

groupadd -g 54322 dba

groupadd -g 54323 oper

useradd -u 54321 -g oinstall -G dba oracle oper

passwd oracle


2、建目录授权

mkdir -p /u01/app

chown oracle.oinstall /u01/app/

chmod 775 /u01/app


3、安装相关依赖包

yum -y install binutils elfutils-libelf elfutils-libelf-devel elfutils-libelf-devel-static gcc gcc-c++ glibc glibc-common glibc-devel kernel-headers ksh libaio libaio-devel libgcc libgomp libstdc++ libstdc++-devel make numactl-devel sysstat unixODBC unixODBC-devel pdksh compat-libcap1 libXext* libXtst* libX11* libXau* libxcb* libXi* nscd* libXp*  xorg*  xterm*  unzip* readline* compat


4、修改系统限制

 vi /etc/security/limits.conf

oracle soft nproc 4096

oracle hard nproc 65536

oracle soft nofile 4096

oracle hard nofile 65536

oracle soft stack 10240

oracle hard stack 32768


5、配置xserver

export DISPLAY=192.40.0.213:0.0

xhost + 192.40.0.213


6、解压安装

unzip linuxamd64_12102_database_1of2.zip

unzip linuxamd64_12102_database_2of2.zip

cd database  && ./runInstaller


7、环境变量

vi /home/oracle/.bashrc

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/12.1.0/dbhome_1

export ORACLE_SID=orcl

PATH=$ORACLE_HOME/bin:$PATH

export PATH