Академический Документы
Профессиональный Документы
Культура Документы
Contents
Introduction
Example Configuration
Install the Linux Operating System
Install Required Linux Packages for Oracle
Create oracle User and Directories
Configure the Linux Operating System for Oracle
Network Configuration
Configure Disks for Oracle ASM
Download Oracle Software
Pre-Installation Tasks
Install Oracle Grid Infrastructure for a Standalone Server
Post-installation Tasks for Oracle Grid Infrastructure for a Standalone Server
Create Separate ASM Disk Group for the Fast Recovery Area
Install Oracle Database
Install Oracle Database Examples
Create the Oracle Database
Post Database Creation Tasks - (Optional)
Configure Automatic Database Starting and Stopping
Managing Oracle Restart Components
Miscellaneous Options
Troubleshooting
About the Author
Introduction
This article is a comprehensive guide for installing Oracle Database 11g Release 2 (11.2) on the Oracle Linux 5 (OL5) operating environment using Oracle Automatic Storage Management (Oracle ASM) and
Oracle Restart. Oracle ASM provides a virtualization layer between the database and storage so that multiple disks can be treated as a single disk group and disks can be dynamically added or removed while
keeping databases online. The example database created in this guide will use Oracle ASM for all physical database file storage (data files, control files, online redo log files, Fast Recovery Area).
Oracle ASM
Oracle Automatic Storage Management (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 simplifies database administration by eliminating the need for the DBA to directly manage potentially thousands of Oracle database files requiring only the management
pdfcrowd.com
of groups of disks allocated to the Oracle Database. Oracle ASM also supports a general purpose file system for application needs including Oracle Database binaries; however, storing the Oracle software in
Oracle ASM will not be covered in this guide. Oracle ASM is Oracle's recommended storage management solution that provides an alternative to conventional volume managers, file systems, and raw devices.
Oracle ASM is built into the Oracle kernel. All of the files and directories to be used for Oracle will be contained in an Oracle ASM disk group. Oracle ASM automatically performs load balancing in parallel
across all available disk drives to prevent hot spots and maximize performance, even with rapidly changing data usage patterns.
In previous releases, Oracle ASM was installed as part of the Oracle Database installation. With Oracle Database 11g Release 2, Oracle ASM is part of an Oracle Grid Infrastructure installation, either for a
cluster, or for a standalone server. This guide demonstrates how to create a single instance (non-RAC) database using Oracle ASM and therefore will require Oracle Database 11g Release 2 Grid
Infrastructure for a Standalone Server to be installed before the Oracle Database software. Using the latest Optimal Flexible Architecture (OFA), Oracle Grid Infrastructure for a Standalone Server would be
installed as the Oracle software owner (oracle) and the Oracle home directory would be /u01/app/oracle/product/11.2.0/grid.
Best practice is to install Oracle Grid Infrastructure for a Standalone Server before installing the database. The registration of the database with Oracle Restart is automatic when it is created after Grid
Infrastructure is installed. In the case where the database is configured first and Grid later, the components would need to be manually added to the Oracle Restart configuration.
You must install Oracle Grid Infrastructure for a Standalone Server from the Oracle Grid
Infrastructure media. There is no separate download media for Oracle Grid Infrastructure for a
Standalone Server.
In this guide, Oracle ASM will be used as the file system and volume manager for Oracle Database files (data, online redo logs, control files, archived redo logs) and the Fast Recovery Area using two separate
disk groups; namely +TESTDB1_DATA and +FRA respectively.
An optional support library for the Oracle ASM feature named ASMLib will be configured to create two Oracle ASM volumes. Although optional, ASMLib is highly recommended as it allows a database using
Oracle ASM more efficient and capable access to the disk groups it is using. ASMLib was provided to enable Oracle ASM I/O to Linux disks without the limitations of the standard UNIX I/O API
Oracle Restart
Oracle Restart is another component of Oracle Grid Infrastructure for a Standalone Server that will be used in this guide.
Starting with Oracle Database 11g Release 2, the dbstart and dbshut scripts that were used to automate database startup and shutdown in previous Oracle versions are deprecated. Oracle now
recommends to configure Oracle Database with the Oracle Restart feature to automatically restart the database, the listener, Oracle Automatic Storage Management (Oracle ASM), and other Oracle
components after a hardware or software failure or when the database host computer restarts.
In Oracle Database 11g Release 2 (11.2), the Grid Infrastructure for a Standalone Server is
required in order to use Oracle ASM and Oracle Restart. If you want to use Oracle ASM or
Oracle Restart, then you must install Oracle Grid Infrastructure before you install and create
the database. Otherwise, you must manually register the database with Oracle Restart.
Oracle Restart can only manage 11.2 resources. Oracle Database releases prior to 11.2, however, can coexist on the same server but without being managed by Oracle Restart.
Oracle Restart improves the availability of an Oracle database by providing the following:
When there is a hardware or a software failure, Oracle Restart automatically starts all Oracle components, including the Oracle database instance, Oracle Net Listener, database services, and Oracle
ASM.
Oracle Restart starts components in the proper order when the database host is restarted.
Oracle Restart runs periodic checks to monitor the status of Oracle components. If a check operation fails for a component, then the component is shut down and restarted.
When using Oracle Restart, you can use Service Control Utility (SRVCTL), a command-line interface, to manage Oracle processes (database instance, listener, ASM instance). With SRVCTL, you can manage
the Oracle Restart configuration, see the status of processes managed by Oracle Restart, and start or stop processes such as the Oracle Database. SRVCTL has been enhanced to support single instance
databases with Oracle Restart on standalone servers and on clusters with Oracle Clusterware.
pdfcrowd.com
Oracle 64-bit (x86-64) for Linux is supported on AMD64/EM64T and Intel Processor Chips
that adhere to the x86-64 architecture with supported Linux releases. Running Oracle 32-bit
on AMD64/EM64T (64-bit OS) is not supported.
Oracle 32-bit (x86) running on AMD64/EM64T with a 32-bit OS is, however, supported.
Oracle Documentation
While this guide provides detailed instructions for successfully installing a complete Oracle Database 11g Release 2 system using Oracle ASM, it is by no means a substitute for the official Oracle
documentation (see list below). In addition to this guide, users should also consult the following Oracle documents to gain a full understanding of alternative configuration options, installation, and
administration with Oracle Database, Oracle Grid Infrastructure, Oracle ASM, and Oracle Restart. Oracle's official documentation site is docs.oracle.com.
Release Notes
11g Release 2 (11.2) for Linux
New Features Guide
11g Release 2 (11.2)
Universal Installer and OPatch User's Guide
11g Release 2 (11.2) for Windows and UNIX
Oracle Restart / Grid Infrastructure
11g Release 2 (11.2) for Linux
Database Installation Guide
11g Release 2 (11.2) for Linux
Database Quick Installation Guide
11g Release 2 (11.2) for Linux x86
Database Quick Installation Guide
11g Release 2 (11.2) for Linux x86-64
Database Administrator's Guide
11g Release 2 (11.2)
Database Concepts
11g Release 2 (11.2)
Automatic Storage Management Administrator's Guide 11g Release 2 (11.2)
Database Examples Installation Guide
11g Release 2 (11.2)
pdfcrowd.com
Two unformatted hard disks that will be marked as Oracle ASM disks using ASMLib. These two disks will be used to create two separate Oracle ASM disk groups for the database files and the recovery
files (Fast Recovery Area).
Oracle Database 11g Release 2 Grid Infrastructure (11.2) for a Standalone Server on a local file system (namely /u01/app/oracle/product/11.2.0/grid) separate from the Oracle Database
software. As part of the Oracle Grid Infrastructure installation, the Create ASM Disk Group wizard will be used to create an Oracle ASM instance named +ASM and an Oracle ASM disk group named
+TESTDB1_DATA for the Oracle database files.
A default Oracle Net Listener created by the Grid Infrastructure installation and running out of the Oracle home directory for Grid Infrastructure. This listener will be used by the Oracle ASM instance and
the example database created in this guide.
A separate Oracle ASM disk group for the Fast Recovery Area named +FRA and created using the Oracle Automatic Storage Management Configuration Assistant (Oracle ASMCA).
Oracle Database 11g Release 2 (11.2) software installed on a local file system (namely /u01/app/oracle/product/11.2.0/dbhome_1).
Oracle Database 11g Examples (formerly Companion).
An Oracle Restart enabled general-purpose database that makes use of Oracle ASM for physical database file storage (database files and the Fast Recovery Area).
Optional instructions are included to put the new database into Archive Log Mode.
Oracle Enterprise Manager Database Control running and can be accessed using a Web browser.
The following is a list of items NOT covered in this article:
Installing the Oracle Database software on a system that has an existing Oracle software installation. The installation in this article describes installing Oracle Database 11g Release 2 Grid Infrastructure
(11.2) for a Standalone Server and Oracle Database 11g Release 2 (11.2) software on a system with no previous Oracle installation.
Installing Oracle Grid Infrastructure for a Cluster and Oracle Real Application Clusters (RAC). For a complete discussion on installing Oracle RAC 11g Release 2 (11.2) and creating a clustered database,
see my article Building an Inexpensive Oracle RAC 11g R2 on Linux - (RHEL 5.5).
Enabling Enterprise Manager e-mail notifications or automated backups.
Example Configuration
This section describes the hardware and Oracle configuration parameters that will be used in this guide.
Hardware
The machine used for this guide will consist of an AMD Athlon 64 X2 Dual Core Processor 3800+ running Oracle Linux 5 (x86_64). The server has 4GB of memory and contains four (4) internal hard disks. Two
of the hard disks will be configured using Logical Volume Manager (LVM) while the two remaining disks will remain unformatted. One logical volume will be created for the Linux O/S while a second logical
volume will be created for the Oracle software (Oracle home directory for Grid Infrastructure and the Oracle Database software). The two unformatted hard disks will be marked as Oracle ASM disks and used for
database files and the Fast Recovery Area.
Oracle Server Configuration
Machine Name
testnode1.idevelopment.info
IP Address
192.168.1.106
Processor
1 x AMD Athlon 64 X2 Dual C ore Processor 3800+
Operation Environment
Memory
4GB
Physical Disks
Hard Drive
Partition
Size - (MB)
Type
Usage
Mount Point
pdfcrowd.com
/dev/sda
/dev/sda1
101
ext3
Boot Volume
/dev/sda2
/dev/sdb
/boot
36,758
LVM
VolGroup00
/dev/sdb1
36,860
LVM
vg_orasoftware
/dev/sdc
/dev/sdc1
36,860
Unformatted
/dev/sdd
/dev/sdd1
36,860
Unformatted
Logical Volumes
LVM Volume Group
Logical Volume
VolGroup00
Size - (MB)
LogVol00
31,712
LogVol01
5,024
lv_orasoftware
vg_orasoftware
36,832
Type
Usage
ext3
Linux OS
swap
Swap
ext3
Mount Point
/
/u01
Device
Size - (MB)
Type
Usage
ASM Redundancy
DATAVOL1
/dev/sdc1
32,768
ASMLib
Database Files
+TESTDB1_DATA
External
FRAVOL1
/dev/sdd1
32,768
ASMLib
+FRA
External
Oracle Configuration
The following is an introduction to some of the configuration parameters that will be used for installing the Oracle Grid Infrastructure and Oracle Database Software and creating a fully functional Oracle 11g
database configured to use Oracle ASM.
Oracle / Grid Software Owner
O/S User
oracle (501)
Primary Group
oinstall (501)
Supplementary Groups
Home Directory
dba (502), oper (503), asmadmin (504), asmdba (505), asmoper (506)
/home/oracle
Version
Oracle Database 11g Release 2 Grid Infrastructure (11.2.0.1.0) for Linux x86-64
Oracle Database
pdfcrowd.com
Oracle SID
+ASM
N/A
Oracle Database
testdb1
testdb1.idevelopment.info
Directory
/u01/app/oracle
/u01/app/oracle/product/11.2.0/grid
/u01/app/oracle/product/11.2.0/dbhome_1
This guide adheres to the latest Optimal Flexible Architecture (OFA) standard for Oracle Database 11g Release 2 (11.2) for Linux.
Download the compressed binary DVD image V24479-01.zip for Oracle Linux Release 5 Update 6 (x86_64). Once downloaded, extract the binary DVD image from the archive which for this example is
named Enterprise-R5-U6-Server-x86_64-dvd.iso.
Oracle Linux Release 5 Update 6 for x86_64 (64 Bit) (3.5 GB)
32-bit (x86) Installations
Download the compressed binary DVD image V24478-01.zip for Oracle Linux Release 5 Update 6 (x86). Once downloaded, extract the binary DVD image from the archive which for this example is named
Enterprise-R5-U6-Server-i386-dvd.iso.
Oracle Linux Release 5 Update 6 for x86 (32 Bit) (2.9 GB)
Burn Binary Image to DVD
If you are downloading the above ISO files to a MS Windows machine, there are many options for burning these images (ISO files) to a DVD. You may already be familiar with and have the proper software to
burn images to DVD. If you are not familiar with this process and do not have the required software to burn images to DVD, here are just three of the many software packages that can be used.
InfraRecorder
UltraISO
pdfcrowd.com
Response
Boot Screen
The first screen is the Oracle Linux boot screen. At the boot: prompt, hit [Enter] to start the
installation process.
Media Test
When asked to test the C D media, tab over to [Skip] and hit [Enter]. If there were any errors,
the media burning software would have warned us. After several seconds, the installer should
then detect the video card, monitor, and mouse. The installer then goes into GUI mode.
Language Selection
Select the appropriate language for your configuration and click [Next] to continue.
Keyboard Selection
Select the appropriate keyboard for your configuration and click [Next] to continue.
The installer will display a warning dialog for every installed disk device it detects indicating
that the storage device may contain important data and that the device must be initialized in
order to create new partitions. C lick [Yes] to acknowledge this warning for each disk device the
installer detects.
Screen Shot
Select "Remove all partitions on selected drives and create default layout".
If the machine is configured with multiple storage devices, select which device (or devices) to
include as the system drive(s). Any selected devices will be used as system drives and will be
formatted by the installer and included as the target for the OS install.
Select System
Drive(s)
In this guide, only one of the devices will be used for the system drive (sda).
Finally, check the option to "Review and modify partitioning layout" and click [Next] to
continue.
You will then be prompted with a dialog window asking if you really want to remove all
partitions (ALL_DATA) on the selected drives. C lick [Yes] to acknowledge this warning.
The installer will present a default partitioning scheme for the current disk sizes. Modify any
volumes as required. The settings you make here will, of course, depend on your storage
configuration.
Given the example presented in this guide, I only configured two of the four hard disks using
the Disk Partitioning Layout wizard.
1. The /boot file system and an LVM Volume Group named VolGroup00 will be created on
the first hard disk (/dev/sda) and will be used for the Linux operating environment and
pdfcrowd.com
swap.
2. A new LVM Volume Group (vg_orasoftware) and Logical Volume (lv_orasoftware)
will be created on /dev/sdb. This logical volume will be formatted as ext3 and used for
the /u01 mount point to store the Oracle Grid Infrastructure and Oracle Database
software.
3. The remaining two hard disks (/dev/sdc and /dev/sdd) will be not be configured using
the Disk Partitioning Layout wizard and should remain unformatted. These two hard
disks will be configured later in this guide and marked as Oracle ASM disks for use with
Oracle ASM.
C lick here for a preview of the disk configuration used for this guide.
Ensure enough swap space is allocated as required by Oracle (which is a multiple of the
available RAM). The following is Oracle's minimum requirement for swap space:
Available RAM
Between 1 GB and 2 GB
Between 2 GB and 16 GB
More than 16 GB
16 GB
Once you are satisfied with the disk layout, click [Next] to continue.
Boot Loader Configuration
The installer will use the GRUB boot loader by default. To use the "GRUB boot loader", accept
all default values and click [Next] to continue.
The installer should have successfully detected any installed network devices. It is not
recommended to configure the public interface on an Oracle Database server (eth0 in this
example) to use DHC P so this guide will use the traditional method of manually assigning a
static IP address. The settings you make here will, of course, depend on your network
configuration.
First, make sure that the public network device is checked to "Active on boot".
Second, [Edit] the public network interface (eth0) accordingly.
eth0
Network Configuration
ON
OFF
IPv4 Address
192.168.1.106
Prefix (Netmask)
255.255.255.0
OFF
C ontinue by manually setting the hostname and supplying your gateway and DNS servers.
C lick [Next] to continue
pdfcrowd.com
Time Zone
Select the appropriate time zone for your environment and click [Next] to continue.
Installation Type
By default, Oracle Linux installs most of the software required for a typical server. There are
several other packages (RPMs), however, that are required to successfully install the Oracle
software. The installer includes a "C ustomize software" selection that allows the addition of
RPM groupings such as "Development Libraries" or "Legacy Library Support". The addition of
such RPM groupings is not an issue. De-selecting any "default RPM" groupings or individual
RPMs, however, can result in failed Oracle Grid Infrastructure and Oracle Database installation
attempts.
For the purpose of this guide, select the radio button "C ustomize now" and click [Next] to
continue.
This is where you pick the packages to install. Most of the packages required for the Oracle
software are grouped into "Package Groups" (i.e. Application -> Editors). Since this machine
will be hosting the Oracle Grid Infrastructure and Oracle Database software, verify that at least
the following package groups are selected for the install. For many of the Linux package
groups, not all of the packages associated with that group get selected for installation. (Note
the "Optional packages" button after selecting a package group.) So although the package
group gets selected for install, some of the packages required by Oracle do not get installed. In
fact, there are some packages that are required by Oracle that do not belong to any of the
available package groups (i.e. libaio-devel). Not to worry. A complete list of required
packages for Oracle Grid Infrastructure 11g Release 2 and Oracle Database 11g Release 2 for
Linux will be provided in the next section. These packages will need to be manually installed
from the Oracle Linux DVDs after the operating system install. For now, install the following
package groups.
Desktop Environments
GNOME Desktop Environment
Applications
Editors
Graphical Internet
Text-based Internet
Development
Development Libraries
Development Tools
Legacy Software Development
Servers
Server C onfiguration Tools
Base System
Administration Tools
Base
Java
Legacy Software Support
pdfcrowd.com
System Tools
X Window System
In addition to the above packages, select any additional packages you wish to install for this
node keeping in mind to NOT de-select any of the "default" RPM packages. After selecting the
packages to install click [Next] to continue.
About to Install
This screen is basically a confirmation screen. C lick [Next] to start the installation. If you are
installing Oracle Linux using C Ds, you will be asked to switch C Ds during the installation
process depending on which packages you selected.
Installation Process
The Oracle Linux install process will start. Wait for the installation to complete.
Reboot System
After all of the packages and bootloader have been installed, the installer will eject the DVD
from the drive. Take out the DVD and click [Reboot] to reboot the system and complete the
installation.
When the system boots into Oracle Linux for the first time, it will prompt you with another
welcome screen for the "Post Installation Wizard". The post installation wizard allows you to
make final OS configuration settings. On the "Welcome screen", click [Forward] to continue.
License Agreement
Firewall
You will be prompted with a warning dialog about not setting the firewall. When this occurs,
click [Yes] to continue.
On the SELinux screen, choose the "Disabled" option and click [Forward] to continue.
SELinux
You will be prompted with a warning dialog warning that changing the SELinux setting will
require rebooting the system so the entire file system can be relabeled. When this occurs, click
[Yes] to acknowledge a reboot of the system will occur after firstboot (Post Installation Wizard)
is completed.
Kdump
Accept the default setting on the Kdump screen and click [Forward] to continue.
Adjust the date and time settings if necessary and click [Forward] to continue.
C reate any additional (non-oracle) operating system user accounts if desired and click
[Forward] to continue.
Create User
If you chose not to define any additional operating system user accounts, click [Yes] to
acknowledge the warning dialog.
Sound Card
Additional CDs
Reboot System
Login Screen
After the machine boots, you are presented with the Oracle Linux login screen.
pdfcrowd.com
User Desktop
After successfully logging in to the system, you are ready to start using the desktop.
pdfcrowd.com
Starting with Oracle Database 11g Release 2 (11.2.0.2), all the 32-bit packages, except for
gcc-32bit-4.3 (SUSE Linux Enterprise Server 11), listed in this section are no longer
required for installing a database on Linux x86-64. Only the 64-bit packages are required.
For any Oracle Database 11g release before 11.2.0.2, however, both the 32-bit and 64-bit
packages listed in this section are required.
The installation described in this guide will install the 32-bit packages. Although many of
these packages are unnecessary for 11.2.0.2 onwards on Linux x86-64, having them present
will not cause a problem.
pdfcrowd.com
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
elfutils-libelf-devel-static-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-common-2.5
glibc-devel-2.52
glibc-headers-2.5
kernel-headers-2.6.18
ksh-20060214
libaio-0.3.106
libaio-devel-0.3.106
libgcc-4.1.2
libgomp-4.1.2
libstdc++-4.1.2
libstdc++-devel-4.1.2
make-3.81
pdksh-5.2.14
sysstat-7.0.2
unixODBC-2.2.11
unixODBC-devel-2.2.11
Each of the packages listed above can be found on the Oracle Linux 5 for x86 DVDs.
pdfcrowd.com
cd /
eject
Oracle Privilege
oracle, jhunter
SYSDBA
OSDBA
503
oracle, jhunter
SYSOPER
OSOPER
asmadmin
504
oracle
SYSASM
OSASM
asmdba
505
oracle, jhunter
asmoper
506
oracle, jhunter
OS Group Name
OS Group ID
oinstall
501
oracle
dba
502
oper
OS Group Descriptions
Oracle Inventory Group (typically oinstall)
This group must be created the first time you install Oracle software on the system. Members of the OINSTALL group are considered the "owners" of the Oracle software and are granted privileges to
write to the Oracle central inventory (oraInventory). When you install Oracle software on a Linux system for the first time, OUI creates the /etc/oraInst.loc file. This file identifies the name of the
Oracle Inventory group (by default, oinstall), and the path of the Oracle Central Inventory directory.
Ensure that this group is available as a primary group for all planned Oracle software installation owners. For the purpose of this guide, the oracle installation owner will be configured with oinstall as
its primary group.
Database Administrator (OSDBA, typically dba)
Members of the OSDBA group can use SQL to connect to an Oracle instance as SYSDBA using operating system authentication. Members of this group can perform critical database administration tasks,
such as creating the database and instance startup and shutdown. The default name for this group is dba. The SYSDBA system privilege allows access to a database instance even when the database is
not open. Control of this privilege is totally outside of the database itself.
The oracle installation owner should be a member of the OSDBA group (configured as a secondary group) along with any other DBA user accounts (i.e. jhunter) needing access to an Oracle instance
as SYSDBA using operating system authentication.
The SYSDBA system privilege should not be confused with the database role DBA. The DBA role does not include the SYSDBA or SYSOPER system privileges.
Database Operator (OSOPER, typically oper)
Members of the OSOPER group can use SQL to connect to an Oracle instance as SYSOPER using operating system authentication. Members of this optional group have a limited set of database
administrative privileges such as managing and running backups. The default name for this group is oper. The SYSOPER system privilege allows access to a database instance even when the database
is not open. Control of this privilege is totally outside of the database itself. To use this group, choose the Advanced installation type to install the Oracle database software.
The Oracle Automatic Storage Management Group (typically asmadmin)
pdfcrowd.com
Create this group as a separate group if you want to have separate administration privilege groups for Oracle ASM and Oracle Database administrators. In Oracle documentation, the operating system
group whose members are granted privileges is called the OSASM group, and in code examples, where there is a group specifically created to grant this privilege, it is referred to as asmadmin.
Members of the OSASM group can use SQL to connect to an Oracle ASM instance as SYSASM using operating system authentication. The SYSASM privilege that was introduced in Oracle ASM 11g
Release 1 (11.1) is now fully separated from the SYSDBA privilege in Oracle ASM 11g Release 2 (11.2). SYSASM privileges no longer provide access privileges on an RDBMS instance. Providing system
privileges for the storage tier using the SYSASM privilege instead of the SYSDBA privilege provides a clearer division of responsibility between ASM administration and database administration, and helps to
prevent different databases using the same storage from accidentally overwriting each others files. The SYSASM privileges permit mounting and dismounting disk groups, and other storage administration
tasks.
The ASM Database Administrator group (OSDBA for ASM, typically asmdba)
Members of the ASM Database Administrator group (OSDBA for ASM) is a subset of the SYSASM privileges and are granted read and write access to files managed by Oracle ASM. When using ASM, all
Oracle Database software owners (i.e. oracle) must be a member of this group, and all users with OSDBA membership on databases that have access to the files managed by Oracle ASM must be
members of the OSDBA group for ASM.
Members of the ASM Operator Group (OSOPER for ASM, typically asmoper)
This is an optional group. Create this group if you want a separate group of operating system users to have a limited set of Oracle ASM instance administrative privileges (the SYSOPER for ASM
privilege), including starting up and stopping the Oracle ASM instance. By default, members of the OSASM group also have all privileges granted by the SYSOPER for ASM privilege.
To use the ASM Operator group to create an ASM administrator group with fewer privileges than the default asmadmin group, you must choose the Advanced installation type to install the Oracle
Database software. In this case, OUI prompts you to specify the name of this group. In this guide, this group is asmoper.
If you want to have an OSOPER for ASM group, then the Oracle software owner (oracle) must be a member of this group.
Create Groups and User for Oracle Database Software
Create the recommended OS groups and user for the Oracle Database software owner.
[root@testnode1
[root@testnode1
[root@testnode1
[root@testnode1
[root@testnode1
[root@testnode1
[root@testnode1
~]#
~]#
~]#
~]#
~]#
~]#
~]#
pdfcrowd.com
#
#
#
#
#
#
#
#
#
--------------------------------------------------.bash_profile
--------------------------------------------------OS User:
oracle
Application: Oracle Database Software Owner
Oracle Grid Infrastructure for a
Standalone Server
Version:
Oracle 11g Release 2
---------------------------------------------------
pdfcrowd.com
--------------------------------------------------SQLPATH
--------------------------------------------------Specifies the directory or list of directories that
SQL*Plus searches for a login.sql file.
--------------------------------------------------SQLPATH=/u01/app/oracle/dba_scripts/sql; export SQLPATH
# --------------------------------------------------# ORACLE_TERM
pdfcrowd.com
pdfcrowd.com
--------------------------------------------------UMASK
--------------------------------------------------Set the default file mode creation mask
(umask) to 022 to ensure that the user performing
pdfcrowd.com
pdfcrowd.com
Item in limits.conf
Soft Limit
Hard Limit
nofile
at least 1024
at least 65536
nproc
at least 2047
at least 16384
stack
at least 10240 KB
oracle
oracle
oracle
soft
hard
soft
nproc
nproc
nofile
2047
16384
1024
pdfcrowd.com
oracle
oracle
hard
soft
nofile
stack
65536
10240
Add the following line to the /etc/pam.d/login file, if it does not already exist.
session
required
pam_limits.so
Depending on your shell environment, make the following changes to the default shell startup file in order to change ulimit settings for the Oracle installation owner.
For the Bourne, Bash, or Korn shell, add the following lines to the /etc/profile file.
kernel.shmmax = 4294967295
kernel.shmall = 2097152
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
pdfcrowd.com
RHEL/OL/CentOS 5 already comes configured with default values defined for the following
kernel parameters.
kernel.shmmax
kernel.shmall
The default values for these two kernel parameters should be overwritten with the
recommended values defined in this guide.
# +---------------------------------------------------------+
# | KERNEL PARAMETERS FOR ORACLE DATABASE 11g R2 ON LINUX
|
# +---------------------------------------------------------+
# +---------------------------------------------------------+
# | SHARED MEMORY
|
# +---------------------------------------------------------+
# Maximum size (in bytes) for a shared memory segment
kernel.shmmax = 4294967295
# Maximum amount of shared memory (in pages) that
# can be used at one time on the system and should be at
# least ceil(SHMMAX/PAGE_SIZE)
kernel.shmall = 2097152
# Maximum number of shared memory segments system wide
kernel.shmmni = 4096
# +---------------------------------------------------------+
# | SEMAPHORES
|
# +---------------------------------------------------------+
# SEMMSL_value SEMMNS_value SEMOPM_value
kernel.sem = 250 32000 100 128
SEMMNI_value
# +---------------------------------------------------------+
# | NETWORKING
|
# ----------------------------------------------------------+
# Defines the local port range that is used by TCP and UDP
# traffic to choose the local port
net.ipv4.ip_local_port_range = 9000 65500
pdfcrowd.com
pdfcrowd.com
kernel.shmmax = 4294967295
kernel.shmmni = 4096
vm.hugetlb_shm_group = 0
[root@testnode1 ~]# /sbin/sysctl -a | grep sem
kernel.sem = 250
32000
100
128
[root@testnode1 ~]# /sbin/sysctl -a | grep ip_local_port_range
net.ipv4.ip_local_port_range = 9000
65500
[root@testnode1 ~]# /sbin/sysctl -a | grep 'core\.[rw]mem' | sort
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
[root@testnode1 ~]# /sbin/sysctl -a | egrep 'file-max|aio-max' | sort
fs.aio-max-nr = 1048576
fs.file-max = 6815744
Memory
The minimum required RAM for Oracle Database 11g Release 2 running on the Linux platform is 1 GB (although 2 GB or more of RAM is highly recommended). In addition to the Oracle Database, Oracle Grid
Infrastructure for a Standalone Server requires a minimum of 1.5 GB of RAM. Oracle recommends 4 GB or more when planning to install both Oracle Grid Infrastructure for a Standalone Server and Oracle
Database on the same machine which is the configuration described in this guide.
Use the following command to check the amount of installed RAM on the system.
Between 1 GB and 2 GB
Between 2 GB and 16 GB
More than 16 GB
16 GB
Use the following command to determine the size of the configured swap space.
pdfcrowd.com
On Linux, the HugePages feature allocates non-swappable memory for large page tables
using memory-mapped files. If you enable HugePages, then you should deduct the memory
allocated to HugePages from the available RAM before calculating swap space.
If necessary, additional swap space can be configured by creating a temporary swap file and adding it to the current swap. This way you do not have to use a raw device or even more drastic, rebuild your
system.
1. As root, make a file that will act as additional swap space, let's say about 500MB.
free
2811532
3786740
6258680
shared
0
buffers
49456
cached
925752
pdfcrowd.com
Network Configuration
During the Linux OS install, we already configured the IP address and host name for the database node. This sections contains additional network configuration steps that will prepare the machine to run the
Oracle database.
Note that the Oracle database server should have a static IP address configured for the public network (eth0 for this guide). Do not use DHCP naming for the public IP address; you need a static IP address.
Confirm the Node Name is Not Listed in Loopback Address
Ensure that the node name (testnode1) is not included for the loopback address in the /etc/hosts file. If the machine name is listed in the in the loopback address entry as below:
127.0.0.1
127.0.0.1
localhost.localdomain localhost
<IP-address>
<fully-qualified-machine-name>
<machine-name>
For example.
127.0.0.1
192.168.1.106
localhost.localdomain localhost
testnode1.idevelopment.info testnode1
pdfcrowd.com
pdfcrowd.com
Command action
e
extended
p
primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-4699, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-4699, default 4699): 4699
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
pdfcrowd.com
oracleasm-2.6.18-238.el5PAE-2.0.5-1.el5.i686.rpm
Next, download the ASMLib tools.
oracleasm-support-2.1.7-1.el5.i386.rpm
oracleasmlib-2.0.4-1.el5.i386.rpm
64-bit (x86_64) Installations
oracleasm-2.6.18-238.el5-2.0.5-1.el5.x86_64.rpm
Next, download the ASMLib tools.
oracleasm-support-2.1.7-1.el5.x86_64.rpm
oracleasmlib-2.0.4-1.el5.x86_64.rpm
Install ASMLib 2.0 Packages
Install ASMLib 2.0 as the root user account.
[root@testnode1 ~]# rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n"| grep oracleasm | sort
oracleasm-2.6.18-238.el5-2.0.5-1.el5 (x86_64)
oracleasmlib-2.0.4-1.el5 (x86_64)
oracleasm-support-2.1.7-1.el5 (x86_64)
Configure ASMLib
After installing the ASMLib packages for Linux, configure and load the ASM kernel module. This task needs to be run as the root user account.
The oracleasm command by default is in the path /usr/sbin. The /etc/init.d path, which was used in previous releases of ASMLib, is not deprecated but the oracleasm binary in that path is now
used typically for internal commands. If you enter the command oracleasm configure without the -i flag, then you are shown the current configuration. For example,
pdfcrowd.com
1. Enter the following command to run the oracleasm initialization script with the configure option.
The ASMLib driver file system is not a regular file system. It is used only by the Automatic
Storage Management library to communicate with the Automatic Storage Management
driver.
pdfcrowd.com
Release
Location
pdfcrowd.com
11.2.0.1
linux.x64_11gR2_grid.zip
11.2.0.1
linux.x64_11gR2_database_1of2.zip
linux.x64_11gR2_database_2of2.zip
11.2.0.1
linux.x64_11gR2_examples.zip
[oracle@testnode1
[oracle@testnode1
[oracle@testnode1
[oracle@testnode1
[oracle@testnode1
[oracle@testnode1
[oracle@testnode1
[oracle@testnode1
[oracle@testnode1
[oracle@testnode1
Release
11.2.0.2
10098816
p10098816_112020_Linux-x86-64_3of7.zip
11.2.0.2
10098816
p10098816_112020_Linux-x86-64_1of7.zip
p10098816_112020_Linux-x86-64_2of7.zip
11.2.0.2
10098816
p10098816_112020_Linux-x86-64_6of7.zip
[oracle@testnode1
[oracle@testnode1
[oracle@testnode1
[oracle@testnode1
[oracle@testnode1
[oracle@testnode1
[oracle@testnode1
[oracle@testnode1
[oracle@testnode1
[oracle@testnode1
Release
11.2.0.3
10404530
p10404530_112030_Linux-x86-64_3of7.zip
11.2.0.3
10404530
p10404530_112030_Linux-x86-64_1of7.zip
p10404530_112030_Linux-x86-64_2of7.zip
pdfcrowd.com
[oracle@testnode1
[oracle@testnode1
[oracle@testnode1
[oracle@testnode1
[oracle@testnode1
[oracle@testnode1
[oracle@testnode1
[oracle@testnode1
[oracle@testnode1
[oracle@testnode1
11.2.0.3
10404530
p10404530_112030_Linux-x86-64_6of7.zip
You should now have directories called grid, database, and the optional examples directory containing the Oracle installation files.
Pre-Installation Tasks
Oracle Grid Infrastructure for a Standalone Server
This subsection contains any remaining pre-installation tasks for Oracle Database 11g Release 2 Grid Infrastructure for a Standalone Server that have not already been discussed.
Fixup Scripts
Oracle Universal Installer (OUI) detects when the minimum requirements for an installation are not met and creates shell scripts called fixup scripts to finish incomplete system configuration steps. If OUI detects
an incomplete task, it then generates fixup scripts (runfixup.sh). You can run the fixup script after you click the [Fix and Check Again Button] during the Oracle Grid Infrastructure installation.
Verify Oracle Restart Requirements with CVU - (optional)
Oracle recommends to run the Cluster Verification Utility (CVU) script runcluvfy.sh before installing Oracle Grid Infrastructure for a Standalone Server to verify the environment for Oracle Restart. Note that
manually running the CVU before running the Oracle installer is not required. If you decide that you want to run the CVU, keep in mind that it should be run as the oracle user with user equivalence configured
for the oracle user. If user equivalence is not configured for the oracle user account, the CVU utility will fail before having the opportunity to perform any of its critical checks and generate the fixup scripts:
pdfcrowd.com
pdfcrowd.com
Before starting the OUI, make certain to either unset $TNS_ADMIN or set it appropriately for
the Grid Infrastructure home environment
(/u01/app/oracle/product/11.2.0/grid/network/admin) as described in the
login script for the Oracle user account.
Failure to set $TNS_ADMIN to the Grid Infrastructure environment (or unsetting it) before the
Grid Infrastructure install will result in a failure by NETCA to create the default listener
configuration file (listener.ora) as described in the troubleshooting section to this guide.
Start the Oracle Universal Installer (OUI) by issuing the following command in the grid install directory.
[oracle@testnode1 ~]$ id
uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper),504(asmadmin),505(asmdba),506(asmoper)
[oracle@testnode1 ~]$ echo $TNS_ADMIN
/u01/app/oracle/product/11.2.0/grid/network/admin
[oracle@testnode1 ~]$ cd /home/oracle/software/oracle/grid
[oracle@testnode1 grid]$ ./runInstaller
At any time during installation, if you have a question about what you are being asked to do, click the Help button on the OUI page.
Screen Name
Response
Installation
Option
Product
Languages
Screen Shot
The C reate ASM Disk Group screen lists all of the Oracle ASM candidate disks that were labeled during the ASMLib configuration.
Note that the C reate ASM Disk Group wizard only allows for the configuration of one disk group. Using this wizard, create an Oracle ASM disk
group that will be used for database files. A second Oracle ASM disk group will be created for the recovery files (Fast Recovery Area) later in
this guide using the Oracle Automatic Storage Management C onfiguration Assistant (Oracle ASMC A).
C reate an ASM Disk Group that will be used to store the database files for the example database described in this guide according to the values
in the table below.
Create ASM
Disk Group
If the Oracle ASM disks do not show up in the "Select Member Disks" window as eligible (ORCL:DATAVOL1 and ORCL:FRAVOL1) then click on the
[C hange Disk Discovery Path] button and input "ORCL:*".
Disk Group Name
TESTDB1_DATA
Redundancy
External
Disk Path
ORCL:DATAVOL1
During installation, disk paths mounted on Oracle ASM and registered on ASMLIB with the string ORCL:* are listed as default database storage
candidate disks.
Enter the SYSASM password required to connect to the Oracle ASM instance. The Oracle ASM instance is managed by a privileged role called
SYSASM, which grants full access to Oracle ASM disk groups. Oracle recommends that you create a less privileged user, ASMSNMP, with SYSDBA
privileges to monitor the Oracle ASM instance.
pdfcrowd.com
Specify ASM
Password
Privileged
Operating
System
Groups
Make any changes necessary to match the values in the table below.
OSDBA for ASM
asmdba
Specify
Installation
Location
OSASM
asmadmin
Set the "Oracle Base" ($ORACLE_BASE) and "Software Location" ($ORACLE_HOME) for the Oracle Grid Infrastructure for a Standalone Server
installation.
Oracle Base: /u01/app/oracle
Software Location: /u01/app/oracle/product/11.2.0/grid
Since this is the first install on the host, you will need to create the Oracle Inventory. Use the default values provided by the OUI.
Create
Inventory
Prerequisite
Checks
Starting with Oracle Grid Infrastructure 11g Release 2 (11.2), if any check fails, the installer (OUI) will create shell script programs called fixup
scripts to resolve many incomplete system configuration requirements. If OUI detects an incomplete task that is marked "fixable", then you can
easily fix the issue by generating the fixup script by clicking the [Fix & Check Again] button.
The fixup script is generated during installation. You will be prompted to run the script as root in a separate terminal session. When you run the
script, it raises kernel values to required minimums, if necessary, and completes other operating system configuration tasks.
If the OUI detected any failed checks, take the appropriate action to resolve it or click the "Ignore All" check box to acknowledge it is safe to
continue with the installation without resolving the issue.
If all prerequisite checks pass, the OUI continues to the Summary screen.
Summary
Install
Product
The installer performs the Oracle Grid Infrastructure for a Standalone Server software installation.
After the installation completes, you will be prompted to execute root scripts to configure the Oracle Inventory, Oracle Grid Infrastructure, and
Automatic Storage Management software.
Note: Do not click OK until you run the scripts mentioned in this screen.
Open a new terminal window as the root user account and execute the orainstRoot.sh script.
Execute
Configuration
scripts
pdfcrowd.com
[11.2.0.1.0]
[11.2.0.2.0]
[11.2.0.3.0]
Go back to OUI and acknowledge the "Execute C onfiguration scripts" dialog window.
Run Grid
Infrastructure
Assistants
The OUI will continue by configuring Oracle Grid Infrastructure for a Standalone Server using the Oracle Net C onfiguration Assistant and the
Automatic Storage Management C onfiguration Assistant. C omponents will then be registered with Oracle Restart.
Finish
At the end of the installation, click the [Close] button to exit the OUI.
pdfcrowd.com
NAME=ora.cssd
TYPE=ora.cssd.type
TARGET=ONLINE
STATE=ONLINE on testnode1
NAME=ora.diskmon
TYPE=ora.diskmon.type
TARGET=ONLINE
STATE=ONLINE on testnode1
11.2.0.2.0
pdfcrowd.com
NAME=ora.LISTENER.lsnr
TYPE=ora.listener.type
TARGET=ONLINE
STATE=ONLINE on testnode1
NAME=ora.TESTDB1_DATA.dg
TYPE=ora.diskgroup.type
TARGET=ONLINE
STATE=ONLINE on testnode1
NAME=ora.asm
TYPE=ora.asm.type
TARGET=ONLINE
STATE=ONLINE on testnode1
NAME=ora.cssd
TYPE=ora.cssd.type
TARGET=ONLINE
STATE=ONLINE on testnode1
NAME=ora.diskmon
TYPE=ora.diskmon.type
TARGET=OFFLINE
STATE=OFFLINE
NAME=ora.evmd
TYPE=ora.evm.type
TARGET=ONLINE
STATE=ONLINE on testnode1
NAME=ora.ons
TYPE=ora.ons.type
TARGET=OFFLINE
STATE=OFFLINE
pdfcrowd.com
pdfcrowd.com
ora.ons
ora.ons.type
0/3
0/
OFFLINE
OFFLINE
11.2.0.3.0
Create Separate ASM Disk Group for the Fast Recovery Area
Run the Oracle Automatic Storage Management Configuration Assistant (Oracle ASMCA) as the oracle user account to create any additional Oracle ASM disk groups that will be used to create the example
database described in this guide.
During the installation of Oracle Grid Infrastructure for a Standalone Server, the Create ASM Disk Group wizard only allowed for the configuration of one disk group. Using that wizard, an Oracle ASM disk group
named TESTDB1_DATA was created for database files. In this section, create an additional Oracle ASM disk group named FRA for the Fast Recovery Area.
Start the Oracle ASMCA by executing the asmca command as the oracle use account in the Oracle Home for Oracle Grid Infrastructure.
Response
Screen Shot
Create Disk
Group
If the Oracle ASM disk does not show up in the "Select Member Disks" window as eligible (ORCL:FRAVOL1) then click on the [C hange Disk Discovery Path] button
and input "ORCL:*".
When creating the "Fast Recovery Area" disk group, use "FRA" for the "Disk Group Name". In the "Redundancy" section, choose "External (None)". Finally,
check the Oracle ASM disk "ORCL:FRAVOL1" in the "Select Member Disks" section.
After verifying all values in this dialog are correct, click the [OK] button.
pdfcrowd.com
Disk Groups
[oracle@testnode1 ~]$ id
uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper),504(asmadmin),505(asmdba),506(asmoper)
[oracle@testnode1 ~]$ . .bash_profile
[oracle@testnode1 ~]$ echo $ORACLE_HOME
/u01/app/oracle/product/11.2.0/dbhome_1
[oracle@testnode1 ~]$ cd /home/oracle/software/oracle/database
[oracle@testnode1 database]$ ./runInstaller
At any time during installation, if you have a question about what you are being asked to do, click the Help button on the OUI page.
Screen Name
Configure
Security
Updates
Response
Screen Shot
To stay informed with the latest security issues, enter your e-mail address, preferably your My Oracle Support e-mail address or user name in
the Email field. You can select the "I wish to receive security updates via My Oracle Support" check box to receive security updates. Enter your
My Oracle Support password in the "My Oracle Support Password" field.
For the purpose of this example, un-check the security updates check-box and click the [Next] button to continue.
Acknowledge the warning dialog indicating you have not provided an email address by clicking the [Yes] button.
Installation
Option
Grid Options
Product
Languages
Database
Edition
Installation
Location
Operating
pdfcrowd.com
System
Groups
Prerequisite
Checks
Starting with 11g Release 2, if any checks fail, the installer (OUI) will create shell script programs called fixup scripts to resolve many incomplete
system configuration requirements. If OUI detects an incomplete task that is marked "fixable", then you can easily fix the issue by generating
the fixup script by clicking the [Fix & Check Again] button.
The fixup script is generated during installation. You will be prompted to run the script as root in a separate terminal session. When you run the
script, it raises kernel values to required minimums, if necessary, and completes other operating system configuration tasks.
If the OUI detected any failed checks, take the appropriate action to resolve it or click the "Ignore All" check box to acknowledge it is safe to
continue with the installation without resolving the issue.
If all prerequisite checks pass, the OUI continues to the Summary screen.
Summary
Install
Product
Execute
Configuration
scripts
[11.2.0.1.0]
[11.2.0.2.0]
[11.2.0.3.0]
Go back to OUI and acknowledge the "Execute C onfiguration scripts" dialog window.
Finish
At the end of the installation, click the [Close] button to exit the OUI.
Response
Screen Shot
Specify the Oracle base and Software location (Oracle home) as follows.
Installation
Location
pdfcrowd.com
The installer will run through a series of checks to determine if the machine and OS configuration meet the minimum requirements for installing
the Oracle Database Examples software.
Prerequisite
Checks
Starting with 11g Release 2, if any checks fail, the installer (OUI) will create shell script programs called fixup scripts to resolve many incomplete
system configuration requirements. If OUI detects an incomplete task that is marked "fixable", then you can easily fix the issue by generating the
fixup script by clicking the [Fix & Check Again] button.
The fixup script is generated during installation. You will be prompted to run the script as root in a separate terminal session. When you run the
script, it raises kernel values to required minimums, if necessary, and completes other operating system configuration tasks.
If the OUI detected any failed checks, take the appropriate action to resolve it or click the "Ignore All" check box to acknowledge it is safe to
continue with the installation without resolving the issue.
If all prerequisite checks pass, the OUI continues to the Summary screen.
Summary
Install
Product
Finish
At the end of the installation, click the [Close] button to exit the OUI.
Response
Screen Shot
pdfcrowd.com
Operations
Database
Templates
Database
Identification
Management
Options
From the "Enterprise Manager" tab, you can leave the default option here which is to Configure Enterprise Manager / Configure Database Control for
local management.
Using the "Automatic Maintenance Tasks" tab, leave the default option which is to Enable automatic maintenance tasks.
Database
Credentials
Secure the database with passwords for the most important database administrator accounts. Enter passwords for the SYS, SYSTEM, DBSNMP, and SYSMAN
database accounts. The passwords should be at least eight characters in length and include at least one alphabetic and one numeric character.
To specify the same password for all accounts, Use the Same Administrative Password for All Accounts.
Specify storage type and locations for database files.
Database File
Locations
Specify
ASMSNMP
Password
Database
Content
I left all of the Database C omponents (and destination tablespaces) set to their default value although it is perfectly OK to select the Sample Schemas. This
option is available since we installed the Oracle Database 11g Examples.
Initialization
Parameters
C hange any parameters for your environment. I left them all at their default settings for this example.
Database
Storage
C hange any parameters for your environment. I left them all at their default settings for this example.
Creation
Options
Keep the default option Create Database selected. I also always select to Generate Database Creation Scripts. C lick Finish to start the database creation
process. After acknowledging the database creation report and script generation dialog, the database creation will start.
C lick OK on the "Summary" screen.
pdfcrowd.com
Database
Creation
Process
End of
Database
Creation
When the DBCA has completed, you will have a fully functional Oracle Restart enabled Oracle Database 11g Release 2 database running using Oracle ASM.
Verify Oracle Restart
From the Oracle home for Grid Infrastructure.
11.2.0.1.0
pdfcrowd.com
pdfcrowd.com
NAME=ora.testdb1.db
TYPE=ora.database.type
TARGET=ONLINE
STATE=ONLINE on testnode1
11.2.0.3.0
NAME=ora.FRA.dg
TYPE=ora.diskgroup.type
TARGET=ONLINE
STATE=ONLINE on testnode1
NAME=ora.LISTENER.lsnr
TYPE=ora.listener.type
TARGET=ONLINE
STATE=ONLINE on testnode1
NAME=ora.TESTDB1_DATA.dg
TYPE=ora.diskgroup.type
TARGET=ONLINE
STATE=ONLINE on testnode1
NAME=ora.asm
TYPE=ora.asm.type
TARGET=ONLINE
STATE=ONLINE on testnode1
NAME=ora.cssd
TYPE=ora.cssd.type
TARGET=ONLINE
STATE=ONLINE on testnode1
NAME=ora.diskmon
TYPE=ora.diskmon.type
TARGET=OFFLINE
STATE=OFFLINE
NAME=ora.evmd
TYPE=ora.evm.type
TARGET=ONLINE
STATE=ONLINE on testnode1
NAME=ora.ons
TYPE=ora.ons.type
TARGET=OFFLINE
STATE=OFFLINE
NAME=ora.testdb1.db
TYPE=ora.database.type
TARGET=ONLINE
STATE=ONLINE on testnode1
pdfcrowd.com
pdfcrowd.com
Make certain to run emctl from $ORACLE_HOME/bin and not from $GRID_HOME/bin as
described in the Troubleshooting section to this guide.
pdfcrowd.com
pdfcrowd.com
pdfcrowd.com
Archive Mode
Enabled
USE_DB_RECOVERY_FILE_DEST
75
77
77
ORACLE_PATH=$ORACLE_BASE/dba_scripts/sql:.:$ORACLE_HOME/rdbms/admin
export ORACLE_PATH
Now that the DBA Scripts Archive for Oracle has been unzipped and the UNIX environment variable ($ORACLE_PATH) has been set to the appropriate directory, you should now be able to run any of the SQL
scripts in the $ORACLE_BASE/dba_scripts/sql while logged into SQL*Plus from any directory. For example, to query tablespace information while logged into the Oracle database as a DBA user:
pdfcrowd.com
SQL> @dba_tablespaces
Status
-------ONLINE
ONLINE
ONLINE
ONLINE
ONLINE
ONLINE
Tablespace Name
-----------------EXAMPLE
SYSAUX
SYSTEM
TEMP
UNDOTBS1
USERS
TS Type
-----------PERMANENT
PERMANENT
PERMANENT
TEMPORARY
UNDO
PERMANENT
avg
sum
Ext. Mgt.
---------LOCAL
LOCAL
LOCAL
LOCAL
LOCAL
LOCAL
Seg. Mgt.
Tablespace Size
Used (in bytes) Pct. Used
--------- ------------------ ------------------ --------AUTO
157,286,400
85,131,264
54
AUTO
629,145,600
487,718,912
78
MANUAL
734,003,200
705,953,792
96
MANUAL
67,108,864
66,060,288
98
MANUAL
560,988,160
419,102,720
75
AUTO
5,242,880
1,048,576
20
------------------ ------------------ --------70
2,153,775,104
1,765,015,552
6 rows selected.
To obtain a list of all available Oracle DBA scripts while logged into SQL*Plus, run the help.sql script.
SQL> @help.sql
========================================
Automatic Shared Memory Management
========================================
asmm_components.sql
========================================
Automatic Storage Management
========================================
asm_alias.sql
asm_clients.sql
asm_diskgroups.sql
asm_disks.sql
asm_disks_perf.sql
asm_drop_files.sql
asm_files.sql
asm_files2.sql
asm_templates.sql
< --- SNIP --- >
perf_top_sql_by_buffer_gets.sql
perf_top_sql_by_disk_reads.sql
========================================
Workspace Manager
========================================
wm_create_workspace.sql
wm_disable_versioning.sql
wm_enable_versioning.sql
wm_freeze_workspace.sql
wm_get_workspace.sql
wm_goto_workspace.sql
wm_merge_workspace.sql
pdfcrowd.com
wm_refresh_workspace.sql
wm_remove_workspace.sql
wm_unfreeze_workspace.sql
wm_workspaces.sql
...
+ASM:/u01/app/oracle/product/11.2.0/grid:N
testdb1:/u01/app/oracle/product/11.2.0/dbhome_1:N
...
pdfcrowd.com
Miscellaneous Options
This final section contains several miscellaneous options that may be of use to newcomers of Oracle 11g.
Enterprise Manager - Database Console
During the database creation section, we asked for DBCA to create the Enterprise Manager Database Console application. The DBCA will automatically start the OEM Database Console application. To check
for the process, use emctl from $ORACLE_HOME/bin.
https://testnode1.idevelopment.info:1158/em
Login:
User Name: SYSTEM
Password: <The password you chose during installation>
pdfcrowd.com
At the time of this writing, I have been unable to determine if it is possible to configure OEM
Database Control in Oracle Restart to be started and stopped when the database server is
cycled. Oracle Restart appears to be a feature in Enterprise Manager Cloud Control 12c and
will be something I research in a future article.
pdfcrowd.com
Troubleshooting
This section contains a short list of common errors (and solutions) that can be encountered during the Oracle installation described in this article.
Default Listener Creation Failure in Grid Infrastructure Home
When installing Oracle Grid Infrastructure for a Standalone Server, it is required to either unset the $TNS_ADMIN environment variable or set it appropriately for the Grid Infrastructure environment
($GRID_HOME/network/admin) before starting the Oracle Universal Installer (OUI).
For example, if $TNS_ADMIN is set for the Oracle Database home environment ($ORACLE_HOME/network/admin), the Oracle Net Services Configuration (NETCA) will silently fail with the following error when
run as part of the Grid Infrastructure root.sh script.
pdfcrowd.com
If this error goes unnoticed and does not get corrected, you will receive an error using DBCA when selecting to enable Oracle Enterprise Manager.
Oracle Restart enabled database creation requires Default listener configured and running in Grid Infrastructure home. Use NETCA in Grid Infrastructure home - "/u01/app/oracle/product/11.2.0/grid" to configure
a listener before proceeding.
The Oracle Net Listener created by the Grid Infrastructure installer (through root.sh) will need to be dropped and recreated using NETCA.
From the Grid Infrastructure home environment, stop the currently running Oracle Net Listener and either unset $TNS_ADMIN or set it appropriately for the Grid Infrastructure home environment
(/u01/app/oracle/product/11.2.0/grid/network/admin) as described in the login script for the Oracle user account.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
The command completed successfully
[oracle@testnode1 ~]$ TNS_ADMIN=/u01/app/oracle/product/11.2.0/grid/network/admin
[oracle@testnode1 ~]$ export TNS_ADMIN
Start NETCA and run through the process of creating a default Oracle Net Listener named LISTENER running on the default port 1521.
Response
Welcome
Listener Action
Oracle Net
Listener Name
Screen Shot
pdfcrowd.com
Select Protocols
TCP/IP Protocol
More Listeners?
Listener
Configuration Done
Listener configuration complete! C lick [Next] to continue. You will be returned to the Welcome screen.
Welcome
Select Naming
Methods
Naming Methods
Configuration Done
Naming Methods configuration complete! C lick [Next] to continue. You will be returned to the Welcome screen.
Welcome
pdfcrowd.com
Last modified on
Monday, 14-Jul-2014 18:03:07 EDT
Page Count: 37427
pdfcrowd.com