MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Oracle Tutorial: Install Oracle 19c EE

This guide installs Oracle Database 19c Enterprise Edition on Oracle Linux without the GUI. It uses the preinstall RPM, a software-only runInstaller run, and a DBCA response file that creates a container database (CDB) with one pluggable database (PDB). Below the original notes you will find a corrected command sequence with the steps the original leaves out: creating directories, running the root scripts, creating a listener, then verifying the database and fixing common errors.


What the example above does

The notes above follow the usual silent-install pattern for 19c. The preinstall RPM prepares the OS. The install zip is unpacked straight into the Oracle home, because since 18c the database software is an image you extract, not something an installer copies. runInstaller registers that home with INSTALL_DB_SWONLY, and DBCA creates the database from oracle_19_dbca.rsp.

Setting in the response fileValueEffect
gdbName / sidcdbDatabase name and instance SID
createAsContainerDatabasetrueCreates a multitenant CDB
numberOfPDBs / pdbName1 / pdbCreates one pluggable database named pdb
characterSetAL32UTF8Unicode database character set, the recommended choice
emConfiguration / emExpressPortDBEXPRESS / 5500Enables EM Express over HTTPS on port 5500
initParams sga_target / pga_aggregate_target2349MB / 783MBFixed memory sizes. Plan for at least 8 GB of RAM on the host
db_recovery_file_dest_size20GBFast Recovery Area quota, so the FRA file system needs that much free space

Note: Run in that order, the steps above fail. cd $ORACLE_HOME runs before ORACLE_HOME is set, so the zip is extracted into the home directory. The steps also never create the target directories, run the root scripts or create a listener. The corrected sequence below fixes all of these.

Prerequisites

  • Oracle Linux 7 or 8 (x86_64) with root access. On RHEL, download the oracle-database-preinstall-19c RPM from Oracle's yum server and install it with dnf/yum, which pulls in its dependencies.
  • The LINUX.X64_193000_db_home.zip image from Oracle's download site (an Oracle account is required). The example above fetches it from an internal NAS.
  • Disk space: roughly 7 to 8 GB for the Oracle home, plus space for data files and the 20 GB FRA quota.
  • At least 1 GB free in /tmp and swap sized to Oracle's guidance for your RAM.
  • A resolvable hostname. hostname -f and ping $(hostname) should both work.
  • A licence for Enterprise Edition and any options you use in production.

Corrected installation sequence

1. As root: install the preinstall package and create the directories that the response files point to. The preinstall RPM creates the oracle user, the groups, kernel parameters and limits. It does not create /opt/oracle or /var/opt/oracle.

# Oracle Linux 8 (use yum on OL7). No sudo needed when already root
dnf install -y oracle-database-preinstall-19c
passwd oracle

mkdir -p /opt/oracle/product/19.0.0/dbhome_1
mkdir -p /var/opt/oracle/{oradata,fast_recovery_area,oraInventory}
chown -R oracle:oinstall /opt/oracle /var/opt/oracle
chmod -R 775 /opt/oracle /var/opt/oracle
rebootCode language: PHP (php)

2. As oracle: export the environment permanently. In the original, the variables are only set, not exported. Child processes such as dbca and sqlplus need ORACLE_HOME and ORACLE_SID in their environment.

cat >> ~/.bash_profile <<'EOF'
export ORACLE_HOSTNAME=n0s0
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=$ORACLE_BASE/product/19.0.0/dbhome_1
export ORACLE_SID=cdb
export ORA_INVENTORY=/var/opt/oracle/oraInventory
export PATH=$ORACLE_HOME/bin:/usr/sbin:/usr/local/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
EOF
. ~/.bash_profile

# Only on Oracle Linux 8 / RHEL 8 with the 19.3 base image:
export CV_ASSUME_DISTID=OEL7.8Code language: PHP (php)

3. Download and extract the software into the Oracle home, then run the same runInstaller command shown above from inside $ORACLE_HOME.

WD=~/work/install_oracle19c
mkdir -p $WD && cd $WD
wget http://nas/pkg/oracle/database/19c/LINUX.X64_193000_db_home.zip

cd $ORACLE_HOME
unzip -oq $WD/LINUX.X64_193000_db_home.zip
ls runInstaller            # must exist before continuing

./runInstaller -ignorePrereq -waitforcompletion -silent ...   # full command as in the example aboveCode language: PHP (php)

When the install succeeds it prints Successfully Setup Software. and asks you to run two scripts as root.

4. As root: run the root scripts. The original leaves this out. Without it there is no central inventory pointer (/etc/oraInst.loc), and oratab and the setuid binaries are not set up.

/var/opt/oracle/oraInventory/orainstRoot.sh
/opt/oracle/product/19.0.0/dbhome_1/root.shCode language: JavaScript (javascript)

5. As oracle: create the default listener on port 1521 before you create the database. The DBCA response file sets local_listener=LISTENER_CDB and enables EM Express, and both of these expect a listener to exist.

netca -silent -responseFile $ORACLE_HOME/assistants/netca/netca.rsp
lsnrctl statusCode language: PHP (php)

6. Create the database in silent mode. Without -silent -createDatabase, DBCA tries to open its GUI. That only works because the original session uses ssh -Y.

chmod 600 $WD/oracle_19_dbca.rsp
dbca -silent -createDatabase -responseFile $WD/oracle_19_dbca.rspCode language: PHP (php)

The password fields in the response file are empty. That includes dbsnmpPassword, which is required when emConfiguration is set. In silent mode DBCA prompts for any missing passwords on the terminal. This keeps passwords out of the file and out of the process list. DBCA prints progress percentages and finishes with Database creation complete. Logs are written to $ORACLE_BASE/cfgtoollogs/dbca/cdb/.

Verify the database

sqlplus / as sysdba

SQL> SELECT name, open_mode, cdb FROM v$database;
SQL> SHOW PDBS;
SQL> ALTER PLUGGABLE DATABASE pdb SAVE STATE;
SQL> EXIT

# Connect to the PDB through the listener
sqlplus system@//n0s0:1521/pdbCode language: PHP (php)

You should see CDB = YES, PDB$SEED in READ ONLY mode and PDB in READ WRITE mode. SAVE STATE makes the PDB open automatically when the CDB restarts. Without it, the PDB stays in MOUNTED after a restart. EM Express is available at https://n0s0:5500/em.

# As root, open the ports if firewalld is running
firewall-cmd --permanent --add-port=1521/tcp
firewall-cmd --permanent --add-port=5500/tcp
firewall-cmd --reloadCode language: PHP (php)

Common errors and fixes

SymptomCauseFix
./runInstaller: No such file or directoryThe zip was extracted while ORACLE_HOME was empty, so it landed in ~Export the variables first, then cd $ORACLE_HOME and unzip again
[INS-08101] Unexpected error ... supportedOSCheckThe 19.3 base image does not recognise OL8/RHEL8export CV_ASSUME_DISTID=OEL7.8 and apply a current Release Update
Permission denied writing the inventory or data filesDirectories missing or owned by rootCreate them as root and chown -R oracle:oinstall
ORA-00119 / ORA-00132 on startuplocal_listener=LISTENER_CDB cannot be resolvedCreate the listener with netca before DBCA, or remove local_listener from initParams
DBCA complains about Fast Recovery Area free spacedb_recovery_file_dest_size=20GB exceeds free spaceFree up disk space or lower the value in initParams
ORA-27125 or memory errors at instance startKernel or memlock limits not active, or too little RAM for sga_targetConfirm the preinstall RPM ran and the host was rebooted, or reduce the SGA/PGA sizes
DBCA tries to open a window or reports DISPLAY errors-silent was omittedUse dbca -silent -createDatabase -responseFile ...

Best practices and security

  • Patch at install time. 19.3 is the base release. Download the latest Release Update and a current OPatch, then run ./runInstaller -applyRU <patch_dir> ... so the home is patched before any database exists. Newer OS releases support only patched 19c homes.
  • Avoid blanket -ignorePrereq. Run without it once and read the failed checks. Ignore only the ones you understand.
  • Protect response files. They can contain plain-text passwords. Keep them at chmod 600, or leave passwords blank and let DBCA prompt for them.
  • Enable auto-start. In /etc/oratab change cdb:/opt/oracle/product/19.0.0/dbhome_1:N to :Y. Then start the database with dbstart $ORACLE_HOME from a systemd unit.
  • Review options. Set sampleSchema=false on production databases, and use EM Express performance pages only if you are licensed for the required management packs.

Frequently asked questions

Can Oracle 19c be installed on Oracle Linux 8 or 9?

Yes. On OL8 the 19.3 base image needs CV_ASSUME_DISTID=OEL7.8 and a Release Update applied with -applyRU. Newer releases such as OL9 are supported only with a sufficiently recent Release Update applied during installation, so check Oracle's certification matrix first.

Why does runInstaller not install anything to a separate location?

Since 18c the database software is an image. You extract the zip directly into the final ORACLE_HOME, and runInstaller registers and links that home in place.

How do I avoid putting passwords in the DBCA response file?

Leave sysPassword, systemPassword, pdbAdminPassword and dbsnmpPassword empty and run dbca -silent -createDatabase -responseFile file. DBCA then prompts for each password interactively.

Why is my PDB mounted but not open after a reboot?

PDBs do not open automatically unless their state was saved. Open the PDB once and run ALTER PLUGGABLE DATABASE pdb SAVE STATE; as SYSDBA in the root container.

What are orainstRoot.sh and root.sh for?

orainstRoot.sh sets permissions on the central inventory and creates /etc/oraInst.loc. root.sh creates /etc/oratab and the files in /usr/local/bin, and sets root-owned permissions on Oracle binaries. Both must run as root after the software install.

Related tutorials

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services โ€” all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

How to Install Oracle Database 19c on centos 7

This guide covers installing Oracle Database 19c on CentOS 7. You prepare the host with packages, kernel parameters, limits, an oracle user and directories, unzip the 19c…

Read More

Oracle RAC Operations Cheat Sheet: CRSCTL, SRVCTL, ASM, OCR, and Network Checks

A practical Oracle RAC command reference for day-to-day operations and maintenance. Use this guide to check cluster health, control services safely, and validate ASM, OCR, voting disk, and network components.

Read More

Comparison of MySQL, MSSQL, PostgreSQL, and Oracle Database

Feature MySQL MSSQL (Microsoft SQL Server) PostgreSQL Oracle Database Developer Oracle Corporation (originally by MySQL AB) Microsoft PostgreSQL Global Development Group Oracle Corporation Initial Release 1995 1989…

Read More

Oracle: Selection and Interview process, Questions/Answers

Oracle Corporation is a dominant force in the world of software, particularly known for its industry-leading relational database management system. Here’s a quick overview: Career Opportunities: A…

Read More

What is dbForge Studio and use cases of dbForge Studio ?

What is dbForge Studio ? dbForge Studio is a comprehensive integrated development environment (IDE) and management tool for database developers and administrators. It offers a wide range…

Read More

What is Oracle and use cases of Oracle?

What is Oracle? Oracle Corporation is a multinational computer technology corporation that provides a wide range of hardware and software products and services. It is best known…

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
0
Would love your thoughts, please comment.x
()
x