linux安装Oracle19c完整过程
安装版本:
Linux:CentOS Linux release 8.3.2011
Oracle:19C
系统配置:
下载Oracle19c安装包
创建组和⽤户
[root@localhost ~]# groupadd oinstall
[root@localhost ~]# groupadd dba
[root@localhost ~]# groupadd asmdba
[root@localhost ~]# groupadd backupdba
[root@localhost ~]# groupadd dgdba
[root@localhost ~]# groupadd kmdba
[root@localhost ~]# groupadd racdba
[root@localhost ~]# groupadd oper
[root@localhost ~]# useradd -g oinstall -G dba,asmdba,backupdba,dgdba,kmdba,racdba,oper oracle19
[root@localhost ~]# passwd oracle19
Changing password for user oracle19.
New password:
BAD PASSWORD: The password contains the user name in some form
Retype new password:
passwd: all authentication tokens updated successfully.
[root@localhost ~]#
[root@localhost ~]# mkdir -p /u01/app/oracle19/product/19.2.0/db_1
[root@localhost ~]# chown -R oracle19:oinstall /u01/app/oracle19/
[root@localhost ~]# su - oracle19
[oracle19@localhost ~]$ vi .bash_profile
export ORACLE_HOME=/u01/app/oracle19/product/19.2.0/db_1
export PATH=$PATH:/u01/app/oracle19/product/19.2.0/db_1/bin
export ORACLE_SID=orcl
[oracle19@localhost ~]$ source .bash_profile
[oracle19@localhost db_1]$ pwd
/u01/app/oracle19/product/19.2.0/db_1
[oracle19@localhost db_1]$ ll -h
total 2.9G
-rw-rw-r--. 1 oracle19 oinstall 2.9G Jun 13 19:22 LINUX.X64_193000_db_home.zip
[oracle19@localhost db_1]$
[oracle19@localhost db_1]$ unzip LINUX.X64_193000_db_home.zip
禁⽤防⽕墙
systemctl stop firewalld.service
systemctl disable firewalld.service
systemctl status firewalld.service
关闭selinux:
perl下载安装教程编辑/etc/selinux/config ⽂件
sed -i s'\enforcing\disable\g' /etc/selinux/config
安装依赖包
yum install bc binutils compat-libcap1 compat-libstdc++33 elfutils-libelf elfutils-libelf-devel fontconfig-devel glibc glibc-devel ksh libaio libaio-devel libX11 libXau libXi libXtst libXrender libXrender-devel libgcc libstdc++ libstdc++-devel libxcb make smartmontools sysstat kmod*
包compat-libstdc+±33-3.2.3 单独⼿动下载上传安装
下载连接:
安装yum -y install xdpyinfo
执⾏安装
[oracle19@localhost db_1]$ export DISPLAY=192.168.0.104:0.0
安装遇到了⼀个不错,折腾了2⼩时也没解决成功
[oracle19@localhost db_1]$ ./runInstaller
/u01/app/oracle19/product/19.2.0/db_1/perl/bin/perl: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory
[root@localhost lib]# dnf install libnsl
再次执⾏安装遇到报错:
[INS-08101] Unexpected error while executing the action at state: ‘supportedOSCheck
解决⽅法:
添加 "export CV_ASSUME_DISTID=OEL7"到 /home/oracle19/.bash_profile
[oracle19@localhost db_1]$ source /home/oracle19/.bash_profile
开始安装
遇到错误
发现是因为⾃⼰没有把app的权限给够
[root@localhost oracle19]# cd /u01/
[root@localhost u01]# ll
total 0
drwxr-xr-x. 3 root root 22 Jun 13 20:32 app
[root@localhost u01]# chown -R oracle19:oinstall app/修改后继续安装
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论