Oracle 11g Grid Installation
Oracle 11g Grid Installation
Oracle 11g Grid Installation
The Oracle Grid Infrastructure for a standalone server is the Oracle software that
provides system support for an Oracle database including volume management, file
system, and automatic restart capabilities. If you plan to use Oracle Restart or Oracle
Automatic Storage Management (Oracle ASM), you must install Oracle Grid
Infrastructure before installing your database. Oracle Grid Infrastructure for a
standalone server is the software that includes Oracle Restart and Oracle ASM.
Oracle combined the two infrastructure products into a single set of binaries that is
installed as the Oracle Grid Infrastructure home. Oracle Grid Infrastructure should be
installed before installing Oracle Database 11g Release 2.
Oracle ASM is a volume manager and a file system for Oracle database files that
supports single-instance Oracle Database and Oracle Real Application Clusters
(Oracle RAC) configurations. Oracle ASM also supports a general purpose file system
for your application needs including Oracle Database binaries. Oracle ASM is Oracle's
recommended storage management solution that provides an alternative to
conventional volume managers, file systems, and raw devices.
Oracle Restart improves the availability of your Oracle database by providing the
following:
Note:
If you want to use Oracle ASM or Oracle Restart, then you must
first install Oracle Grid Infrastructure for a standalone server and
then install Oracle Database.
Oracle Restart is used in single-instance (non-clustered)
environments only.
Memory Requirements
Disk Space Requirements
Configuring the User's Environment
The following are the memory requirements for installing Oracle Grid Infrastructure.
On Linux x86:
At least 1 GB of RAM
If the size of the RAM is less than the required size, then you must install
more memory before continuing.
The following table describes the relationship between installed RAM and the
configured swap space requirement:
Note:
On Linux x86-64:
At least 4 GB of RAM
If the size of the RAM is less than the required size, then you must install
more memory before continuing.
The following table describes the relationship between installed RAM and the
configured swap space requirement:
Note:
If the size of the RAM is less than the required size, then you must install more
memory before continuing.
To determine the size of the configured swap space, enter the following command:
If necessary, refer to the operating system documentation for information about how
to configure additional swap space.
To determine the available RAM and swap space, enter the following command:
# free
Note:
Oracle recommends that you take multiple values for the available RAM and swap
space before finalizing a value. This is because the available RAM and swap space
keep changing depending on the user interactions with the computer.
To determine the amount of free disk space available in the /tmp directory, enter the
following command:
# df -k /tmp
If there is less than 1 GB of free disk space available in the /tmp directory, then
complete one of the following steps:
Delete unnecessary files from the /tmp directory to meet the disk space
requirement.
Set the TMP and TMPDIR environment variables to specify a temporary directory
when setting the oracle user's environment.
See Also:
Extend the file system that contains the /tmp directory. If necessary, contact
the system administrator for information about extending file systems.
Complete the following tasks to set the Oracle Grid Infrastructure software owner
user's environment:
Oracle Automatic Storage Management Cluster File System (Oracle ACFS) extends
Oracle ASM technology to support of all of your application data in both single
instance and cluster configurations. Oracle Automatic Storage Management Dynamic
Volume Manager (Oracle ADVM) provides volume management services and a
standard disk device driver interface to clients. Oracle Automatic Storage
Management Cluster File System is layered on Oracle ASM through the Oracle
Automatic Storage Management Dynamic Volume Manager interface.
Oracle Automatic Storage Management Cluster File System and Oracle Automatic
Storage Management Dynamic Volume Manager are supported on Oracle Enterprise
Linux 5 and Red Hat Enterprise Linux 5 for Linux x86 and Linux x86-64. Starting with
Oracle Database 11g Release 2 (11.2.0.2), it is also supported on SUSE Linux
Enterprise Server 10 SP3 and later SUSE Linux Enterprise Server 10 Service Pack's
for Linux x86-64 only.
Note:
Oracle recommends that Oracle data files are installed in Oracle ASM disk groups.
Installing Oracle data files on an Oracle ACFS file system is not supported. Oracle
ACFS can be used as an option only when Oracle ASM is configured.
Automatic Storage Management Cluster File System (ACFS) resources are not
supported for Oracle Restart configurations on all platforms. ACFS drivers must be
manually unloaded and loaded; ACFS file systems must be manually unmounted and
mounted (after the ASM instance is running); ACFS database home file systems can
be placed into the ACFS mount registry to be mounted along with other registered
ACFS file systems.
See Also:
If you have an Oracle ASM installation from a prior release installed on your server,
or in an existing Oracle Grid Infrastructure installation, you can use Oracle Automatic
Storage Management Configuration Assistant (Oracle ASMCA) to upgrade the existing
Oracle ASM instance to 11g Release 2 (11.2), and subsequently configure disk
groups, Oracle ASM volumes and Oracle ASM file systems.
Note:
You must first shut down all databases and applications using an existing Oracle ASM
instance before upgrading it.
During installation, if you chose to use Oracle ASM and Oracle ASMCA detects that
there is a prior Oracle ASM version installed in another Oracle ASM home, then after
installing the Oracle ASM 11g Release 2 (11.2) binaries, you can start Oracle ASMCA
to upgrade the existing Oracle ASM instance.
You can then choose to configure an Automatic Storage Management File System
deployment by using the Oracle ASMCA to create an Oracle Automatic Storage
Management Dynamic Volume and an Oracle Automatic Storage Management Cluster
File System (Oracle ACFS).
See Also:
If you want to upgrade an existing Oracle ASM installation, then you must upgrade
Oracle ASM by running an Oracle Grid Infrastructure upgrade (upgrades of existing
Oracle ASM installations). If you do not have Oracle ASM installed and you want to
use Oracle ASM as your storage option, then you must complete an Oracle Grid
Infrastructure installation before you start your Oracle Database installation.
You must run Oracle Automatic Storage Management Configuration Assistant (Oracle
ASMCA) for installing and configuring Oracle ASM instances, disk groups, volumes,
and Oracle Automatic Storage Management Cluster File System (Oracle ACFS). In
addition, you can use the ASMCA command-line interface as a non-GUI utility.
See Also:
Chapter 11, "Oracle ASM Configuration Assistant" in Oracle Automatic Storage
Management Administrator's Guide for information about Oracle ASMCA
This section describes how to configure disks for use with Oracle ASM. The following
sections describe how to identify the requirements and configure the disks on each
platform:
Note:
Oracle does not recommend using identifiers for database object names that must be
quoted. While these quoted identifiers may be valid as names in the SQL
CREATE statement, such as CREATE DISKGROUP "1data" ..., the names may not be valid
when using other tools that manage the database object.
See Also:
"Creating Disk Groups for a New Oracle Installation", in Oracle Automatic Storage
Management Administrator's Guide for information about creating and managing disk
groups
To identify the storage requirements for using Oracle ASM, you must determine the
number of devices and the amount of free disk space that you require. To complete
this task:
1. Determine whether you want to use Oracle ASM for Oracle Database files,
recovery files, or both.
Note:
You do not have to use the same storage mechanism for Oracle
Database files and recovery files. You can use a file system for
one file type and Oracle ASM for the other.
o You can run Oracle ASMCA in interactive mode to create and configure
the required disk groups.
You have the option to use the disk groups you created using Oracle
ASMCA both for database files and recovery files, or you can choose to
use different disk groups for each file type. Ideally, you should create
separate Oracle ASM disk groups for data files and for recovery files.
o If you run Oracle ASMCA in noninteractive mode, then you must use
the same Oracle ASM disk group for data files and recovery files.
During the database installation (Typical Installation type), you will
have to select the same disk group for both data files and recovery
files.
See Also:
o "Oracle ASM Configuration Assistant Command-Line
Interface" section in Oracle Automatic Storage
Management Administrator's Guide
o "Create a Fast Recovery Area Disk Group"
2. Choose the Oracle ASM redundancy level that you want to use for each Oracle
ASM disk group that you create.
The redundancy level that you choose for the Oracle ASM disk group
determines how Oracle ASM mirrors files in the disk group and determines the
number of disks and amount of disk space that you require, as follows:
o External redundancy
This option does not allow Oracle ASM to mirror the contents of the
disk group. Oracle recommends that you select this redundancy level
either when the disk group contains devices, such as RAID devices,
that provide their own data protection or when the database does not
require an uninterrupted access to data.
o Normal redundancy
o High redundancy
3. Determine the total amount of disk space that you require for the database
files and recovery files.
If an Oracle ASM instance is already running on the system, then you can use
an existing disk group to meet these storage requirements. If necessary, you
can add disks to an existing disk group during the database installation.
Use the following table to determine the minimum number of disks and the
minimum disk space requirements for the installation:
4. Optionally, identify failure groups for the Oracle ASM disk group devices.
If you intend to use a normal or high redundancy disk group, then you can
further protect the database against hardware failure by associating a set of
disk devices in a custom failure group. By default, each device comprises its
failure group. However, if two disk devices in a normal redundancy disk group
are attached to the same SCSI controller, then the disk group becomes
unavailable if the controller fails. The controller in this example is a single
point of failure.
For instance, to avoid failures of this type, you can use two SCSI controllers,
each with two disks, and define a failure group for the disks attached to each
controller. This configuration would enable the disk group to tolerate the
failure of one SCSI controller.
Note:
5. If you are sure that a suitable disk group does not exist on the system, then
install or identify appropriate disk devices to add to a new disk group. Apply
the following guidelines when identifying appropriate disk devices:
o The disk devices must be owned by the user performing the grid
installation.
See Also:
See Also:
3.6.3 Step 2: Creating DAS or SAN Disk Partitions for Oracle Automatic Storage
Management
In order to use a DAS or SAN disk in Oracle ASM, the disk must have a partition
table. Oracle recommends creating exactly one partition for each disk containing the
entire disk.
Note:
You can use any physical disk for Oracle ASM, as long as it is partitioned.
Oracle provides an Oracle ASM library driver that you can use to simplify the
configuration and management of the disk devices that you want to use with Oracle
ASM. A disk that is configured for Oracle ASM is known as a candidate disk.
If you intend to use Oracle ASM for database storage, then Oracle recommends that
you install the Automatic Storage Management library driver (ASMLIB) and
associated utilities and use them to configure the devices that you want to include in
an Oracle ASM disk group.
Note:
If you choose to configure disks using the Oracle Automatic Storage Management
library driver, then you must change the default disk discovery string to ORCLDISK:*. If
the diskstring is set to ORCLDISK:*, or is left empty (""), then the installer discovers
these disks.
This section describes how to configure storage for use with Oracle ASM.
3.6.4.1 Configuring Disks for Oracle Automatic Storage Management Using the Automatic
Storage Management Library Driver (ASMLIB)
To install and configure the Automatic Storage Management library driver software:
1. Enter the following command to determine the kernel version and architecture
of the system:
2. # uname -rm
3. If necessary, download the required Automatic Storage Management library
driver packages from the Oracle Technology Network Web site:
4. http://www.oracle.com/technology/tech/linux/asmlib/index.html
You must install the following packages, where version is the version of the
Automatic Storage Management library driver, arch is the system architecture,
and kernel is the version of the kernel that you are using:
oracleasm-support-version.arch.rpm
oracleasm-kernel-version.arch.rpm
oracleasmlib-version.arch.rpm
For example, if you are using the Red Hat Enterprise Linux AS 3.0 enterprise
kernel on an x86 system, then enter a command similar to the following:
# sudo rpm -Uvh oracleasm-support-1.0.0-1.i386.rpm \
oracleasm-2.4.9-e-enterprise-1.0.0-1.i686.rpm \
oracleasmlib-1.0.0-1.i386.rpm
9. Enter a command similar to the following to determine the UID of the Oracle
software owner user that you are using for this installation and the GID of the
OSASM group:
10. # id oracle
11. Enter the following command to run the oracleasm initialization script with
the configure option:
12. # /etc/init.d/oracleasm configure
13. Enter the following information in response to the prompts that the script
displays:
14.
Configuring the Disk Devices to Use the Automatic Storage Management Library
Driver
To configure the disk devices that you want to use in an Automatic Storage
Management disk group:
1. If you intend to use IDE, SCSI, or RAID devices in the Automatic Storage
Management disk group, then:
a. If necessary, install or configure the disk devices that you intend to use
for the disk group and restart the system.
b. To identify the device name for the disks that you want to use, enter
the following command:
c. # /sbin/fdisk -l
Note:
In this example, DISK1 is a name that you want to assign to the disk.
Note:
To administer the Automatic Storage Management library driver and disks, use
the oracleasm initialization script with different options, as follows:
Option Description
configure Use the configure option to reconfigure the Automatic Storage Management
library driver, if necessary:
# /etc/init.d/oracleasm configure
enable Use the disable and enable options to change the behavior of the Automatic
disable
Storage Management library driver when the system starts. The enable option
causes the Automatic Storage Management library driver to load when the
system starts:
# /etc/init.d/oracleasm enable
Option Description
start Use the start, stop, and restart options to load or unload the Automatic Storage
stop
restart Management library driver without restarting the system:
# /etc/init.d/oracleasm restart
createdisk Use the createdisk option to mark a disk device for use with the Automatic
Storage Management library driver and give it a name:
# /etc/init.d/oracleasm createdisk DISKNAME devicename
deletedisk Use the deletedisk option to unmark a named disk device:
# /etc/init.d/oracleasm deletedisk DISKNAME
Note: Do not use this command to unmark disks that are being used by an
Automatic Storage Management disk group. You must drop the disk from the
Automatic Storage Management disk group before you unmark it.
querydisk Use the querydisk option to determine whether a disk device or disk name is
being used by the Automatic Storage Management library driver:
# /etc/init.d/oracleasm querydisk {DISKNAME | devicename}
listdisks Use the listdisks option to list the disk names of marked Automatic Storage
Management library driver disks:
# /etc/init.d/oracleasm listdisks
scandisks Use the scandisks option to enable cluster nodes to identify which shared disks
have been marked as Automatic Storage Management library driver disks on
another node:
# /etc/init.d/oracleasm scandisks
3.6.4.2 Configuring Disk Devices Manually for Oracle Automatic Storage Management
By default, the 2.6 kernel device file naming scheme udev dynamically creates device
file names when the server is started, and assigns ownership of them to root.
If udev applies default settings, then it changes device file names and owners for the
disks, corrupting them when Oracle Storage Management instance is restarted. If
you use ASMLIB, then you do not need to ensure permissions and device path
persistency in udev.
If you do not use ASMLIB, then you must create a custom rules file. When udev is
started, it sequentially carries out rules (configuration directives) defined in rules
files. These files are in the path /etc/udev/rules.d/. Rules files are read in lexical
order. For example, rules in the file 10-wacom.rules are parsed and carried out before
rules in the rules file 90-ib.rules.
Where rules files describe the same devices, on Asianux, Red Hat, and Oracle
Enterprise Linux, the last file read is the one that is applied. On SUSE 2.6 kernels, the
first file read is the one that is applied.
To configure a permissions file for disk devices, complete the following tasks:
Note:
Oracle recommends that only advanced users perform the software-only installation,
because this installation method provides no validation of the installation and this
installation option requires manual postinstallation steps to enable the Oracle Grid
Infrastructure software.
1. Start the runInstaller command from the relevant directory on the Oracle
Database 11g release 2 (11.2) installation media or download directory.
2. Complete a software-only installation of Oracle Grid Infrastructure.
3. Verify that the server meets the installation requirements using the
command runcluvfy.bat stage -pre hacfg. Ensure that you have completed all
storage and server preinstallation requirements.
1. Run the roothas.pl script from Grid_home, using the following syntax:
2. Grid_home/perl/bin/perl -I Grid_home/perl/lib -I Grid_home/crs/install
3. Grid_home/crs/install/roothas.pl
For example, if your Grid home is /app/11.2.0/grid, then run the following
script:
$ /app/11.2.0/grid/perl/bin/perl -I /app/11.2.0/grid/perl/lib -I /app
/11.2.0/grid/crs/install /app/11.2.0/grid/crs/install/roothas.pl
For example:
$ ./runInstaller -updateNodeList ORACLE_HOME=/u01/app/11.2.0/grid
-defaultHomeName
CLUSTER_NODES= CRS=TRUE
7. Use the SRVCTL utility along with Network Configuration Assistant and Oracle
ASMCA to add the listener, the Oracle ASM instance, and all Oracle ASM disk
groups to the Oracle Restart configuration.
If you install Oracle Grid Infrastructure and then create your database, the database
is automatically added to the Oracle Grid Infrastructure configuration, and is then
automatically restarted when required. However, if you install Oracle Grid
Infrastructure on a host computer on which a database already exists, you must
manually add the database, the listener, the Oracle ASM instance, and other
components to the Oracle Grid Infrastructure configuration.
Note:
Oracle Grid Infrastructure can accommodate multiple single-instance databases on a
single host computer.
Perform the following steps to install Oracle Grid Infrastructure and then create a
database that is managed by Oracle Restart. First install Oracle Grid Infrastructure,
which installs Oracle Restart and Oracle ASM, then configure Oracle ASM with at
least one disk group, and then install Oracle database that stores database files in
Oracle ASM disk groups. Click the help button on the Oracle Universal Installer page
for page level assistance.
You may need to shut down existing Oracle processes before you proceed with the
Oracle Grid Infrastructure installation. Refer to "Stopping Existing Oracle
Processes" for more information.
To install Oracle Grid Infrastructure for a standalone server with a new database
installation:
o If the installation files are on the hard disk, change the directory to the
path of the Oracle Grid Infrastructure (clusterware) directory and enter
the following command:
o $ ./runInstaller
Note:
Start Oracle Universal Installer from the terminal session where
you logged in as the Oracle Grid Infrastructure software owner
user and set the user's environment.
See Also:
2. In the Download Software Updates screen, select one of the following options
and click Next:
o Use My Oracle Support credentials for download: Select this option to
download and apply the latest software updates.
Click Test Connection to ensure that your proxy settings are correctly
entered, and the installer can download the updates.
4. In the Select Installation Option screen, select the Install and Configure
Grid Infrastructure for a Standalone Server option to install and
configure Oracle Restart and Oracle ASM. Click Next.
5. In the Select Product Languages screen, select one or more languages. Move
the languages from the Available Languages list to the Selected Languages
list. Click Next.
6. The Create ASM Disk Group screen lists all the Oracle ASM disks
under ORCLDISK:*
Click Change Disk Discovery Path to select any devices that will be used by
Oracle ASM but are not listed. In the Change Disk Discovery Path window,
enter a string to use to search for devices that Oracle ASM will use. If the
diskstring is set to ORCLDISK:* or is left empty (""), then the installer
discovers these disks. Click OK.
After you finish selecting the disks to be used by Oracle ASM, click Next.
Note:
Consider the following information about disk devices while performing this
step:
o The Disk Group Name default is DATA. You can enter a new name for
the disk group, or use the default name.
o The disk devices must be owned by the user performing the grid
installation.
See Also:
Note:
Optionally, you can use the same password for all accounts. However, Oracle
recommends that you specify a different password for each account. You must
remember the passwords that you specify.
9. In the Privileged Operating System Groups screen, select the name of the
operating system group you created for the OSDBA group, the OSASM group,
and the database operator group OSOPER. If you choose to create only
the dba group, then you can use that group for all three privileged groups. If
you created a separate asmadmin group, then use that value for the OSASM
group. Click Next.
10. In the Specify Installation Location screen, enter the following details, and
click Next:
o Oracle Base: Enter the directory location for Oracle base. Do not
include spaces in the path name.
o Software Location: This field is populated by default in concurrence
with Oracle base location.
See Also:
11. If you have not installed any Oracle software previously on this server, the
Create Inventory screen appears.
Change the path for the Inventory Directory, if required. Select oinstall for
the oraInventory Group Name, if required. Click Next.
12. The Perform Prerequisite Checks screen checks if the minimum system
requirements are met to carry out the Oracle Grid Infrastructure installation. If
all the system requirements are met, then you will be directed to the
Summary screen. However, in case of a failed installation, you can review the
error.
If you click Check Again, then you can run the prerequisite check again to
see if the minimum requirements are met to carry on with the database
installation.
Click Fix & Check Again, if you want the installer to fix the problem and
check the system requirements once more.
Note:
The Fix & Check Again option generates a script that you need to
run as the root user. This generated script sets some of the
system parameters to Oracle-recommended values. Oracle
recommends that you do not modify the contents of this script.
Refer to "Installation Fixup Scripts" for more information about
fixup scripts.
To get a list of failed requirements, select ShowFailed from the list. To get a
list of all the prerequirement checks run by the OUI, select Show All. To get
a list of the prerequirement checks that are successful, select Show
Succeeded.
Note:
13. Review the contents of the Summary screen, and click Finish.
Starting with Oracle Database 11g Release 2 (11.2), you can save all the
installation steps into a response file by clicking Save Response File. This file
can be used for a silent installation.
14. The Setup screen displays the progress of the Oracle Grid Infrastructure
installation. During the installation process, the Execute Configuration Scripts
window appears. Do not click OK until you have run the scripts mentioned in
this screen.
15. The Finish screen displays the installation status. Click Close to end the
installation, then Yes to confirm that you want to exit Oracle Universal
Installer.
If you encounter any problems, refer to the configuration log for information.
The path to the configuration log is displayed on the Configuration Assistants
window.
16. If you want to create additional disk groups, then run the Oracle ASMCA
utility. For example, you can create another disk group named RECOVERY to
store the fast recovery area.
See Also:
See Also:
Note:
Follow the high-level instructions in this section to install Oracle Grid Infrastructure
and configure it for an existing Oracle database. Please note that Oracle Restart can
only manage existing 11.2 resources and hence you can install Oracle Grid
Infrastructure only for an existing 11.2 database. However, Oracle database releases
prior to 11.2 can coexist on the same server without being managed by Oracle
Restart.
Go to the Grid home's bin directory. Use the srvctl add database command to
manually add the database, the listener, the Oracle ASM instance, all Oracle
ASM disk groups, and any database services to the Oracle Grid Infrastructure
configuration.
See Also:
After installation, you must first stop the Oracle Restart stack to modify the software
installed in your Grid home. For example, if you want to apply a one-off patch or
modify any of the DLLs used by Oracle Restart or Oracle ASM, then you must follow
these steps to stop and restart the Oracle Restart stack.
Caution:
Before relinking executables, you must shut down all executables that run in the
Oracle home directory that you are relinking. In addition, shut down applications
linked with Oracle shared libraries.
Prepare the Oracle Grid Infrastructure home for modification using the following
procedure:
1. Log in as the Oracle Grid Infrastructure software owner user and change the
directory to the path Grid_home\bin, where Grid_home is the path to the Oracle
Grid Infrastructure home:
2. $ cd Grid_home/bin
3. Shut down the Oracle Restart stack using the following command:
4. $ crsctl stop has -f
5. After the Oracle Restart stack is completely shut down, perform the updates
to the software installed in the Grid home.
6. Use the following command to restart the Oracle Restart stack:
7. $ crsctl start has
After installing Oracle Grid Infrastructure, you can also use Oracle ASMCA to create
and configure disk groups, Oracle Automatic Storage Management Dynamic Volume
Manager (Oracle ADVM) and Oracle Automatic Storage Management Cluster File
System (Oracle ACFS).
If you want to create additional disk groups or manually configure Oracle ASM disks,
then you can run the Oracle ASMCA as follows:
$ cd Grid_home/bin
$ ./asmca
Where Grid_home is the path to the Oracle Grid Infrastructure home for a standalone
server.
See Also:
Oracle Automatic Storage Management Administrator's Guide for more information
on Oracle ASMCA
To test the Oracle ASM installation, try logging in by using the asmcmd command-line
utility, which lets you manage Oracle ASM disk group files and directories. To do this:
For example, if the Oracle ASM SID is named +ASM and the Oracle home is
located in the grid subdirectory of the ORACLE_BASE directory, then enter the
following commands to create the required settings:
If the Oracle ASM instance is not running, you can start the instance with the
following:
$ORACLE_HOME/bin/asmcmd startup
See Also: