安装必需的组件
yum install -y binutils compat-gcc* compat-glibc* compat-libcap1 compat-libstd* compat-libstdc++-33 compat-libstdc++-33.i686 compat-libstdc++-33*.i686 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel glibc-devel.i686 glibc-devel*.i686 glibc-headers glibc.i686 glibc*.i686 ksh libaio libaio-devel libaio-devel.i686 libaio-devel*.i686 libaio.i686 libaio*.i686 libgcc libgcc.i686 libgcc*.i686 libstdc++ libstdc++-devel libstdc++-devel*.i686 libstdc++.i686 libstdc++*.i686 libXp make numactl sysstat unixODBC unixODBC-devel unixODBC-devel*.i686 unixODBC*.i686 glibc-static
创建安装oracle的用户和组
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
passwd oracle
编辑oracle用户环境变量 vi .bash_profile
export ORCLE_BASE=/data/oracle/
export ORACLE_HOME=/data/oracle/product/11.2.0/db_home/
export ORACLE_SID=orcl
export PATH=$PATH:$ORACLE_HOME/bin:.
关闭selinux
vi /etc/sysconfig/selinux
selinux=disabled
修改下系统名称
echo redhat-7 > /etc/redhat-release
修改/etc/hosts
vi /etc/hosts
127.0.0.1 redhat localhost localhost.localdomain localhost4 localhost4.localdomain4
vi /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152kernel.shmmax = 4294967295kernel.shmmni = 4096kernel.sem = 250 32000 100 128net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048576
vi /etc/security/limits.conf
oracle soft nofile 1024
oracle hard nofile 65536oracle soft nproc 2047oracle hard nproc 16384oracle soft stack 10240oracle hard stack 32768
ctxhx: $(CTXHXOBJ)# $(LINK_CTXHX) $(CTXHXOBJ) $(INSO_LINK)-static $(LINK_CTXHX) $(CTXHXOBJ) $(INSO_LINK) /usr/lib64/stdc.a$(MK_EMAGENT_NMECTL)更改为$(MK_EMAGENT_NMECTL) -lnnz11
启动数据库:
sqlplus / as sysdbastarup
启动监听:
lsnrctl start
启动oem:
emctl start dbconsole