您好,登录后才能下订单哦!
1.修改主机名:
# sed -i "s/HOSTNAME=localhost.localdomain/HOSTNAME=oracledb/" /etc/sysconfig/network
# hostname oracledb
2.添加解析主机名记录
# vi /etc/hosts
192.168.1.11 oracledb
3.安装依赖包
# yum -y install glibc* gcc* make* compat-db* libstdc* libXp* libXtst* compat-libstdc++*
4.添加安装用户oracle
# groupadd oinstall
# groupadd dba
# useradd -g oinstall -G dba oracle
5.设置oracle用户密码
# passwd oracle
6.修改oracle的环境变量在最后添加
# vi /home/oracle/.bash_profile
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=$ORACLE_BASE/112
export ORACLE_SID=orcl
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$PATH:$ORACLE_HOME/bin
7.修改内核参数文件
# vi /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
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
8.使修改生效
# sysctl -p
9.添加认证模块,在后面添加一行
# vim /etc/pam.d/login
session required pam_limits.so
10.在全局变量文件中添加
# vim /etc/profile
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/bash" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
# source /etc/profile
11.创建相应目录并授权oracle
# mkdir -p /opt/oracle/112
# mkdir -p /opt/oralnventory
# mkdir -p /opt/oradata
# chown -R oracle:oinstall oralnventory/
# chown -R oracle:dba oracle/
12.切换到oracle
# xhost +
# su - oracle
13.执行./runInstaller 开始图形安装
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。