Oracle Linux 7.4 安装 Oracle 12C

一、安装前准备
1.系统:Oracle Linux 7.4
cat /etc/oracle-release
Oracle Linux Server release 7.4

2.主机名和域名
tail -1  /etc/sysconfig/network
hostname Oracle

tail -1  /etc/hosts
10.0.70.28 oracle

3.关闭SELinux和 firewalld
sed -i s#SELINUX=enforcing#SELINUX=disabled#g /etc/selinux/config
setenforce 0
egrep "SELINUX=disabled" /etc/selinux/config
getenforcesystemctl stop firewalld.service                      #关闭OEL7默认防火墙
systemctl disable firewalld.service

4.更新系统至最新
yum -y update
init 6

5.时间同步
crontab -e
#date sync
*/5 * * * * /usr/sbin/ntpdate 202.120.2.101 > /dev/null 2>&

二、安装oracle 12c
1.安装oracle预配置包
yum install oracle-database-server-12cR2-preinstall -y

2.使内核参数生效
sysctl -p

3.配置oracle用户环境变量
vim /home/oracle/.bash_profile
export ORACLE_SID=orcl
export ORACLE_BASE=/home/oracle/database
export ORACLE_HOME=$ORACLE_BASE/product/12c/db_1
export PATH=/usr/sbin:$PATH
export PATH=${PATH}:${ORACLE_HOME}/bin/;
source /home/oracle/.bash_profile    #使其生效

4.oracle官网下载oracle 12c放到/home/oracle/database目录下,解压
mkdir /home/oracle/database
cd /home/oracle/database
unzip linuxamd64_12102_database_1of2.zip
unzip linuxamd64_12102_database_2of2.zip

5.以oracle用户登录进行安装
cd  database
./runInstaller

在该界面中输入My Oracle Support电子邮件和My Oracle Support Password;也可以不输入电子邮

件,并且取消“I wish to receive security updates via My Oracle Support.”,直接单击按钮

请根据安装方式以及物理内存大小配置内存参数。在该页面中默认选择典型配置,仅需要调整内存

大小即可

当进入安装产品界面,开始创建数据库,并且显示安装进度。

进行到 Oracle Database configuration 一步中的Oracle Net Configuration Assistant 时,如果弹出

数据库创建完成后,会出现执行配置脚本提示窗口

打开一个终端窗口并切换到 root 用户,按照执行配置脚本窗口提示的路径执行脚本

  • 1
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值