Oracle 19C MultiTenant Database 1704253431
Oracle 19C MultiTenant Database 1704253431
Oracle 19C MultiTenant Database 1704253431
Environment Details:
No. of servers : 2 (node 1 ,node2).
Version : Oracle linux 7.9
ASM configuration : Yes , refer steps from :
https://www.linkedin.com/posts/umesh-shinde-989187209_oracle-grid-setup-activity-
7144377605201231874-owGr?utm_source=share&utm_medium=member_desktop
https://www.linkedin.com/posts/umesh-shinde-989187209_oracle-linux-installation-activity-
7141727733537046528-OGsK?utm_source=share&utm_medium=member_desktop
➢ Database Installation
➢ Database configuration
➢ Creating CDB and PDB database.
Setting up directories.
mkdir -p /oracle/app/oracle
mkdir -p /oracle/app/oracle/product/19.0.0/db_home
chown -R oracle:oinstall /oracle
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
ORACLE_SID=PRODCDB1; export ORACLE_SID
ORACLE_BASE=/oracle/app/oracle; export ORACLE_BASE
ORACLE_HOME=/oracle/app/oracle/product/19.0.0/db_home; export ORACLE_HOME
ORACLE_TERM=xterm; export ORACLE_TERM
JAVA_HOME=/usr/bin/java; export JAVA_HOME
TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN
PATH=.:${JAVA_HOME}/bin:${PATH}:$HOME/bin:$ORACLE_HOME/bin
PATH=${PATH}:/usr/bin:/bin:/usr/local/bin
export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib
export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOM
E/network/jlib
export CLASSPATH
umask 022
==============================================================================
Node 2:
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
ORACLE_SID=PRODCDB2; export ORACLE_SID
ORACLE_BASE=/oracle/app/oracle; export ORACLE_BASE
ORACLE_HOME=/oracle/app/oracle/product/19.0.0/db_home; export ORACLE_HOME
ORACLE_TERM=xterm; export ORACLE_TERM
JAVA_HOME=/usr/bin/java; export JAVA_HOME
TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN
PATH=.:${JAVA_HOME}/bin:${PATH}:$HOME/bin:$ORACLE_HOME/bin
PATH=${PATH}:/usr/bin:/bin:/usr/local/bin
export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib
export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOM
E/network/jlib
export CLASSPATH
TEMP=/tmp ;export TMP
TMPDIR=$tmp ; export TMPDIR
umask 022
==============================================================================
➢ cd $ORACLE_HOME
Now run runinstaller for database installation.
➢ ./runInstaller
6. Choose the location for Oracle base and Software location as per the
requirement.
7. Give the privilegedOperating system groups as per your requirement.
Note: Here we are creating container database with one Pluggable database.
Container Database PRODCDB with pluggable database PRODPDB has been created.