Oracle Database 21c Installation On Oracle Linux 7 | Oracle 21c Download

21c installation

Install Oracle 21c Linux

In this article, we are going to learn oracle 21c installation on the Linux platform step by step.

What is Oracle Database 21c?

Oracle 21c is the latest release of Oracle database software, if you want to read more about click here.

Can I download Oracle for free?

Yes, You can download the oracle 21c software for free from Oracle's official website.

Step 1. Oracle 21c Download software from oracle official website or Click Here

download oracle 21c

Step 2. Internet must be working on your machine, let's check it's working or not using the ping command.

21c Installation

If the ping command is responding like above, that means the Internet is working on your machine.

Step 3. Check the IP Address and hostname of your machine.

21c Installation

Check Hostname: If you don't know how to set hostname Click Here

21c Installation

Step 4. Edit /etc/hosts file and add IP with hostname inside the hosts file.

#vi /etc/hosts
21c Installation

Step 5. Check preinstall repository details using the below command.

#yum list oracle-database-preinstall-21c
yum list

How to install 21c prerequisites

Step 6. Install prerequisites using the below command

#yum install oracle-database-preinstall-21c
yum install oracle-database-preinstall-21c

Once prerequisites are completed, the ORACLE user and GROUPS are also created automatically. So, after the installation of prerequisites, you should change the password for the ORACLE user.

Step 7. Change the password for ORACLE USER.

#passwd oracle

Step 8. Disable firewall and SELinux.

For SELinux:

#vi /etc/selinux/config
21c Installation

Apply changes immediately, no need to reboot the machine immediately.

#setenforce permissive

For firewall:

#systemctl stop firewalld
#systemctl disable firewalld
21c Installation

Step 9. Create Oracle Home directory.

#mkdir -p /u01/app/oracle/product/21.0.0/dbhome_1
21c Installation

Step 10. Change ownership of /u01 directory and set 775 permissions for /u01 also.

#chown -R oracle.oinstall /u01
#chmod -R 775 /u01
21c Installation

Now switch in ORACLE user and unzip the ORACLE 21C database software

Step 11. Unzip the software inside the ORACLE HOME directory directly.

$unzip LINUX.X64_213000_db_home -d/u01/app/oracle/product/21.0.0/dbhome_1
21c Installation

Step 12. Go inside the ORACLE HOME directory, and start runInstallar.

$cd /u01/app/oracle/product/21.0.0/dbhome_1
21c Installation
21c Installation

Finally, Oracle 21c database installation on the Linux platform started now.

Step 13. Here we just installing the ORACLE 21c Database software so select the setup software-only option.

21c Installation

Select single instance:

21c Installation

Select Enterprise Edition option

21c Installation

Set Oracle Base directory

21c Installation

Select oraInventory directory

21c Installation

Check all Database Groups

21c Installation

Root scripts: If you want to auto-execute the Root scripts then set Root user Credential.

21c Installation

Save Response File just click on the save response file button for your future reference and then click on the Install button.

21c Installation

Now finally Oracle Installation process has been started.

21c Installation

Execute both scripts from the Root user.

21c Installation
21c Installation

Once done click on the OK button.

And Finally, the Oracle 21c installation successfully completed.

21c Installation

Set Oracle Environment variables

$vi .bash_profile

export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/21.0.0/dbhome_1/
export PATH=/usr/sbin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

Thanks for reading, please visit again.

3 thoughts on “Oracle Database 21c Installation On Oracle Linux 7 | Oracle 21c Download

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top