Sunday, April 12, 2009

Oracle® Database 11g Release 1 (11.1) for Linux x86


Oracle® Database   11g Release 1 (11.1) for Linux x86 

Installation Steps


Memory Requirements

The following are the memory requirements for installing Oracle Database 11g release
·         At least 1 GB of physical RAM
To determine the physical RAM size, enter the following command:

# grep MemTotal /proc/meminfo


To determine whether the system architecture can run the software, enter the
following command:

# grep "model name" /proc/cpuinfo

Disk Space Requirements

The following are the disk space requirements for installing Oracle Database 11g
release 1:
·         Between 150 and 200 MB of disk space in the /tmp directory
To determine the amount of disk space available in the /tmp directory, enter the
following command:

# df -k /tmp

If there is less than 400 MB 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 when setting the oracle
user’s environment (described later).
·         Extend the file system that contains the /tmp directory. If necessary, contact
the system administrator for information about extending file systems.
·         Between 1.5 GB and 3.5 GB of disk space for the Oracle software, depending on the installation type







To determine the amount of free disk space on the system, enter the following
command:

# df –k


Operating System Requirements

·         Oracle Enterprise Linux 4.0
·         Oracle Enterprise Linux 5.0
·         Red Hat Enterprise Linux 4.0
·         Red Hat Enterprise Linux 5.0


Kernel Requirements
The following are the Kernel requirements for Oracle Database 11g release 1:
·         For  Oracle Enterprise Linux 4.0, and Red Hat Enterprise Linux 4.0:
2.6.9
·         For  Oracle Enterprise Linux 5.0, and Red Hat Enterprise Linux 5.0:
2.6.18
To determine whether the required kernel is installed, enter the following command:

# uname –r

Package Requirements
The following are the list of packages required for Oracle Database 11g release 1:

·         The following or later version of packages for  Oracle Enterprise Linux
4.0, and Red Hat Enterprise Linux 4.0 should be installed:

binutils-2.15.92.0.2-18
compat-libstdc++-33.2.3-47.3
elfutils-libelf-0.97-5
elfutils-libelf-devel-0.97-5
glibc-2.3.4-2.19
glibc-common-2.3.4-2.19
glibc-devel-2.3.4-2.19
glibc-headers-2.3.4-2.19
gcc-3.4.5-2
gcc-c++-3.4.5-2
libaio-devel-0.3.105-2
libaio-0.3.105-2
libgcc-3.4.5
libstdc++-3.4.5-2
libstdc++-devel-3.4.5-2
make-3.80-5
sysstat-5.0.5













·         The following or later version of packages for  Oracle Enterprise Linux
5.0, and Red Hat Enterprise Linux 5.0 should be installed:
binutils-2.17.50.0.6-2.el5
compat-libstdc++-33-3.2.3-61
elfutils-libelf-0.125-3.el5
elfutils-libelf-devel-0.125
glibc-2.5-12
glibc-common-2.5-12
glibc-devel-2.5-12
glibc-headers-2.5-12
gcc-4.1.1-52
gcc-c++-4.1.1-52
libaio-0.3.106
libaio-devel-0.3.106
libgcc-4.1.1-52
libstdc++-4.1.1
libstdc++-devel-4.1.1-52.e15
make-3.81-1.1
sysstat-7.0.0



To determine whether the required packages are installed, enter commands similar to
the following:

# rpm -q package_name

Oracle ODBC Drivers
You should install ODBC Driver Manager for UNIX. You can download and install the Driver Manager from the following URL:


Browser Requirements
Web browsers must support Java Script and the HTML 4.0 and CSS 1.0 standards. The following Web browsers are supported for Oracle Enterprise Manager Database Control:
·         Netscape Navigator 7.2
·         Netscape Navigator 8.1
·         Mozilla version 1.7
·         Microsoft Internet Explorer 6.0 SP2
·         Microsoft Internet Explorer 7.0
·         Firefox 1.0.4
·         Firefox 1.5
·         Firefox 2.0









Creating Required Operating System Groups and Users
The following local operating system groups and users are required if you are
installing Oracle Database:

  • The Oracle Inventory group (oinstall)
  • The OSDBA group (dba)
  • The Oracle software owner (oracle)

 If necessary, enter the following commands to create the oinstall and dba groups:

# groupadd oinstall
# groupadd dba


 If the oracle user does not exist, enter the following command to create it:

# useradd -g oinstall -G dba oracle

This command creates the oracle user and specifies oinstall as the
primary group and dba as the secondary group.

Enter the following command to set the password of the oracle user:

# passwd oracle


Configuring Kernel Parameters

Following Parameters need to be changed in /etc/sysctl.conf

fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
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













By specifying the values in the /etc/sysctl.conf file, they persist when
you restart the system.

Enter the following command to change the current values of the kernel
parameters:

# /sbin/sysctl –p

Setting Shell Limits for the oracle User
 Add the following lines in the /etc/security/limits.conf file:

oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

Add the following line to the /etc/pam.d/login file, if it does not already exist:
session required pam_limits.so

Creating Required Directories

Create directories with names similar to the following, and specify the correct owner, group, and permissions for them:
Enter commands similar to the following to create the recommended
subdirectories in the mount point directory that you identified and set the
appropriate owner, group, and permissions on them:


# mkdir -p /mount_point/app/
# chown -R oracle:oinstall /mount_point/app/
# chmod -R 775 /mount_point/app/
For example:
# mkdir -p /u01/app/
# chown -R oracle:oinstall /u01/app/
# chmod -R 775 /u01/app/

If you are not already logged in to the system where you want to install the
software, then log in to that system as the oracle user.

 If you are not logged in as the oracle user, then switch user to oracle:

$ su - oracle

To determine the default shell for the oracle user, enter the following command:

$ echo $SHELL

To run the shell startup script, enter one of the following commands:
·         Bash shell:

$ . ./.bash_profile
·         Bourne or Korn shell:

$ . ./.profile

·         C shell:

% source ./.login


If you determined that the /tmp directory has less than 400 MB of free disk space,
then identify a file system with at least 400 MB of free space and set the TMP and TMPDIR environment variables to specify a temporary directory on this file
system:
To determine the free disk space on each mounted file system use the
following command:

# df -k /tmp

If necessary, enter commands similar to the following to create a temporary
directory on the file system that you identified, and set the appropriate
permissions on the directory:

$ sudo mkdir /mount_point/tmp
$ sudo chmod a+wr /mount_point/tmp
# exit

Enter commands similar to the following to set the TMP and TMPDIR
environment variables:

·         Bourne, Bash, or Korn shell:

$ TMP=/mount_point/tmp
$ TMPDIR=/mount_point/tmp
$ export TMP TMPDIR

·         C shell:
% setenv TMP /mount_point/tmp
% setenv TMPDIR /mount_point/tmp


Enter commands similar to the following to set the ORACLE_BASE and ORACLE_SID environment variables:

·         Bourne, Bash, or Korn shell:
$ ORACLE_BASE=/u01/app/oracle
$ ORACLE_SID=orcl
$ export ORACLE_BASE ORACLE_SID


·         C shell:
% setenv ORACLE_BASE /u01/app/oracle
% setenv ORACLE_SID sales


Installing Oracle Database
After configuring the oracle user’s environment, start Oracle Universal Installer and
install Oracle Database as follows:

To install the Oracle software, you must use the Oracle Universal installer.
For this installation, you need either the DVDs or a downloaded version of the DVDs. In this tutorial, you install from the downloaded version. From the directory where the DVD files were unzipped, open a terminal window and enter the following:
./runInstaller.sh












The product you want to install is Oracle Database 11g. Make sure the product is selected and click Next.










You will perform a basic installation with a starter database. Enter orcl for the Global Database Name and oracle for Database Password and Confirm Password. Then, click Next.











You need to specify your Inventory directory. The location should be set to /u01/app/oracle/oraInventory. Accept the default Operating System group name, oinstall. Then, click Next.









The installer now verifies that the system meets all the minimum requirements for installing and configuring the chosen product. Please correct any reported errors before continuing. When the check successfully completes, click Next.










Oracle Configuration Manager allows you to associate your configuration information with your Metalink account. You can choose to enable it on this window. Then, click Next.












Review the Summary window to verify what is to be installed. Then, click Install.











The progress window appears.












The Configuration Assistants window appears.












Your database is now being created.














When the database has been created, you can unlock the users you want to use. Click OK.














You need to execute orainstRoot.sh and root.sh as the root user.










Open a terminal window and enter the following commands. Follow the prompts as instructed.
su -
cd /u01/app/oracle/oraInventory
./orainstRoot.sh
cd ../product/11.1.0/db_1
./root.sh
exit
 






Switch back to the Universal Installer and click OK.
Click Exit. Click Yes to confirm exit.



 

 

 

 

 

 

 

 

 

Testing Your Installation

To test that your installation completed successfully, perform the following steps:
Open a browser and enter the following URL:
https://:1158/em
where <hostname> should be changed to your machine name, IP address, or localhost.
Because Enterprise Manager Database Control is a secure site, you need a certificate. Select the Accept this certificate permanently option, and then click OK.






Enter system as the User Name and oracle as the Password, and then click Login.