Oracle 11g Release 2 Install Guide – Single database binary installation

Oracle 11g Release 2 – Single database binary installation guide

 

Local System configuration

Installation took place on laptop with CentOS 5 x86_64 (Kernel 2.6.18-128.2.1.el5)

  • 4 GB Memory
  • 500 GB local disk

 

Steps required to install Oracle 11g Release 2

  • Configure Storage
  • Check and fulfill pre-requirements
  • Binary installation of database
  • Listener configuration
  • Creation of database

 

Check and fullfill requirements

Storage Requirements

  • As always – recommendation: SAME (stripe and mirror everything)
  • Valid storage options for single database instance:
    • file system (ext3, reiser, xfs, etc al)
    • ASM
    • ACFS (!! only for non-database files (i.e. Binary files, trace files and so on!!)
    • NFS
    • ISCSI
    • RAW Disks (read documentation; deprecated option!)

 

SWAP

  • Between 1 and 2 GB RAM –> SWAP 1.5 times the size of RAM
  • Between 2 and 16 GB RAM –> SWAP equal to size of RAM
  • > 16 GB RAM –> 16 GB SWAP

Automatic Memory Management

  • Required /dev/shm with appropriate size (i.e. SGA of 16 GB required /dev/shm to be 16 GB+)
  • Huge Pages and autom. Memory Management are INCOMPATIBLE

 

Supported Operating Systems

  • on 32-bit Linux
    • Asianux 2 Update 7 (Kernel 2.6.9 or later)
    • Asianux 3 (Kernel 2.6.18 or later)
    • Oracle Enterprise Linux 4 Update 7  (Kernel 2.6.9 or later)
    • Oracle Enterprise Linux 5 Update 2 (Kernel 2.6.18 or later)
    • Red Hat Enterprise Linux 4 Update 7 (Kernel 2.6.9 or later)
    • Red Hat Enterprise Linux 5 Update 2 (Kernel 2.6.18 or later)
    • SUSE Linux Enterprise Server 10 SP2 (Kernel 2.6.16.21 or later)
    • SUSE Linux Enterprise Server 11 (2.6.27.19 or later)

!! ACFS and ADVM are ONLY supported on RHEL 5  and OEL 5 !!

 

  • on 64-bit Linux
    • Asianux 2 (Kernel 2.6.9 or later)
    • Asianux 3 (Kernel 2.6.18 or later)
    • Oracle Enterprise Linux 4 Update 7 (Kernel 2.6.9 or later)
    • Oracle Enterprise Linux 5 Update 2 (Kernel 2.6.18 or later)
    • Red Hat Enterprise Linux 4 Update 3 (Kernel 2.6.9 or later)
    • Red Hat Enterprise Linux 5 Update 2 (Kernel 2.6.18 or later)
    • SUSE Linux Enterprise Server 10 SP2 (Kernel 2.6.16.21 or later)
    • SUSE Linux Enterprise Server 11 (2.6.27.19 or later)

!! ACFS and ADVM are ONLY supported on RHEL 5 and OEL 5 !!

 

Required Packages

refer to: http://download.oracle.com/docs/cd/E11882_01/install.112/e10840/pre_install.htm

Users and Groups

For separation of rights (i.e. Manage ASM storage, manage database instance)

Available groups:

  • OSDBA (typical: “dba”; have SYSDBA privileges on database)
  • SYSOPER (typical: “sysoper”; optional, limited set of administrative priv)
  • OSDBA for ASM (typical: “asmdba”; full administrative access to ASM instance)
  • OSASM for ASM (typical: “asmadmin”; administrative access to ASM instance via SQL*Net)
  • OSOPER for ASM (typical: “asmoper”; optional, like SYSOPER group for limited access)

 

  • Minimal group needed: OSDBA group
    (in this document the osdba group is named “dba”)

 

Shell Limits

  • In /etc/security/limits.conf

oracle              soft     nproc    16384
oracle              hard    nproc    16384
oracle              soft     nofile   65536
oracle              hard    nofile   65536

(replace “oracle” with user holding the installation)

  • In /etc/pam.d/login add if not existssession    required     pam_limits.so

 

Kernel Limits (MINIMUM values) in /etc/sysctl.conf

kernel.sem=250 32000 100 128
kernel.shmall=2097152
kernel.shmmax=536870912
kernel.shmmni=4096
fs.file-max=6815744
fs.aio-max-nr=1048576
net.ipv4.ip_local_port_range=9000 65500
net.core.rmem_default=262144
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048576

– SuSE only –
vm.hugetlb_shm_group=<gid of osdba group>

The values in /etc/sysctl.conf should be tuned (i.e. according to the number of instance, available memory, number of connections,…)

 

Kernel Limits – how to calculate them

The values in /etc/sysctl.conf should be tuned (i.e. according to the number of instance, available memory, number of connections,…)

see Part 2 for guides how to calculate the kernel parameters

 

User Profile file (minimum file) ~/.bash_profile (RHEL, OEL) or ~/.profile (SuSE)

export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2/ora11r2p
export ORACLE_SID=ORA11R2P
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
umask 022

ATTENTION: This profile file is for use with a dedicated user for each database binary installation. If you wish to install several binary installation under one single user make sure ORACLE_HOME and TNS_ADMIN is unset

 

Installing the database binaries 

We will install an Oracle 11g Release 2 database (stand-alone without grid infrastructure, without asm), operating system user is named “ora11”, osdba group named “dba” with home directory “/u01/app/oracle/product/11.2.0/ora11”.

Note: According to OFA the directory shall be named “…11.2.0/db_1” For easy management we install a dedicated binary installation under a dedicated user for every database which runs on the system and name them accordingly.

For instance binary database installation for database with SID “ORA11” is held by operating system user named “ora11” with home directory “…11.2.0/ora11”.
The binary installation for the database with SID “ORA11T” is held by the user named “ora11t” with home directory “@…11.2.0/ora11t”.

You can of course use one single user on operating system level for having one or more binary installations. It´s up to you.
 

Create User

 mkdir -p /u01/app/oracle/product/11.2.0/ora11
 useradd -g dba -d /u01/app/oracle/product/11.2.0/ora11 ora11
 passwd ora11

Create profile file

 export ORACLE_BASE=/u01/app/oracle
 export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/ora11
 export ORACLE_SID=ORA11
 export NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
 export TMP=$ORACLE_HOME/tmp
 export TNS_ADMIN=$ORACLE_HOME/network/admin
 export TEMP=$TMP
 export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH

 

Check, if X11 works

export DISPLAY=localhost:0.0
xterm

Check Limits

ulimit -a         (as user “ora11”)

 step1_001

Note: “open files” and “max user processes” should show values greater or equial the  requisites.

 

Start installer and perform binary installation

 
step1_002



step1_003
step1_004
step1_005
step1_006
step1_007
step1_008
step1_009
step1_010
step1_011
step1_012
step1_013
step1_014
step1_015
step1_016
step1_017
step1_018
step1_019

 

Thats it!

 

The next step would be creating the database itself. A guide how to do this can be found here.

Posted in Oracle 11g Release 2 | 3 Comments

Oracle 11g Release 2 Install Guide – Overview

Oracle 11g Release 2 – Overview

New Features

  • New Features – a non-complete overview:
    • Automatic Block repair in data guard scenarios (i.e. Replace defective block on standby with valid block from primary database or vice versa)
    • Automatic determance of parallelism degree based on object size, query complexity and hardware resouces
    • RAC installation complexity dramatically reduced – we will evaluate this :-)
    • Storage of Oracle Cluster Registry and Voting Disk in ASM
    • Oracle Restart (automatically (re)starts database instance, ASM, listener and so on)
    • Utility for complete uninstallation of Oracle RAC
    • Reduced (“zero downtime”) for patching RAC clusters
    • Instance Caging: Limit number of CPUs used
    • Scheduler improvements (emailing, file watch, run procedures on remote db)
    • ACFS (ASM Cluster File System): Cluster file system based on ASM for non-database datafiles, i.e. (Oracle) Binary installations, trace files, alert logs and so on
    • ASM Dynamic Volume Manager: create volumes out of disk groups and use it to create a file system (ext3, reiserfs, etc pp) on top of it
    • ASM FS Snapshots
    • Intelligent data placement: frequently accessed blocks are placed on the edge of the disk where I/O performance is higher by ASM
    • ASM File Access Control
    • New compression algorithm (LZO) offers fast compression and de-compression
    • most “cool” ASM features require 11g release 2 database and asm compatible level (= everything 11.2)

Oracle 11g R 2 – Components

  • Oracle Database
    • traditional database (rdbms)
    • ASM module
    • Listener et al
  • Oracle Infrastructure (=foundation for Oracle RAC), includes:
    • Clusterware
    • ASM Module
    • Oracle Restart

?? Is 11g Release 2 ready for production yet ??

  • From the Authors point of view: NO!
  • Release of 11g Release 2 was driven by marketing and promise “release in September 2009”
  • Latest beta of 11g R2 (released two weeks before “productive release” still contained critical bugs
  • 11.2.0.1.0 good for testing and educational purpose
  • For productive environments:
    • Wait at least until 11.2.0.2.0! (i.e. The first patchset)
Posted in Oracle 11g Release 2 | 2 Comments

Oracle 11g Release Installation HowTo

Oracle 11g Release 2 was released on 1st of September 2009. From my point of view this version will be the next widely used version after 10 Release 2. In myopinion 11g Release 1 is a quite good and stable version – but it is a “Release 1” and many ISVs waited for 11g R2 to apperas to certify their products against.

 

I am investigating Oracle 11g Release 2 over the next few weeks starting with a single database installation, installing a 2-node-rac with ASM, testing ADVM and ACFS. Finally i will investigate database features, for instance advanced compression.

I will continuously publish my experiences on this blog.

At this point (14th September) the document covers:

  • oracle 11g release overview
  • new features
  • single database installation
  • grid infrastructure installation (formerly known as “clusterware”)
  • Installing Oracle 11g Release 2 database binaries on ACFS
  • How to size ASM disk groups of OCR and Voting disks correctly

 

The most recent version can be found here:

oracle-11g-release2-installguide-2009-09-14

 

Hopefully today i will add the creation of a rac database as well.

 

Please leave me a note or send me an email if you have any feedback.

Posted in Oracle 11g Release 2 | Leave a comment