The Musings of CrashSensei

Random thoughts caught by the InterWeb

Installing Oracle 12c RAC One Node

By crashsensei | November 2, 2017 | 0 Comment

Intro

This article is a continuation of the “Preparing Oracle Linux 7 for bubba”

Initial Setup

  1. Login or Switch to the Grid user su - grid
  2. Extract the grid software image
    mkdir -p /opt/oracle/app/grid/product/12.2.0/grid
    unzip /opt/oracle/dump/linuxx64_12201_grid_home.zip -d /opt/oracle/app/grid/product/12.2.0/grid
  3. Login as the Root user su - root
  4. Install Cvuqdisk
    1. Setup the environment vars
      CVUQDISK_GRP=oinstall
      export CVUQDISK_GRP
    2. Install the cvuqdisk RPM from the grid install files
      rpm -iv /opt/oracle/app/grid/product/12.2.0/grid/cv/rpm/cvuqdisk-1.0.10-1.rpm
  5. Configure ASM disks
    1. Setup the environment vars
      export ORACLE_HOME=/opt/oracle/app/grid/product/12.2.0/grid
      export ORACLE_BASE=/tmp
    2. Use ASMCMD to provision disks
      DOUBLE CHECK YOU’RE PROVISIONING THE CORRECT DEVICES

      cd /opt/oracle/app/grid/product/12.2.0/grid/bin
      ./asmcmd afd_label DATA1 /dev/sdd --init
      ./asmcmd afd_label FRA1 /dev/sde --init
      ./asmcmd afd_label DATA2 /dev/sdg --init

       

Configure Grid Software

  1. Deploy software and launch configuration wizard
    1. Login or Switch to the Grid user su - grid
    2. Setup the DISPLAY environment variable if needed
      [ `env | grep DISPLAY` ] && echo "Display already set" || \
      export DIPLAY=<MACHINE-NAME>:0.0
    3. Setup the ORACLE_BASE environment variable
      export ORACLE_BASE=/opt/oracle/app/grid
    4. Run the configuration wizard
      cd /opt/oracle/app/grid/product/12.2.0/grid
      ./gridSetup.sh
  2. Select the Oracle Restart option then click Next
  3. Wait patiently as the checking of the Oracle base can take a long time.
  4. Config ASM Disk Group
    1. Ensure Disk group name is DATA
    2. For Redundancy choose External
    3. Select the two appropriate DATA devices and then click Next
  5. Enter a password for the SYS and ASMSNMP users and then click next
  6. Click Next to skip registering with EM
  7. Verify the OS groups and click Next
  8. Verify Oracle base and then click Next
  9. Verify the Inventory Directory and then click Next
  10. Root script execution
    1. Select Automatically run configuration scripts
    2. Ensure Use “root” user credential is selected
    3. Enter the root password
    4. Click Next
  11. If any prerequisite checks fail resolve the issues before continuing
  12. Click Install
  13. Wait as the install proceeds
  14. Click Yes to confirm running of root scripts
  15. Continue to wait (the root scripts take a very long time)
  16. Once finished click Close

Install Oracle TFA Software

  1. Login or Switch to the Root user su - root
  2. Setup the DISPLAY environment variable if needed
    [ `env | grep DISPLAY` ] && echo "Display already set" || \
    export DIPLAY=<MACHINE-NAME>:0.0
  3. Setup the environment variables
    export ORACLE_BASE=/opt/oracle/app/grid
    export ORACLE_HOME=/opt/oracle/app/grid/product/12.2.0/grid
  4. Run the install script wizard
    cd /opt/oracle/app/grid/product/12.2.0/grid/suptools/tfa/release/tfa_home/install
    ./roottfa.sh

Install Database Software

  1. Deploy software and launch configuration wizard
    1. Login or Switch to the Oracle user su - oracle
    2. Setup the DISPLAY environment variable if needed
      [ `env | grep DISPLAY` ] && echo "Display already set" || \
      export DIPLAY=<MACHINE-NAME>:0.0
    3. Setup the ORACLE_BASE environment variable
      export ORACLE_BASE=/opt/oracle/app/oracle
    4. Run the database installer
      cd /opt/oracle/dump/database
      ./runInstaller
  2. Uncheck I wish to receive security updates via My Oracle Support and click Next
  3. Acknowledge the warning message by clicking Yes
  4. Select Create and configure a database and click Next
  5. Select Server class and click Next
  6. Select Oracle RAC One Node database installation and click Next

TAGS

0 Comments