This article will present a custom shell script to install oracle software : grid infrastructure and rdbms 11g/12c.

This is a korn shell script I created for educational purpose, you are free to use and change it at your convenience.

(ora_install_software.sh.zip file attachement in this article)

Before starting, you need :
- ksh installed
- Grid Infrastructure installed files (if you want to install GI)
- Oracle RDBMS installed files (if you want to install RDBMS)

How to use this script

The script can be downloaded at the end of this article.

# Script help
[oracle]$ ./ora_install_software.sh -h
     SYNOPSIS
        ora_install_software.sh [-xhv] [-o[file]] [-m[mntpoint]] [-u[owner]] [-g[group]] -t[typeinst] -s[srcinst]

     DESCRIPTION
        Script to install oracle sgbd or grid software
        with OFA directory structure

     OPTIONS
        -t [typinst],  --type=[typinst]   Set software install type ("db" or "grid")
        -s [srcinst],  --source=[srcinst] Set software install source (mandatory)
        -m [mntpoint], --mount=[mntpoint] Set oracle mountpoint (default=/u01)
        -u [owner],    --user=[owner]     Set software user owner (default=grid/oracle)
        -g [group],    --group=[group]    Set software group owner (default=oinstall)
        -o [file], --output=[file]    Set output log file (default=/dev/null)
                                      use DEFAULT keyword to autoname file
        -x, --timelog                 Add timestamp to log ("+%y/%m/%d@%H:%M:%S")
        -h, --help                    Print this help
        -v, --version                 Print script information

     EXAMPLES
        ora_install_software.sh -o DEFAULT -t grid -s /media/grid

     IMPLEMENTATION
        version         ora_install_software.sh (www.uxora.com) 0.0.1
        author          Michel VONGVILAY
        copyright       Copyright (c) http://www.uxora.com
        license         GNU General Public License
        script_id       12346

Please let me know if something's wrong with this script,
Michel.

Reference
Silent install of Oracle Grid Infrastructure 12c (uxora.com)
Silent install of Oracle 11g (uxora.com)

Attachments:
Download this file (ora_install_software.sh.zip)ora_install_software.sh.zip6 kB

Enjoyed this article? Please like it or share it.

Add comment

Please connect with one of social login below (or fill up name and email)

     


Security code
Refresh