Build Linux Server of Oracle Linux 8
Build Linux Server of Oracle Linux 8
yum -y update
yum clean all
create directories for grid home, oracle home and oracle inventory
make /u01 of 50 GB
----------------------------------------------------------------------------------------------------
[root@ ABC oracle]# mkdir -p /u01/oracle/19.0.0/grid
[root@ ABC oracle]# mkdir -p /u01/oracle/product/19.0.0/dbhome_1
[root@ ABC oracle]# mkdir -p /u01/oraInventory
Create a function under .bashrc file so we can use it to quickly set environment variables for
ASM instance
-------------------------------------------------------------------------------------------------------
vi .bashrc
Put below at the end of the file
ASM()
{
export ORACLE_SID=+ASM
echo "ORACLE_SID="$ORACLE_SID
echo "ORACLE_BASE="$ORACLE_BASE
echo "ORACLE_HOME="$ORACLE_HOME
}
The ASM function will help us quickly set ORACLE_SID=+ASM so we don't have to export it
manually
Download Oracle 19c grid and copy the 19c software file to ORACLE_HOME location
and unzip.
Start the run installer to perform installation
-------------------------------------------------------------------------------------------------------
[root@ABC ~]# cd /u01/oracle/19.0.0/grid/cv/rpm/
[root@ABC rpm]# pwd
/u01/oracle/19.0.0/grid/cv/rpm
[root@ABC rpm]# ls -lrth
total 12K
-rw-r--r-- 1 oracle oracle 12K Mar 13 2019 cvuqdisk-1.0.10-1.rpm
[root@ABC rpm]# rpm -ivh cvuqdisk-1.0.10-1.rpm
Verifying... ################################# [100%]
Preparing... ################################# [100%]
Using default group oinstall to install package
Updating / installing...
1:cvuqdisk-1.0.10-1 ################################# [100%]
[root@ABC rpm]#
[oracle@ABC rpm]$ cd ..
[oracle@ABC cv]$ cd ..
[oracle@ABC grid]$ cat /etc/os-release | grep VERSION_ID | awk -F"\"" '{print $2}'
8.9
[oracle@ABC grid]$ export CV_ASSUME_DISTID=OEL8.9
[oracle@ABC grid]$
[oracle@ABC grid]$
[oracle@ABC grid]$
[oracle@ABC grid]$ ./runcluvfy.sh stage -pre hacfg -fixup -verbose
[oracle@ABC ~]$
[oracle@ABC ~]$ cd $ORACLE_HOME
[oracle@ABC grid]$ ls -lrth *.sh
-rwxr-x--- 1 oracle oracle 628 Sep 4 2015 runcluvfy.sh
-rwxr-x--- 1 oracle oracle 3.3K Mar 8 2017 gridSetup.sh
-rwx------ 1 oracle oracle 414 Apr 18 2019 rootupgrade.sh
-rwx------ 1 oracle oracle 405 Apr 18 2019 root.sh
[oracle@ABC grid]$
[oracle@ABC grid]$ ./gridSetup.sh
Launching Oracle Grid Infrastructure Setup Wizard...
[root@ABC ~]#
[root@ABC ~]# /u01/oraInventory/orainstRoot.sh
Changing permissions of /u01/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
QSLGNXT()
{
export ORACLE_SID=QSLGNXT
echo "ORACLE_SID="$ORACLE_SID
echo "ORACLE_BASE="$ORACLE_BASE
echo "ORACLE_HOME="$ORACLE_HOME
}
cd $ORACLE_HOME
unzip LINUX.X64_193000_db_home.zip