在openEuler-23.09上安装Oracle19c,创建非容器数据库实例(含静默安装)
操作系统版本
openEuler-23.09-x86_64-dvd.iso ,安装步骤此处省略。。。
Oracle19c
LINUX.X64_193000_db_home.zip
特殊说明
LINUX.X64_193000_db_home.zip 该文件你可以直接放到ORACLE_HOME目录下或者你解压的时候,将压缩包里的内容解压到$ORACLE_HOME目录下即可
1、操作系统配置
1.1、配置/etc/hosts
[root@openEuler tmp]# cat /etc/hosts
# Loopback entries; do not change.
# For historical reasons, localhost precedes localhost.localdomain:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.80.239 openEuler
1.2、检查主机名和网络
[root@openEuler tmp]# hostname
openEuler
[root@openEuler tmp]# ping openEuler
PING openEuler (192.168.80.239) 56(84) bytes of data.
64 bytes from openEuler (192.168.80.239): icmp_seq=1 ttl=64 time=0.065 ms
64 bytes from openEuler (192.168.80.239): icmp_seq=2 ttl=64 time=0.036 ms
64 bytes from openEuler (192.168.80.239): icmp_seq=3 ttl=64 time=0.038 ms
1.3、关闭防火墙
-- 检查防火墙状态
[root@openEuler tmp]# systemctl status firewalld.service
● firewalld.service - firewalld - dynamic firewall daemonLoaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; preset: enabled)Active: active (running) since Tue 2024-06-18 09:26:24 CST; 6h agoDocs: man:firewalld(1)Main PID: 873 (firewalld)Tasks: 2 (limit: 21292)Memory: 4.7MCGroup: /system.slice/firewalld.service└─873 /usr/bin/python3 -s /usr/sbin/firewalld --nofork --nopidJun 18 09:26:24 openEuler systemd[1]: Starting firewalld - dynamic firewall daemon...
Jun 18 09:26:24 openEuler systemd[1]: Started firewalld - dynamic firewall daemon.-- 暂时关闭防火墙,下次启动时防火墙仍随系统启动而启动
[root@openEuler tmp]# systemctl stop firewalld.service-- 彻底永久关闭防火墙
[root@openEuler tmp]# systemctl disable firewalld.service
Removed "/etc/systemd/system/multi-user.target.wants/firewalld.service".
Removed "/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service".-- 检查防火墙状态
[root@openEuler tmp]# systemctl status firewalld.service
○ firewalld.service - firewalld - dynamic firewall daemonLoaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; preset: enabled)Active: inactive (dead) since Tue 2024-06-18 15:38:42 CST; 13s agoDuration: 6h 12min 16.272sDocs: man:firewalld(1)Main PID: 873 (code=exited, status=0/SUCCESS)Jun 18 09:26:24 openEuler systemd[1]: Starting firewalld - dynamic firewall daemon...
Jun 18 09:26:24 openEuler systemd[1]: Started firewalld - dynamic firewall daemon.
Jun 18 15:38:41 openEuler systemd[1]: Stopping firewalld - dynamic firewall daemon...
Jun 18 15:38:42 openEuler systemd[1]: firewalld.service: Deactivated successfully.
Jun 18 15:38:42 openEuler systemd[1]: Stopped firewalld - dynamic firewall daemon.
1.4、关闭SELINUX防火墙
vi /etc/selinux/config
将内容
SELINUX=enforcing
更改为
SELINUX=disabled
1.5、配置YUM源解
挂载光盘镜像 注:在虚拟机挂载光盘镜像并检查
mount /dev/cdrom /mntcd /etc/yum.repos.d/
rm -rf *
vi yum.local.repo[local]