Tuesday, January 24, 2023

Install Oracle Client In Silent Mode on Linux 8

  1. Install preinstall package for Oracle 19c
  2. yum install -y oracle-database-preinstall-19c
  3. If you using RHEL8, then retreive RPM's from repository as follows
  4. curl -o oracle-database-preinstall-19c-1.0-2.el8.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64/getPackage/oracle-database-preinstall-19c-1.0-2.el8.x86_64.rpm
    
    yum -y localinstall oracle-database-preinstall-19c-1.0-2.el8.x86_64.rpm
  5. Download oracle 19c database software
  6. https://www.oracle.com/database/technologies/oracle19c-linux-downloads.html
  7. Copy downloaded file to the server and unzip under oracle_home
  8. mkdir /u01/app/oracle/product/19.3.0 -p
    cd /u01/app/oracle/product/19.3.0 
    unzip ~/LINUX.X64_193000_client.zip
  9. Modify Response file as below
  10. /usr1/app/oracle/product/client/response/client_install.rsp
    
    UNIX_GROUP_NAME=oinstall
    INVENTORY_LOCATION=/usr1/app/oracle/product/oraInventory
    ORACLE_HOME=/usr1/app/oracle/product/19.3.0/
    ORACLE_BASE=/usr1/app/oracle/product
    oracle.install.client.installType=Administrator
    
  11. To avoid bug '[INS-08101] Unexpected error while executing the action at state: 'supportedOSCheck'' in Oracle 19c on RHEL8
  12. export CV_ASSUME_DISTID=OEL7.8
  13. Install DB software as silent mode
  14. ./runInstaller -showProgress -silent  -responseFile /usr1/app/oracle/product/19.3.0/client/response/client_install.rsp
    Prepare in progress.
    ..................................................   7% Done.
    
    Prepare successful.
    
    Copy files in progress.
    ..................................................   12% Done.
    ..................................................   17% Done.
    ..................................................   22% Done.
    ..................................................   27% Done.
    ..................................................   32% Done.
    ..................................................   37% Done.
    ..................................................   42% Done.
    ..................................................   47% Done.
    ..................................................   52% Done.
    ........................................
    Copy files successful.
    
    Link binaries in progress.
    ..........
    Link binaries successful.
    
    Setup files in progress.
    ..................................................   57% Done.
    ....................
    Setup files successful.
    
    Setup Inventory in progress.
    
    Setup Inventory successful.
    
    Finish Setup in progress.
    ..........
    Finish Setup successful.
    The installation of Oracle Client 19c was successful.
    Please check '/usr1/app/oracle/oraInventory/logs/silentInstall2023-01-20_11-07-59AM.log' for                                                                                                 more details.
    
    Setup Oracle Base in progress.
    
    Setup Oracle Base successful.
    ..................................................   67% Done.
    
    Prepare for configuration steps in progress.
    
    Prepare for configuration steps successful.
    ..................................................   82% Done.
    
    Oracle Client Configuration in progress.
    
    Oracle Client Configuration successful.
    ..................................................   96% Done.
    
    As a root user, execute the following script(s):
            1. /usr1/app/oracle/oraInventory/orainstRoot.sh
    
    
    
    Successfully Setup Software with warning(s).
    ..................................................   100% Done.
    
  15. Execute root.sh from root user
  16. /usr1/app/oracle/oraInventory/orainstRoot.sh

No comments:

Post a Comment