Oracle Database Installation
Oracle Database Installation
Oracle Database Installation
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
1.2.
Intended Audience
1.3.
IT / Support department
Technical staffs that perform installation on Oracle Database.
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.
-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.
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
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
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.
-6-
unzip p4589082_10201_SOLARIS64.zip
You have to export the SHIPHOME variable with Oracle installer location, by
typing a command:
export SHIPHOME=/opt/installer/oracle
Login
as
oracle
user
and
directory /opt/installer/oracle/disk1/database
navigate
bash
cd /opt/installer/oracle/disk1/database
-7-
to
the
specific
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-
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-
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.
-12-
Finally, the installation of oracle software has been accomplished and the end of
installation screen will be appeared. Click exit button for ending it.
-13-
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.
-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-