Oracle Database 21c RPM Installation On Oracle Linux 7 (OL7) and Oracle Linux 8 (OL8)
Oracle 21c can be installed on Oracle Linux using an RPM. This article describes the RPM installation of Oracle Database 21c 64-bit on Oracle Linux 7 (OL7) 64-bit or Oracle Linux 8 (OL8) 64-bit. The article is based on a server installation with a minimum of 2G swap and secure Linux set to permissive. An example of this type of Linux installation can be seen here (OL7 or OL8).
# OL7
# yum install -y oracle-database-preinstall-21c
yum -y localinstall oracle-database-ee-21c-1.0-1.ol7.x86_64.rpm
# OL8
# dnf install -y oracle-database-preinstall-21c
dnf -y localinstall oracle-database-ee-21c-1.0-1.ol8.x86_64.rpm
On RHEL you will need to manually get the prerequisites RPM from the Yum repository and run it manually before installing the database RPM.
# RHEL7
curl -o oracle-database-preinstall-21c-1.0-1.el7.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-21c-1.0-1.el7.x86_64.rpm
yum -y localinstall oracle-database-preinstall-21c-1.0-1.el7.x86_64.rpm
rm oracle-database-preinstall-21c-1.0-1.el7.x86_64.rpm
# RHEL8
curl -o oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64/getPackage/oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm
yum -y localinstall oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm
rm oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm
Logs
[root@localhost u01]# rpm -ivh oracle-database-ee-21c-1.0-1.ol8.x86_64.rpm
warning: oracle-database-ee-21c-1.0-1.ol8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ad986da3: NOKEY
Preparing... ################################# [100%]
installing package oracle-database-ee-21c-1.0-1.x86_64 needs 218MB on the / filesystem
[root@localhost u01]# rpm -ivh oracle-database-ee-21c-1.0-1.ol8.x86_64.rpm
warning: oracle-database-ee-21c-1.0-1.ol8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ad986da3: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:oracle-database-ee-21c-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-21c configure
[root@localhost u01]# /etc/init.d/oracledb_ORCLCDB-21c configure
Configuring Oracle Database ORCLCDB.
[FATAL] [DBT-06604] The location specified for 'Data Files Location' has insufficient free space.
CAUSE: Only (2,904MB) free space is available on the location (/opt/oracle/oradata/ORCLCDB/).
ACTION: Choose a 'Data Files Location' that has enough space (minimum of (4,632MB)) or free up space on the specified location.
Database configuration failed.
[root@localhost u01]# /etc/init.d/oracledb_ORCLCDB-21c configure
Configuring Oracle Database ORCLCDB.
Prepare for db operation
8% complete
Copying database files
31% complete
Creating and starting Oracle instance
32% complete
36% complete
40% complete
43% complete
46% complete
Completing Database Creation
51% complete
54% complete
Creating Pluggable Databases
58% complete
77% complete
Executing Post Configuration Actions
100% complete
Database creation complete. For details check the logfiles at:
/opt/oracle/cfgtoollogs/dbca/ORCLCDB.
Database Information:
Global Database Name:ORCLCDB
System Identifier(SID):ORCLCDB
Look at the log file "/opt/oracle/cfgtoollogs/dbca/ORCLCDB/ORCLCDB.log" for further details.
Database configuration completed successfully. The passwords were auto generated, you must change them by connecting to the database using 'sqlplus / as sysdba' as the oracle user.
[root@localhost u01]#
[root@localhost u01]# ps -ef |grep pmon
oracle 13974 1 0 23:24 ? 00:00:00 ora_pmon_ORCLCDB
root 14566 10459 0 23:26 pts/0 00:00:00 grep --color=auto pmon
[root@localhost u01]#
[oracle@localhost ~]$ s+
SQL*Plus: Release 21.0.0.0.0 - Production on Wed Dec 22 23:47:45 2021
Version 21.3.0.0.0
Copyright (c) 1982, 2021, Oracle. All rights reserved.
Connected to:
Oracle Database 21c Enterprise Edition Release 21.0.0.0.0 - Production
Version 21.3.0.0.0
SQL>
Comments
Post a Comment