19c新特性-通过自动执行root.sh脚本安装Oracle Database 19c

Before You Begin

This 15-minute tutorial shows you how to install the Oracle Database 19c with automated root scripts execution.

Background

In Oracle Database 18c, the installation of the Oracle Database software requires root scripts to be executed manually.

What Do You Need?

  • Oracle Database 19c software appropriate for your platform that you store in a staging directory

section 1Prepare the Directory

  1. Log in to your server as root and create the directory dedicated for the Oracle Database 19c software.
    mkdir -p /u01/app/oracle/product/19.0.0/dbhome_2
    
  2. Go to the directory.
    cd /u01/app/oracle/product/19.0.0/dbhome_2
    
  3. Unzip db_home.zip to the directory dedicated for the Oracle Database 19c installation.
    unzip /staging/db_home.zip 
    
  4. Change the group and owner ownership of the directories where the files are unzipped.
    cd /u01
    chown -R oracle * 
    chgrp -R oinstall *
  5. Quit the root session.
    exit

section 2Install Oracle Database 19c

In this section, you install the Oracle Database 19c using the Oracle Universal Installer and the automatic root scripts execution.

  1. Log in to your server as oracle and go to the directory dedicated for the Oracle Database 19c software.
    cd /u01/app/oracle/product/19.0.0/dbhome_2
  2. Launch runInstaller.
    ./runInstaller
  3. In the Select Configuration Option page, select Set Up Software Only .
  4. In the Select Database Installation Option page, click Next.
  5. In the Select Database Edition page, click Next.
  6. In the Specify Installation Location page, click Next.
  7. In the Privileged Operating System Groups page, click Next.
  8. In the Root script execution configuration page, check Automatically run configuration scripts, and provide the password for the root user. Click Next.
  9. In the Perform Prerequisite Checks page, check Ignore All and click Next. If there is a warning message, choose Yes.
  10. In the Summary page, click the Save Response File… . This allows you to observe the way the root scripts automatic execution is recorded in the response file. Select the /tmp directory to save the db.rsp response file. Click Save and then Install.
  11. In the Install Product page, the Progress displays the steps executed until the following message appears:Warning message

    Description of the illustration [root.png]

    Click Yes.
  12. In the Finish page, click Close. The installation is complete.

section 3Read the Response File

  1. Go to the directory where the response file is created.
    cd /tmp
  2. Read the response file.
    cat db.rsp 

    Use the db.rsp to view the resulting response file.

  3. Read the information that is relevant for the feature.
    oracle.install.db.rootconfig.executeRootScript=true
    #--------------------------------------------------------------------------------------
    # Specify the configuration method to be used for automatic root script execution.
    #
    # Following are the possible choices:
    #   - ROOT
    #   - SUDO
    #--------------------------------------------------------------------------------------
    oracle.install.db.rootconfig.configMethod=ROOT 

section 4Clean Up the Software Installed

Specify the list of database names that are configured in this Oracle home []: 
  1. If the OBE was a test for an installation, and if you want to deinstall the installed software, go to the directory where the Oracle Database 19c sotfware is installed.
    cd /u01/app/oracle/product/19.0.0/dbhome_2/deinstall
  2. Launch deinstall.
    ./deinstall
    
  3. Answer the first question during the deinstallation.
  4. Enter return because you did not create any database after the installation.
  5. Answer the second question during the deinstallation.
    Oracle Home selected for deinstall is: /u01/app/oracle/product/19.0.0/dbhome_2
    Inventory Location where the Oracle home registered is: /u01/app/oraInventory
    Do you want to continue (y - yes, n - no)? [n]: y
  6. Read the deinstall_output.txt file to ensure that the deinstallation completed successfully.
    Oracle Universal Installer cleanup was successful.
    ...
    Oracle deinstall tool successfully cleaned up temporary directories.
    ############# ORACLE DEINSTALL TOOL END #############
    
  7. Quit the session.
    EXIT
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值