Oracle 19c Database Installation (on Linux 7.6) on VMware Workstation

  • Home
  • Oracle 19c Database Installation (on Linux 7.6) on VMware Workstation
Shape Image One
Oracle 19c Database Installation (on Linux 7.6) on VMware Workstation
ORACLE

Oracle 19c Database Installation (on Oracle Linux 7.6) on VMware Workstation

Section-1

Download and unzip Oracle 19c Software

Create a staging directory

#DescriptionCommand / Details / Screenshots
1.1let’s create a staging directory for all oracle softwareLogin to server as oracle
1.2Create a new staging directoryWhat is the Staging Directory?It is temporary directory to stage the softwaremkdir -p /data/staging/19CNote: If you are getting “permission denied” error when trying to create /data/staging/19C directory, be sure to login as root and execute the following before attempting to create a directory again.Login as rootChange Permission and owner on /data  with -R (Recursive) optionchmod -R 755 /datachown –R oracle:oinstall /dataChange user to oraclesu – oracle Create Directory to stage oracle softwaremkdir -p /data/staging/19Cand proceed to next step
1.3Verify directory is createdls -ld /data/staging/19C
1.4Set Up  .bash_profilecd /home/oraclevi .bash_profileAdd the following content in .bash_profile file# .bash_profile# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi# User specific environment and startup programs# User specific environment and startup programsexport ORACLE_BASE=/data/app/oracle
export ORACLE_HOME=/data/app/oracle/product/19C/dbhome_3export ORACLE_SID=primexport LD_LIBRARY_PATH=\$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=\$ORACLE_HOME/jlib:\$ORACLE_HOME/rdbms/jlibPATH=$PATH:$HOME/.local/bin:$ORACLE_HOME/binexport PATH

Oracle 19c Prerequisites Packages 

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

Download Oracle 19c Software

Note: Use Google Chrome as your browser for this exercise.

#DescriptionCommand / Details / Screenshots
1.5Login at Oracle site.If you do not have login, Sign up for a free account.Login: https://www.oracle.com/in/database/technologies/oracle19c-linux-downloads.htmlSignup @ https://profile.oracle.com/myprofile/account/create-account.jspx?
1.6Click on icon and click on Sign-in
1.7Provide your username (your email address) and password that you used to sign up. Click Sign in.
1.8Go to download section of databasesScroll down to section 19.3 – Enterprise Edition (also includes Standard Edition 2) Linux x86-64 and click on See all
1.9Click on LINUX.X64_193000_db_home.zip  You may be prompted to accept the license
1.10At this point, the download should start. If you are using chrome, then you can see this at the bottom of the screen.
1.11(Winscp) winSCP the oracle 19c database software from your windows machine to linux machine ——-Login to the server with your hostname and user credentials  Click LoginClick yes Drag and drop  the 19c software to our staging directory /data/staging/19C———Linux file transferred to the staging Directory
1.12Verify zipfile is transferred to the staging directorycd /u99/software/12c/DBls -ltr
1.13Before unzip create ORACLE_HOME directory Unzip the software into newly created ORACLE_HOME By -d flag mkdir -p /data/app/oracle/product/19C/dbhome_3ls -ld /data/app/oracle/product/19C/dbhome_3Hiunzip LINUX.X64_193000_db_home.zip -d /data/app/oracle/product/19C/dbhome_3Note: If you are getting unzip is not found, run “yum install unzip -y” as root in a new session and come back to this session and execute the command again..
1.14Once unzip is completed, you should see screen like following → 
1.15runInstaller (program to install oracle) resides. cd /data/app/oracle/product/19C/dbhome_3

——————————————————————————–END OF SECTION ———————————————————————————–

1.16Before unzip create ORACLE_HOME directory Unzip the software into newly created ORACLE_HOME By -d flag mkdir -p /data/app/oracle/product/19C/dbhome_3ls -ld /data/app/oracle/product/19C/dbhome_3unzip LINUX.X64_193000_db_home.zip -d /data/app/oracle/product/19C/dbhome_3Note: If you are getting unzip is not found, run “yum install unzip -y” as root in a new session and come back to this session and execute the command again..

——————————————————–END ————————————————-

SECTION-2

 Install Oracle 19c Database software

#DescriptionCommand / Details / Screenshots
2.1Start Xming on laptop if not already started
2.2Login to server as oracle with X-11 enabled.whoami
2.3enable X 11 forwarding on puttySet x Display location to the following localhost:0
2.4Change directory to ORACLE_HOMEcd /data/aoo.oracle/product/19C/dbhome_3pwdls -ltrh
2.5Execute runInstaller to begin Oracle 19c installation./runInstallerPress y when prompted. 
2.6Let’s wait for few seconds…
2.7step 1 of 9Select “Install database software only”Click [Next]
2.8Step 2 of 9Select “Single instance….”Click [Next]
2.9Step 3 of 9Select “Enterprise Edition”Click [Next]
2.10Step 4 of 10Oracle Base → /data/app/oracleSoftware Location → /data/app/oracle/product/19C/dbhome_3Click [Next]
2.11Step 5 of 10select all to “default groups ”Click [Next]
 Step 6 of 10 Root script execution configurationWe are going to run scripts manually so click Next…..
2.12Step 8 of 10OUI will start performing prerequisitesSimilarly, if there are any packages that you have missed earlier and OUI has detected it, install the package as root with “yum install -y” command. Be sure you login as root. Otherwise, you will get an error.Once installed, lets try again.And it worked this time. I was able to move forward 
2.13Step 9 of 10Click [install]Installation will run for a few minutes.
2.14Step 9 of 10Oracle Installation begins installing binaries.
2.15Once the installation is done, OUI will ask you run the following  scripts as root./data/app/oracle/product/19C/dbhome_3/root.shTo run as root, Open new putty session as root and copy paste the following:a./data/app/oracle/product/19C/dbhome_3/root.sh
 Step 10  of 10Click [ok]NextClick{close}
2.16Oracle 19c software installation done and logs are saved 
  

——————————————————————————– END ——————————————————————————————————

SECTION -3

Create Database using dbca

#DescriptionCommand / Details / Screenshots
3.1Login to Server as oracle(MAC Users: Make sure to do this in XQuartz)
3.2Type “dbca” to start Database Configuration Assistance
3.3Step 1 of 15You will see the following window for few seconds before the Oracle Universal Installer starts.             Click On “Create a database”Click [Next]
3.4Step 2 of 15Click on “Advance Configuration”Click [Next]
3.5Step 3 of 15Keep database type to “Oracle Single Instance Database”Use “General Purpose” templateClick [Next]
3.6Step 4 of 15Global Database Name: TESTDBSIDTESTDBcheck “Create as container Database”Click [Next]
3.7Step 5 of 15Select “Use the following for the database ….”Click [Next]
3.8keep Select Fast Recovery Option same as ScreenshotClick [Next]
3.9Step 7 of 15Keep the listener same as screenshotClick [Next]
3.10Step 8 of 15Keep all unselectedClick [Next]
3.11Step 9 of 15Select on “Use Automatic Shared Memory ManagementSGA = 1102PGA = 360[Click Next]
3.12Step 10 of 15Deselect everything on EM optionsClick [Next]
3.13Step 11 of 15Provide password. Password I have given is abc123. Although this kind of password is not recommended, I wanted to show you the error you will get if password is not strong.Click [Next]
3.14Step 12 of 15Select “Create Database”Select “Save as database template”Provide the template name as “MyFirstDBTemplate”Select “Generate database creation scripts””
3.15Step 13 of 15Click on “Save Response File”                                Click on “Save” when prompted on a new window.                                  Click [Finish]
3.16Step 14 of 15Progress page will start. It will show the progress. Be patient even if it is stuck on 0%. It will complete as long as you have not made any error.DO NOT hit cancel. 
3.17Step 15 of 15Click [Close]
3.18Let’s verify if the instance is all good to be tested.Login to server as oracleVerify pmon process for TESTDB is workingps -ef | grep pmonSet Oracle Environment to TESTDB. oraenv → TESTDBLogin as syssqlplus / as sysdbashow userSelect status from v$instance;Select systimestamp from dual;!hostname

——————————————————————————————THE END——————————————————————————————–

Hope it Helps

Leave a Reply

Your email address will not be published. Required fields are marked *