CentOS7.3环境下 Oracle安装手册
CentOS7.3环境下 Oracle安装手册
#mv CentOS-Base.repo CentOS-Base-org.repo
#wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
或
#wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
#yum makecache
Oracle官方说明:
http://docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htm#BHCGJCEA
Oracle与Linux的对应要求
先从官方下载oracle11g2
Oracle11g2版
本
Linux的版本 下载地址
11.2.0.4
Oracle Linux 7 Red Hat Enterprise Linux 7 x
86_x64版
https://updates.oracle.com/O
rion/Services/download/p133
90677_112040_Linux-x86-64
_1of7.zip?aru=16716375&pa
tch_file=p13390677_112040
_Linux-x86-64_1of7.zip
https://updates.oracle.com/O
rion/Services/download/p133
90677_112040_Linux-x86-64
_2of7.zip?aru=16716375&pa
tch_file=p13390677_112040
_Linux-x86-64_2of7.zip
11.2.0.3
Oracle Linux 6 and Red Hat Enterprise Linux
6 and Asianux 4 x86_x64版 x86版
https://updates.oracle.com/O
rion/Services/download/p104
04530_112030_Linux-x86-64
_1of7.zip?aru=14125322&pa
tch_file=p10404530_112030
_Linux-x86-64_1of7.zip
https://updates.oracle.com/O
rion/Services/download/p104
04530_112030_Linux-x86-64
_2of7.zip?aru=14125322&pa
tch_file=p10404530_112030
_Linux-x86-64_2of7.zip
https://updates.oracle.com/O
rion/Services/download/p104
04530_112030_Linux-x86-64
_3of7.zip?aru=14125322&pa
tch_file=p10404530_112030
_Linux-x86-64_3of7.zip
创建用户与组(以root登录)
#groupadd oinstall #创建用户组oninstall
#groupadd dba #创建用户组dba
#useradd -m oracle #创建用户oralce -m 增加用户目录 -M 不增加用户目录
#passwd oracle #修改oracle密码
#usermod -g oinstall oracle #将oracle加入oinstall用户组
#usermod -g dba oracle #将oracle加入dba用户组
创建oracle安装目录
#mkdir -p /oracle/oraInventory #oracle数据库配置目录
设置目录所有者
#chown -R oracle:oinstall /oracle #设置目录所有者为oinstall用户组的oracle用户
#chown -R oracle:oinstall /oracle/oraInventory
评论0