暂无图片
暂无图片
暂无图片
暂无图片
暂无图片
rhel6.9下安装oracle12c.docx
34
15页
0次
2025-03-18
5墨值下载
1.配置 yum
mkdir /mnt/cdrom
mount -o loop /root/rhel-server-6.9-x86_64-dvd.iso /mnt/cdrom/
cd /etc/yum.repos.d/
vi rhel6.repo
[rhel6]
name=rhel6
baseurl=file:///mnt/cdrom
enabled=1
gpcheck=0
2.编辑 hosts 文件
vi /etc/hosts
192.168.96.20 emdb
3.停止防火墙
service iptables stop
chkconfig iptables off
4.新增 oracle 组和用户
groupadd -g 1000 oinstall
groupadd -g 1001 dba
useradd -g oinstall -G dba oracle
passwd oracle
5.创建目录
mkdir -p /u01/app
chown -R oracle.oinstall /u01
chmod -R 775 /u01
6.环境变量配置
vi /home/oracle/.bash_profile
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1
export ORACLE_SID=emdb
export PATH=$PATH:$ORACLE_HOME/bin
7.资源限制
vi /etc/security/limits.conf
# Oracle database 12c
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
8.pam.d 配置
vi /etc/pam.d/login
session required pam_limits.so
9.sysclt 配置
vi /etc/sysctl.conf
kernel.shmmax = 8422952960
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
fs.aio-max-nr = 1048576
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 = 1048576
10.安装依赖包
yum install -y binutils.x86_64 compat-lib* gcc.x86_64 gcc-c++.x86_64 glibc* libgcc*
libstdc* libaio* libXext* libXtst* libX11* libXau* libxcb* libXi* make.x86_64
sysstat.x86_64
11.解压文件,重新用 oracle 用户登录,调出图形化界面
unzip linuxamd64_12102_database_1of2.zip
unzip linuxamd64_12102_database_2of2.zip
cd database/
./runInstaller
12.不接收安全更新
13.只安装软件
of 15
5墨值下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。