原 欧拉OpenEuler 22.03使用rpm包安装oracle 19c
环境
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | docker rm -f lhropeneulerora19c docker run -itd --name lhropeneulerora19c -h lhropeneulerora19c \ -p 1621:1521 -p 3189:3389 \ -v /sys/fs/cgroup:/sys/fs/cgroup \ --restart=always \ --privileged=true lhrbest/openeuler22:6.0 \ /usr/sbin/init docker cp /soft/oracle/oracle-database-ee-19c-1.0-1.x86_64.rpm lhropeneulerora19c:/soft/ [root@lhropeneulerora19c soft]# cat /etc/os-release NAME="openEuler" VERSION="22.03 LTS" ID="openEuler" VERSION_ID="22.03" PRETTY_NAME="openEuler 22.03 LTS" ANSI_COLOR="0;31" [root@lhropeneulerora19c soft]# |
安装
1 2 3 4 5 6 7 8 9 | -- https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/index.html dnf install -y compat-libcap1 compat-libstdc++-33 #可从centos7系统镜像中拷贝 rpm -ivh rlwrap-0.43-2.el7.x86_64.rpm --nodeps rpm -ivh oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm --nodeps rpm -ivh oracle-database-ee-19c-1.0-1.x86_64.rpm |
日志:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | [root@lhropeneulerora19c soft]# rpm -ivh oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm --nodeps warning: oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY Verifying... ################################# [100%] Preparing... ################################# [100%] Updating / installing... 1:oracle-database-preinstall-19c-1.################################# [100%] [root@lhropeneulerora19c soft]# ll total 2631532 -rw-r--r-- 1 root root 2694664264 May 10 2024 oracle-database-ee-19c-1.0-1.x86_64.rpm -rw-r--r-- 1 root root 18204 Nov 20 14:12 oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm [root@lhropeneulerora19c soft]# rpm -ivh oracle-database-ee-19c-1.0-1.x86_64.rpm warning: oracle-database-ee-19c-1.0-1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY Verifying... ################################# [100%] Preparing... ################################# [100%] Updating / installing... 1:oracle-database-ee-19c-1.0-1 ################################# [100%] [INFO] Executing post installation scripts... [INFO] Oracle home installed successfully and ready to be configured. To configure a sample Oracle Database you can execute the following service configuration script as root: /etc/init.d/oracledb_ORCLCDB-19c configure [root@lhropeneulerora19c soft]# |
初始化数据库
参数文件: /etc/init.d/oracledb_ORCLCDB-21c
、 /etc/sysconfig/oracledb_ORCLCDB-21c.conf