Logo ← PostgreSQL Blog

Sanal Makineye Oracle 19c Kurulumu Komut

cd /etc ll

Installing Oracle Database 19c on Oracle Linux 8

Introduction

Installing Oracle Database 19c on Oracle Linux 8 involves several steps, including configuring the operating system, installing necessary packages, setting up environment variables, and finally, installing the database software. This guide will walk you through the process step-by-step.

Prerequisites

  • Oracle Linux 8 installed
  • Root access
  • Internet connectivity

Steps

1. Initial Configuration

cd /etc
vi hosts
# Add your IP and hostname
vi hostname
# Set hostname to orcl.localdomain
vi /etc/selinux/config
# Set SELINUX=disabled

2. Firewall Configuration

systemctl status firewalld
systemctl stop firewalld
systemctl disable firewalld

3. Install Oracle Database Preinstall Package

sudo yum install -y oracle-database-preinstall-19c

4. Update YUM Configuration with Proxy (if needed)

sudo vi /etc/yum.conf
# Add proxy settings

5. Update System Packages

sudo yum update -y

6. Set Oracle User Password and Directory Permissions

passwd oracle
mkdir -p /u01/app/oracle/product/19/db
mkdir -p /u01/orainstall
chown -R oracle:oinstall /u01
chmod -R 775 /u01/

7. Configure Oracle Environment Variables

Switch to the Oracle user and set environment variables.

su - oracle
vi .profile_db
# Add Oracle environment variables
vi .bash_profile
# Source .profile_db

8. Prepare for Database Software Installation

# Switch to root user
# Copy the ZIP file to /u01/orainstall
cd /u01/orainstall/
chmod 777 LINUX.X64_193000_db_home.zip
chown oracle.oinstall LINUX.X64_193000_db_home.zip
su - oracle
cd /u01/orainstall/
unzip LINUX.X64_193000_db_home.zip -d /u01/app/oracle/product/19/db/

9. Install Oracle Database Software

cd /u01/app/oracle/product/19/db

./runInstaller


# ERROR: Unable to verify the graphical display setup. This application requires X display. Make sure that xdpyinfo exist under PATH variable
# DISPLAY=YOUR_IP_ADRESS:0.0;
# export DISPLAY;

#[WARNING] [INS-08101] Unexpected error while executing the action at state: 'supportedOSCheck'
# export CV_ASSUME_DISTID=OEL7.8

10. Create Database Using DBCA

dbca

11. Configure Listener

netca # Run Net Configuration Assistant
lsnrctl status

12. Start Oracle Database and Connect as SYSDBA

sqlplus / as sysdba
startup

Conclusion

Congratulations! You have successfully installed Oracle Database 19c on Oracle Linux 8. You can now start using the database for your applications and services. Make sure to regularly backup your database and monitor its performance for optimal operation.