数据库
首页 > 数据库> > oracle(11.2.0.4)-RH7.4安装部署

oracle(11.2.0.4)-RH7.4安装部署

作者:互联网

服务器配置

1,防火墙配置

systemctl stop  firewalld____停止

systemctl disable firewalld____关闭开机自启

关闭系统selinux

2,修改/etc/hosts

ODB   172.10.8.132

3,修改系统限制

/etc/sysctl.conf 

#add for oracle
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.all.rp_filter = 1
fs.file-max = 6815744 #设置最大打开文件数
fs.aio-max-nr = 1048576
kernel.shmall = 2097152 #共享内存的总量,8G内存设置:2097152*4k/1024/1024
kernel.shmmax = 2147483648 #最大共享内存的段大小
kernel.shmmni = 4096 #整个系统共享内存端的最大数
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500 #可使用的IPv4端口范围
net.core.rmem_default = 262144
net.core.rmem_max= 4194304
net.core.wmem_default= 262144
net.core.wmem_max= 1048576


/etc/security/limits.conf

#add for oracle
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

 


3,安装包和依赖

(附本地Yum安装配置)

 

 /etc/yum.repos.d/media.repo 

[iso]
name=media
baseurl=file:///mnt/
gpgcheck=0
enabled=1

yum clean all

yum makecach

 

yum install gcc* gcc-* gcc-c++-* glibc-devle-* glibc-headers-* compat-libstdc* libstdc* elfutils-libelf-devel* libaio-devel* sysstat* unixODBC-* pdksh-* make ksh binutils -y

 

4,创建用户,目录,修改权限

 groupadd -g 3000 oinstall
 groupadd -g 3001 dba
 useradd -u 2000 -g oinstall -G dba -d /home/oracle -s /bin/bash -c "DB software Owner" oracle

uid=2000(oracle) gid=3000(oinstall) groups=3000(oinstall),3001(dba)

 

mkdir -p /u01/app/oracle
mkdir -p /u01/app/oracle/oradata
mkdir -p /u01/app/oraInventory
mkdir -p /software/

 

chown -R oracle:oinstall /u01/app/oracle/
chown -R oracle:oinstall /u01/app/oraInventory/
chown -R oracle:oinstall /software/

 

chown 755 /u01/

5,上传db安装包,解压到指定路径,配置用户环境变量

umask 022

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/dbhome_1

export ORACLE_SID=TEST

export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin

export LD_LIBRARY_PATH=$ORACLE_HOME/lib/:usr/lib

 

6,安装数据库软件(可选择静默安装以及图形化安装,此次使用静默安装)

修改静默安装rsp文件

 ./runInstaller -silent -responseFile /tmp/oracle/db_install.rsp

oracle.install.option=INSTALL_DB_SWONLY

ORACLE_HOSTNAME=ODB.example.com.cn

UNIX_GROUP_NAME=oinstall

INVENTORY_LOCATION=/u01/app/oraInventory

SELECTED_LANGUAGES=en,zh_CN

ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/dbhome_1

ORACLE_BASE=/u01/app/oracle

oracle.install.db.InstallEdition=EE

oracle.install.db.DBA_GROUP=dba

oracle.install.db.OPER_GROUP=oinstall

oracle.install.db.config.starterdb.SID=TEST

oracle.install.db.config.starterdb.characterSet=AL32UTF8

 

至此oracle软件安装完成

 

创建数据库实例(可选择静默以及图形化)

 

标签:oinstall,app,0.4,11.2,ORACLE,install,oracle,RH7.4,u01
来源: https://www.cnblogs.com/lift-dramas/p/15736605.html