step by step installation of oracle database 11g release 2 (2)

18
Step by Step Installation of Oracle Database 11g Release 2 (11.2.0.1.0) on Redhat Enterprise Linux 5 Operating System. Download linux os from the following link. https://edelivery.oracle.com/EPD/Download/get_form? egroup_aru_number=12386797 Install the linux OS with the following mount point sizes. Size allocation for mount points: / -----------> 10GB /home -----------> 2GB /var -----------> 2GB /tmp -----------> 2GB /usr -----------> 4GB /usr/local -----------> 2GB /opt -----------> 10GB /boot -----------> 1GB swap -----------> 2 x RAM size After the installation of the linux OS with above mentioned specifications follow these steps to install the oracle database 11g Release 2.

Upload: sai-ranga

Post on 17-Nov-2015

228 views

Category:

Documents


0 download

DESCRIPTION

Provide details steps for oracle database installation.

TRANSCRIPT

Step by Step Installation of Oracle Database 11g Release 2 (11.2.0.1.0) on Redhat Enterprise Linux 5 Operating System.Download linux os from the following link.https://edelivery.oracle.com/EPD/Download/get_form?egroup_aru_number=12386797Install the linux OS with the following mount point sizes.Size allocation for mount points:/ ----------->10GB/home----------->2GB/var----------->2GB/tmp----------->2GB/usr----------->4GB/usr/local----------->2GB/opt-----------> 10GB/boot----------->1GBswap----------->2 x RAM size

After the installation of the linux OS with above mentioned specifications follow these steps to install the oracle database 11g Release 2.

Pre-Installation Tasks:1. Create oracle User Account

Login as root and create the user oracle which belongs to oinstall, dba groups.

#groupadd oinstall#groupadd dba#useradd -g oinstall -G oinstall,dba oracle

Note: "#" sign means that you need execute this command as root user.

Then you have to set the password for the user using the password utility.

#passwd oracle

New password:_____________

Retype password: _____________

2. Setting System parametersEdit the /etc/sysctl.conf and add following lines: #vi /etc/sysctl.confkernel.shmall = 2097152kernel.shmmax = 536870912kernel.shmmni = 4096kernel.sem = 250 32000 100 128fs.file-max = 6815744fs.aio-max-nr = 1048576net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048576

Note: You need reboot system or execute "sysctl -p" command to apply above settings.

Edit the /etc/pam.d/login file and add following line: #vi /etc/pam.d/loginsession required pam_limits.so

Edit the /etc/security/limits.conf file and add following lines: oraclesoftnproc2047oraclehardnproc16384oraclesoftnofile1024oraclehardnofile65536

3. Setting Oracle Enviroment

Edit the /home/oracle/.bash_profile file and add following lines: #vi /home/oracle/.bash_profileORACLE_BASE=/opt/oracleORACLE_HOME=/opt/oracle/product/11.2.0/db_1ORACLE_SID=ORCLLD_LIBRARY_PATH=/opt/oracle/product/11.2.0/db_1/libPATH=$PATH:/opt/oracle/product/11.2.0/db_1/bin

export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH

Save the .bash_profile and execute following commands for load new enviroment: cd /home/oracle. .bash_profile

Check current status of SELinux: /usr/sbin/getenforce

If output is "Enforcing" then change mode to "Permissive" using following command: /usr/sbin/setenforce 0

To prevent Enforcing mode restore after next reboots or to disable SELinux modify the /etc/sysconfig/selinux change value of SELINUX variable to permissive or disabled: SELINUX=permissive

Mandatory packages required by the Oracle 11g Database:

For 32 bit linux versionbinutils.i386compat-db.i386compat-libstdc++-33.i386elfutils-libelf.i386gcc-c++.i386gcc.i386gdbm.i386glibc-devel.i386glibc-headers.i386glibc.i386glibc.i686ksh.i386libaio-devel.i386libaio.i386libstdc++.i386libXp.i386libXtst.i386make.i386setarch.i386sysstat.i386unixODBC.i386xorg-x11-utils.i386

For 64 bit linux versionbinutils.x86_64compat-db.x86_64compat-libstdc++-33.i386compat-libstdc++-33.x86_64elfutils-libelf.i386elfutils-libelf.x86_64gcc-c++.x86_64gcc.x86_64gdbm.x86_64glibc-devel.i386glibc-devel.x86_64glibc-headers.x86_64glibc.i686glibc.x86_64ksh.x86_64libaio-devel.i386libaio-devel.x86_64libaio.i386libaio.x86_64libstdc++.i386libstdc++.x86_64libXp.i386libXtst.i386libXtst.x86_64make.x86_64setarch.x86_64sysstat.x86_64unixODBC.i386unixODBC.x86_64xorg-x11-utils.x86_64

Download & Install:

1. Download and install required .rpm packages

Some additional packages are required for succesful instalation of Oracle software. To check whether required packages are installed on your operating system use following command:

rpm -q binutils compat-db compat-libstdc++-33 glibc glibc-devel glibc-headers gcc gcc-c++ libstdc++ gdbm make ksh elfutils-libelf sysstat libaio libaio-devel setarch unixODBC libXp libXtst xorg-x11-utils --qf '%{name}.%{arch}\n'|sort

If some package is not installed then install it from installation media or download it and install manually.

Manual package installation:

Before installation first mount the CD.#mount /dev/cdrom /mnt#cd /mnt#ls#cd Server#ls -l binutils*

If the package is present then install it by using the following command.

#rpm -ivh --force --nodeps binutils*

#cd /#eject

Then if the package is not present you have to check all the linux CDs like this and install all the mandatory packages.

To install the downloaded package go to the downloaded directory then give the same command

#rpm -ivh --force --nodeps

After all the mandatory packages get installed unzip the files it automatically creates one folder named database.

1. unzip linux.x64_11gR2_database_1of2.zip2. unzip linux.x64_11gR2_database_2of2.zip

Now the database folder contains the necessary software to install the database.

Creating oracle directories and changing its owner and permissions.

# mkdir -p /opt/oracle/product/11.2.0/db_1# chown -R oracle:oinstall /opt# chmod -R 755 /opt# chown -R oracle:oinstall /software# chmod -R 755 /software

Note: Software is the location of the folder database for example if the database folder is inside /opt/oracle then you have to give like this.#chown -R oracle:oinstall /opt/oracle/database#chmod -R 755 /opt/oracle/database

Starting the oracle software installation:

Reboot the system and login as oracle user

Now the system is prepared for Oracle software installation. To start the installation process execute the following command after getting inside to the database directory:

./runInstaller

Follow the screen shots to complete the installation successfully.

1)

2) After giving ./runInstaller the GUI will come like the screen shot mentioned below

3) Dont check any check box and dont give any email then click next. The following dialogue box will appear.

Give yes and click next.

4)

Select create and configure a database and click next button.

5)

Select Desktop Class if you want minimal configuration or select Server Class to get some advanced configuration. I selected server class.

6)

Select Single Database Installation and click next.

7)

Select Typical Install and click next.

8)

Give administrative password in the corresponding space, retype the password to confirm it in the confirm password space and click next. After clicking next if dialog box appears then click the yes button in that dialog box.

9)

Click yes in the dialog box.

10)

Keep the default values and click next

11)

Then the prerequisite checks will be done if all the prerequisite is correct then the following window will appear as shown in the screen shot.

12)

Click finish after the summery is shown.

13)

Then the database installation begins as shown above.

14)

The oracle net configuration assistant and oracle database configuration assistant will get installed.15)

Then in database configuration assistant click password management button if you want to change the password or if you want to use the default then click ok.

16)

Run the above scripts as root userTo execute the configuration scripts:1) Open a terminal window2) Login as root3) Run the scripts4) Return to Execute Configuration scripts dialog box and click ok to continue.

17)

Click close button .