asm 11gr2 installation & configuration

Upload: afarrah82

Post on 03-Jun-2018

248 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    1/47

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    2/47

    2/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    2) Open a Terminalsession:

    3) Select the IP address (for this example we will use: 192.168.187.128) provided by thehost from the eth0 interface:

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    3/47

    3/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    4) Using the IP address from the eth0 interface (for this example: 192.168.187.128)connect thru a putty or ssh session as follow (Login:root / Password: oracle):

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    4/47

    4/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    5) Verify the RAM, swap & tmp in the system, the minimum required RAM is 1.5 GB forOracle Grid Infrastructure for a cluster, or 2.5 GB for Grid Infrastructure for a cluster andOracle Server RAC. The minimum required swap space is 1.5 GB. Oracle recommendsthat you set swap space to 1.5 times the amount of RAM for systems with 2 GB of RAMor less. For systems with 2 GB to 16 GB RAM, use swap space equal to RAM. Forsystems with more than 16 GB RAM, use 16 GB of RAM for swap space. Ensure that

    you have at least 1 GB of space in /tmp. If this space is not available, then increase thesize, or delete unnecessary files in /tmp.

    6) Ensure you have at least 4.5 GB of space for the grid infrastructure for a (Grid home):

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    5/47

    5/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    7) Create the oracleOS user and oinstall& dbagroups and create base directories

    # groupadd -g 1000 oinstall# groupadd -g 1200 dba

    # useradd -u 1100 -g oinstall -G dba oracle# mkdir -p /u01/app/11.2.0/grid# mkdir -p /u01/app/oracle# chown -R oracle:oinstall /u01# chmod -R 775 /u01/

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    6/47

    6/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    8) Install the ASMLIB RPMs:

    http://www.oracle.com/technology/software/tech/linux/asmlib

    8.1) For this example we are using the next kernel release:

    [root@asmteam /]# uname -r2.6.18-164.el5PAE

    8.2) So the next 3 RPMs need to be downloaded:

    http://www.oracle.com/technology/software/tech/linux/asmlib/rhel5.html

    =)> Intel IA32 (x86) Architecture

    ==)> Library and Tools

    a) oracleasm-support-2.1.3-1.el5.i386.rpm

    b) oracleasmlib-2.0.4-1.el5.i386.rpm

    ==)> Drivers for kernel 2.6.18-164.el5

    c) oracleasm-2.6.18-164.el5PAE-2.0.5-1.el5.i686.rpm

    8.3) They can be installed as described in the next document:

    http://www.oracle.com/technology/tech/linux/asmlib/install.html

    8.4) Validate oracleasm RPMs were installed:

    [root@asmteam asmlibRPMs]# rpm -qa | grep oracleasm-support-2.1.3-1.el5oracleasm-support-2.1.3-1.el5

    [root@asmteam asmlibRPMs]# rpm -qa | grep oracleasmlib-2.0.4-1.el5oracleasmlib-2.0.4-1.el5

    [root@asmteam asmlibRPMs]# rpm -qa | grep oracleasm-2.6.18-164.el5PAE-2.0.5-1.el5oracleasm-2.6.18-164.el5PAE-2.0.5-1.el5

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    7/47

    7/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    9) List the disks available for ASM/ASMLIB, for this example we will use 3 SCSI disks of10 GB each:

    10) Check if the partitions exist:

    # ls -l /dev/sdb1 /dev/sdc1 /dev/sdd1

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    8/47

    8/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    11) If the partitions do not exists then create one partition per disk:

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    9/47

    9/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    10/47

    10/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    11/47

    11/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    12) Setup the Oracle ASMLIB API (Linux only):

    13) Create the ASMLIB disks on the 3 SCSI disk partitions:

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    12/47

    12/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    14) Download the Oracle Database 11g Release 2 Grid Infrastructure (11.2.0.1.0)for Linux x86 fromhttp://www.oracle.com/technology/software/products/database/index.html

    =)> linux_11gR2_grid.zip (980,831,749 bytes) (cksum - 3583041487)

    15) Download the Oracle Database 11g Release 2 (11.2.0.1.0) for Linux x86 fromhttp://www.oracle.com/technology/software/products/database/index.html

    =)> linux_11gR2_database_1of2.zip (1,285,396,902 bytes) (cksum - 2237015228)=)> linux_11gR2_database_2of2.zip (995,359,177 bytes) (cksum - 2649514514)

    16) FTP the linux_11gR2_grid.zip, linux_11gR2_database_1of2.zip &linux_11gR2_database_2of2.zip to your Linux box:

    16.1) Create a stage directory, for this example I am creating it at/u01 filesystem:

    # mkdir /u01/stage

    16.2) Then upload the three *.zip files to your Linux box and place the files at yourstaging directory:

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    13/47

    13/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    16.3) Uncompress the three zip files:

    [root@asmteam /]# unzip linux_11gR2_grid.zip; unzip linux_11gR2_database_1of2.zip;unzip linux_11gR2_database_2of2.zip

    16.4) You will see 2 new directories (grid& database) on the/u01/stage directory:

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    14/47

    14/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    17) Switch to the oracle OS user, setup & set the environment variables in theinitialization file (for this example we are using bash shell (.bash_profile)):

    ORACLE_HOME=/u01/app/11.2.0/gridORACLE_SID=+ASMPATH=$ORACLE_HOME/bin:$PATH

    export ORACLE_HOMEexport ORACLE_SIDexport PATH

    echo $ORACLE_HOMEexport $ORACLE_SIDexport $PATH

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    15/47

    15/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    16/47

    16/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    18) Install the Oracle Grid Infrastructure 11gR2 from the graphical session as oracleOS user (for this example we will use VNCserver):

    18.1) Start a vncserver & set the Password = oracle:

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    17/47

    17/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    18.2) Connect to the vncserver using the IP address associated with the host:

    18.3) Execute the OUI (Oracle Universal Installer) as oracle OS user:

    $ /u01/stage/grid/runInstaller

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    18/47

    18/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    18.4) Select: Install and Configure Grid Infrastructure for a Standalone Server.

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    19/47

    19/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    18.5) Select the desired languages.

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    20/47

    20/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    18.6) Create the desired diskgroups through the Create ASM Disk Group window, (forthis Example we are creating the DATAdiskgroup, as Normal redundancy diskgroup,using the ORCL:ASMDISK1& ORCL:ASMDISK2ASMLIB disks):

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    21/47

    21/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    18.7) Set the desired password for the ASM& ASMSNMPusers through the SpecifyASM Password window:

    18.8) If you password does not conform the Oracle recommended standards then youwill receive the next warning, so you can just ignore it & press [Yes] or provide astronger password.

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    22/47

    22/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    18.9) Assign the OS groups for the ASM database Administrator, ASM InstanceAdministrator Operator & ASM instance Administrator through the PrivilegedOperating System Groups window, (for this example we will use dbaOS group for the3 ASM groups, but you are always welcome to specify different OS groups to enforcemore security and separate tasks & roles):

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    23/47

    23/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    18.10) Specify the Oracle Home & Oracle Base directories through the SpecifyInstallation Location window:

    Oracle Base: /u01/app/oracle

    Oracle Grid Home: /u01/app/11.2.0/grid

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    24/47

    24/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    18.11) Accept the Oracle Inventory Location, by pressing the [Next] button through theCreate Inventory window:

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    25/47

    25/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    18.12) Some OS requirements (swap & kernel parameters) did not pass the OUIverification, please review each requirement, through the Perform PrerequisitesChecks window (below):

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    26/47

    26/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    18.13) Please press the [Fix & Check Again] button (above) to correct the prerequisites,then the Execute Fixup Script window will be displayed:

    18.14) Then run the runfixup.sh script as root user to implement the fixes:

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    27/47

    27/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    18.15) Press the [OK] button after execute the runfixup.sh script through the ExecuteFixup Script window:

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    28/47

    28/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    18.16) The required kernel parameters were adjusted but the swap area still needs to beincreased:

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    29/47

    29/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    18.17) You can ask your SA to resize the swap area as suggested by the OUI (seeabove), for this example we will add a 1GB swap file (on the /directory) as described inthe next document:

    http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/custom-guide/s1-swap-adding.html

    Note: Enable it at boot time, edit /etc/fstab and include the new swap device (/swapfile):

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    30/47

    30/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    18.18) After the swap area was increased please press the [Check Again] button,through the Perform Prerequisites Checks window (below):

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    31/47

    31/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    18.19) The Summary window will appear, so please review it and press the [Finish]button (below) to start with the Grid Infrastructure Installation & ASM instance creation:

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    32/47

    32/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    18.20) Then just monitor the progress of this installation:

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    33/47

    33/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    34/47

    34/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    35/47

    35/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    18.21) Execute the orainstRoot.sh& root.shscripts as root user:

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    36/47

    36/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    37/47

    37/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    18.22) Then return to the Execute Configuration Scripts window and press the [OK]button:

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    38/47

    38/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    18.23) Continue monitoring the Post Installation / configuration steps:

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    39/47

    39/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    18.24) Confirm the 11gR2 Grid Infrastructure Installation completed successfully, thenpress the [Close] button:

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    40/47

    40/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    19) Verify the OHAS & CSS services are up and running:

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    41/47

    41/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    20) Verify the ASM instance is up and running:

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    42/47

    42/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    21) Run the ASMCA through a graphical session and create theRECOdiskgroup on theORCL:ASMDISK3(/dev/oracleasm/disks/ASMDISK3) ASMLIB disk:

    21.1) Select the [Create] button (below):

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    43/47

    43/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    21.2) Specify the Disk Group Name as RECO (as External redundancy diskgroup),select the ORCL:ASMDISK3disk (below), press the [Show Advanced Options] button todisplay the AU & Compatibility attributes (these are modifiable but for this example weare using the default values):

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    44/47

    44/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

    21.3) And finally press the [OK] button to create the RECOdiskgroup:

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    45/47

    45/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    46/47

    46/47

    ASM 11gR2 Installation & Configuration Author: Esteban Bernal

  • 8/12/2019 ASM 11gR2 Installation & Configuration

    47/47

    47/47

    21.4) Review the diskgroup creation (below) and press the [Exit] button: