Step-by-Step Guide: Installing Oracle Database 23ai on Oracle Linux 8
Installing an RDBMS has never been easier than with Oracle 23ai. Believe me, it takes just three simple steps to get the Oracle 23ai database up and running.
- Rpm Installation.
sudo yum install oracle-database-preinstall-23c-1.0-0.5.el8.x86_64.rpm
sudo yum install oracle-database-ee-23c-1.0-1.el8.x86_64.rpm
The above RPM will now download the setup into the Oracle home directory located at /opt/oracle/product/23ai/dbhome_1
.
2. Create database
Besides installing the software, the RPM also generates a script that enables us to create a database named ‘ORCLCDB,’ which includes a pluggable database (PDB) called ‘ORCLPDB1.’ Below, we set the DB_PASSWORD environment variable to facilitate a silent database creation using this script.
1) export DB_PASSWORD=SysPassword1
2) (echo "${DB_PASSWORD}"; echo "${DB_PASSWORD}";) | /etc/init.d/oracledb_ORCLCDB-23c configure
Your Oracle 23ai AI database is now up and running. This script handles the entire silent installation automatically.
3) Start and Stop of service.
/etc/init.d/oracledb_ORCLCDB-23c stop
/etc/init.d/oracledb_ORCLCDB-23c start