Oracle Database Installation

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 18

Installation Oracle

Database 10g

Table of Content
1.

INTRODUCTION...................................................................................4
1.1.
1.2.
1.3.

2.

PURPOSE OF DOCUMENT.........................................................................4
INTENDED AUDIENCE..............................................................................4
SCOPE OF THIS GUIDE............................................................................4
DATABASE INSTALLATION.....................................................................5

2.1.
2.2.
2.3.
2.4.

PREPARATION......................................................................................5
PATCHING ORACLE DATABASE INSTALLER.......................................................7
INSTALLING ORACLE DATABASE..................................................................8
PATCHING ORACLE DATABASE..................................................................14

-2-

1.INTRODUCTION
1.1.

Purpose of Document

This document provides technical information about installing Oracle database.

1.2.

Intended Audience

This manual is intended for

1.3.

IT / Support department
Technical staffs that perform installation on Oracle Database.

Scope of this guide

This document consists of 2 parts:


-

The first part is to list down all the preparation to install Oracle database.
The second part is to describe the steps to create and patch Oracle database.

-3-

2.Database Installation
2.1. Preparation

Use Solaris version 8 or more advanced version in order to install database oracle
10g.
Copy patches into /opt/installer/oracle or any directory which you select for placing
the oracle 10g installers.
Copy all required files from Oracle10g DVDs to install oracle 10g into installer
directory.
Makes sure the server is using static IP address.
Login as root and then create oracles user by following below commands:
groupadd oinstall
groupadd dba
useradd -d /export/home/oracle -g oinstall -G dba -m -s /bin/bash oracle
passwd -r files oracle

Enter a new password for the user oracle. In this case, type: password as the
oracles password.
Go to the directory /export/home/oracle and then type command:
vi .profile

Add some content. The content much more like the below picture, however refer
to the Production Setup and Deployment Documentation for detail.

To check the result login as oracle user by typing


su - oracle

-4-

env

Set the installation directory structure and refer to the Production Setup and
Configuration Documentation for the location, it can be done by following
below commands:
mkdir /opt/oracle. This is for setting up the ORACLE_BASE.
mkdir /opt/oracle/10g. It will become ORACLE_HOME.
chown R oracle:oinstall /opt/oracle. The command will make the
installation tree to be possessed by oracle user.
chmod R 775 /opt/oracle. By applying this command, Oracle Installer
can write what it needs into the directory.

At this instant, the next step is setting up the kernel parameters by doing below
operations. To create the resource project that will be used by user oracle, type
projadd oracle

Navigate to directory /etc and type edit user_attr. It will be viewed as below figure
first.
cd /etc
vi user_attr
It will be viewed as this figure below
# Copyright (c) 2003 by Sun Microsystems, Inc. All rights
reserved.
# /etc/user_attr
# user attributes. see user_attr(4)
#pragma ident "@(#)user_attr 1.1 03/07/09 SMI"
adm::::profiles=Log Management
lp::::profiles=Printer Management
root::::auths=solaris.*,solaris.grant;profiles=Web Console
Management,All;lock_after_retries=no

-5-

You need to add a new line to the end of this file that reads:
oracle::::project=oracle
That means the user oracle will be assigned to the new resource project called
oracle whenever he logs on.

Open antoher login session using user oracle perform command:


prctl -n project.max-shm-memory -i project oracle

The shared memory segments must be upgraded into the specified size of
project.max-shm-memory in the Production Setup and Deployment. So, open a
new terminal session and login as root user. After that, perform following
command (for example the value of project.max-shm-memory is 14GB):
prctl -n project.max-shm-memory -v 14gb -r -i project oracle

Using user oracle perform this command to check the value of project.max-shmmemory:
prctl -n project.max-shm-memory -i project oracle

Also, you have to make the value of shared memory becomes permanent by
performing this command as root user:
projmod -s -K "project.max-shm-memory=(priv,14gb,deny)" oracle

After that there will be some additional code in /etc/system, and it can be done by
logging in as root and type:
vi /etc/system

Append this lines of code in the end of the files:


set
set
set
set
set
set
set
set
set

noexec_user_stack=1
semsys:seminfo_semmni=100
semsys:seminfo_semmns=1024
semsys:seminfo_semmsl=256
semsys:seminfo_semvmx=32767
shmsys:shminfo_shmmax=15032385536
shmsys:shminfo_shmmin=1
shmsys:shminfo_shmmni=100
shmsys:shminfo_shmseg=10

2.2. Patching Oracle Database Installer

Before you can do the installation phase, you have to patch the installation files
first. Navigate to patch location. In this case, /opt/installer/oracle/patch.

Unzip the patch file p4589082_10201_SOLARIS64.zip by typing a command


bash

-6-

unzip p4589082_10201_SOLARIS64.zip

Navigate to directory 4589082 by typing a command:


cd 4589082

You have to export the SHIPHOME variable with Oracle installer location, by
typing a command:
export SHIPHOME=/opt/installer/oracle

From directory 4589082 execute the p4589082.sh file by typing a command:


./p4589082.sh

2.3. Installing Oracle Database

Login
as
oracle
user
and
directory /opt/installer/oracle/disk1/database

navigate

bash
cd /opt/installer/oracle/disk1/database

Execute the installer by the following commands:


./runInstaller
Commonly, there will be an error like this:

-7-

to

the

specific

This might happened because IP address is not correctly configured while


setting up the environment display parameter. See below figure in detail.

Therefore, edit localhost to your ip address in .profile file or using this command
for temporary solution:
bash
export DISPLAY=your-pc-ip-address:0.0

The Select Installation Method screen is showed up, in this screen you can
choose either basic installation or advanced installation. In this case, I fill oracle
Home Location with address /opt/oracle/10g and database password is password,
please refer to Production Setup and Deployment Documentation of the project for
the correct location.

-8-

In Specify Inventory Directory and Credential Screen leave everything as default


Then, Click next button.

Commonly, there will be an error message after clicking the next button. The error
message will be appeared if set the noexec_stack = 1 is not configured in
/etc/system file. See the below figure for detail.

If there is no more error, Oracle installer will show a message that all requirements
has been checked with status: passed.

-9-

By clicking next button, the next step is to select configuration for the installation.
There will be three options; Create a database, Configure Automatic Storage
Management and Install Database Software only. Choose the last option and then
click next button

Below, you will see a processing phase after clicking next button, notice a
progress bar in right-top of the screen

-10-

Afterward, there will be the summary screen of components that will be


installed. Install button will be activated and click it to install Oracle
database.

Below, there will be a figure when oracle has successfully installed setup
files

-11-

After finishing the installation, a pop up screen will appear and tell that
some scripts must be executed using root user.

Execute the required script using root in another console. Navigate to a


directory /opt/oracle/oraInventory and execute the .sh file using command:
bash
cd /opt/oracle/oraInventory
./orainstRoot.sh
cd /opt/oracle/10g
./root.sh

-12-

Enter full path of ORACLE_HOME = /opt/oracle/10g

Finally, the installation of oracle software has been accomplished and the end of
installation screen will be appeared. Click exit button for ending it.

2.4. Patching Oracle Database


Patching is usally a post installation to-do, but this guide also useful when there is a big
upgrade for exmaple from 10.2.0.2 to 10.2.0.5. In this case the patch process is from
10.2.0.1 to 10.2.0.2. Login as oracle user and then navigate to patch file location
/opt/installer/oracle/patch/patch10202/disk1.
bash
cd /opt/installer/oracle/patch/patch10202/disk1
./runInstaller

-13-

The welcome screen will appear, simply click next button.

Now, the menu for specifying Home Details appear. Fill the Path with Oracle
Home Location just as below figure

-14-

Click next button and the installer will give the summary screen.

Click Install button to start installing the patch set.

-15-

The installer ask to run a script for completing the patch installation. Open new
console, login as user root and then run the script.

cd /opt/oracle/10g
./root.sh

-16-

Input the full path of Oracle Home and press enter, if there are warnings about
over writing files just press Y

Go back to the oracle installer and then click OK button, the end of installation
screen will be shown. Click Exit button for completing the patch installation phase.

-17-

-18-

You might also like