Wednesday, September 23, 2009

Installing Oracle 11gR2 Standalone with ASM Part 1 – Install Grid Software

I couldn’t wait to get my hands on Oracle 11gR2 and play with some of the new features.  Here are some instructions for getting a standalone instance up and running using ASM on a VMware virtual.  Here is my virtual machine configuration:

  • OEL5 (basic server install)
  • 1.5GB Memory 1GB swap
  • 10GB Disk w/4 partitions (not formatted) for ASM
  • 1 Bridged NIC

The steps I followed for my installation are below.

  1. Setup the environment by following the prerequisites for installing Oracle 11gR2 on Linux.
    • I created a separate user (oragrid) and groups (asmadmin, asmdba, asmoper) for the grid software
  2. Run the installer from your staging area
  3. I chose Install and Configure for Standalone
    • Grid_Install_on_Standalone
  4. Choose your language
    • languages
  5. Create ASM Disk group
    • create_ASM_disk_grp
    • You may have to change the Discovery Path to find your disks
    • discovery_path
  6. Choose External redundancy and select the candidate disks
    • grid_create_asm_disk_group
  7. Create passwords (Note I did not follow Oracle’s recommendations)
    • asm_pwd
  8. Select the operating system groups
    • ASM_OS_groups
  9. Specify install locations
    • asm_install_location
  10. Create the inventory
    • asm_create_inv
  11. Go through prerequisite checks.  I like the improvements here, and it will actually create fix scripts in some cases.  I will ignore my warnings, as I know about them.
    • asm_prereq
  12. Install summary
    • asm_summary
  13. After install you will need to run 2 scripts as root
    • /u01/oraInventory/orainstRoot.sh
    • [root@oracle1 CVU_11.2.0.1.0_oragrid]# /u01/oraInventory/orainstRoot.sh
      Changing permissions of /u01/oraInventory.
      Adding read,write permissions for group.
      Removing read,write,execute permissions for world.
    • Changing groupname of /u01/oraInventory to oinstall.
      The execution of the script is complete.
      You have mail in /var/spool/mail/root

    • /u01/app/product/11.2.0/grid/root.sh
    • Running Oracle 11g root.sh script...

      The following environment variables are set as:
          ORACLE_OWNER= oragrid
          ORACLE_HOME=  /u01/app/product/11.2.0/grid

      Enter the full pathname of the local bin directory: [/usr/local/bin]:
         Copying dbhome to /usr/local/bin ...
         Copying oraenv to /usr/local/bin ...
         Copying coraenv to /usr/local/bin ...

      Creating /etc/oratab file...
      Entries will be added to the /etc/oratab file as needed by
      Database Configuration Assistant when a database is created
      Finished running generic part of root.sh script.
      Now product-specific root actions will be performed.
      2009-09-23 15:14:59: Checking for super user privileges
      2009-09-23 15:14:59: User has super user privileges
      2009-09-23 15:14:59: Parsing the host name
      Using configuration parameter file: /u01/app/product/11.2.0/grid/crs/install/crs
      config_params
      Creating trace directory
      LOCAL ADD MODE
      Creating OCR keys for user 'oragrid', privgrp 'oinstall'..
      Operation successful.
      CRS-4664: Node oracle1 successfully pinned.
      Adding daemon to inittab
      CRS-4123: Oracle High Availability Services has been started.
      ohasd is starting
      acfsroot: ACFS-9320: Missing advmutil.

      acfsroot: ACFS-9320: Missing advmutil.bin.

      acfsroot: ACFS-9320: Missing fsck.acfs.

      acfsroot: ACFS-9320: Missing fsck.acfs.bin.

      acfsroot: ACFS-9320: Missing mkfs.acfs.

      acfsroot: ACFS-9320: Missing mkfs.acfs.

      acfsroot: ACFS-9320: Missing mkfs.acfs.bin.

      acfsroot: ACFS-9320: Missing mount.acfs.

      acfsroot: ACFS-9320: Missing mount.acfs.bin.

      acfsroot: ACFS-9320: Missing acfsdbg.

      acfsroot: ACFS-9320: Missing acfsdbg.bin.

      acfsroot: ACFS-9320: Missing acfsutil.

      acfsroot: ACFS-9320: Missing acfsutil.bin.

      acfsroot: ACFS-9301: ADVM/ACFS installation can not proceed:

      acfsroot: ACFS-9302: No installation files found at /u01/app/product/11.2.0/grid
      /install/usm/EL5/x86_64/2.6.18-8/2.6.18-8.el5-x86_64/bin.

      oracle1     2009/09/23 15:15:35     /u01/app/product/11.2.0/grid/cdata/oracle1/b
      ackup_20090923_151535.olr
      Successfully configured Oracle Grid Infrastructure for a Standalone Server
      Updating inventory properties for clusterware
      Starting Oracle Universal Installer...

      Checking swap space: must be greater than 500 MB.   Actual 3007 MB    Passed
      The inventory pointer is located at /etc/oraInst.loc
      The inventory is located at /u01/oraInventory
      'UpdateNodeList' was successful.

  14. Install of grid software complete.  In the next post, we’ll install the database.