Anda di halaman 1dari 3

haInstallation of oracle 10g on linux

By:-Mahendra G. Dalvi
Login as ROOT
1.To check the amount of RAM and swap space available :
grep MemTotal /proc/meminfo
grep SwapTotal /proc/meminfo

The minimum RAM is 512 M.B. And the minimum required swap space
is 1 g.b. Swap space should be twice the amount of RAM for systems with 2GB of
RAM or less and between one and two times the amount of RAM for the systems with
more than 2 G.B.
You also need 2.5 G.B. Of available disk space for the Oracle
Database 10g Release 2 software and another 1.2 G.B. For the database. The /tm
p directory needs at least 400 M.B. Of free space. To check the available disk
space on your system, run the following command
df -h
2 Create Oracle user and group account:-
groupadd oinstall
groupadd dba
useradd -m -g oinstall -G dba oracle id oracle
Set the password on the oracle account:
passwd oracle
Logout root user
Login as Oracle user
3 Create Directories
Now create Directories to store the Oracle Database 10g Release2
software and the database files. This guide adheres to the optimal flexible ar
chitecture (OFA) for the naming conventions used in creating the directory sturc
tures.
The following assumes that the directories are being created in
the root filesystem. This is done for the sake of simplicity and is not recomme
nded as a general practice. These directories would normally be created as sepa
rate file systems.
Issues the following commands as root:
mkdir -p /home/oracle
chown -R oracle:oinstall /home/oracle
chmod -R 775 /home/oracle
4 Configure the linux kernel parameters in /etc/sysctl.conf :-
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_max = 262144

5. set following variables in /home/oracle/.bash_profile :-


# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
export ORACLE_BASE=/home/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export PATH=$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export ORACLE_SID=demo (you can change SID)
PATH=$PATH:$HOME/bin
export PATH

Acutall Installation :-

create a directory to contain the Oracle Database 10g Release 2 distribu


tion :-
mkdir 10gR2_db
cd 10gR2_db
unzip 10201_database_linux32.zip
Change directory to the location where you extracted the Oracle Database
10g Release 2 software.
Cd $HOME/10gR2_db
Change directory to disk1
Start Oracle Universal Installer
./runInstaller
if it gives an error that os is not compatiable then do the following change i
n th following file
database/install/oraparamslient.ini add os type redhat5

Select Installation Method.


Select Basic Installation
Oracle Home Location : /home/oracle/product/10.2.0/db_1
Installation Type Enterprise Edition (1.3 G.B.)
UNIX DBA Group:oinstall
Make Sure Starter Database is checked
Global database name: demo (your sid which specified in bash_profile)
Enter the database password and confirm password.
Click on Next
Specify Inventory Directories and Credentials:-
Inventory Directory: /home/oracle/oraInventory
Operating System group name :oinstall
click next
Product-specific Precific Prerequisite Checks
if it shows any os error ignore it click on next
Summery of the product being installed is presented.
Click on install
Configuration Assistantss
The Oracle Net, Oracle Database, and iSQL*Plus
configuration assistants will run automatically.
Execute Configuration Scripts.
At the end of the installlation, a pop up window will appear indicating
scripts that need to be run as root . Login as root and run the indicated scrip
ts.
Click on o.k. When finished.
End of Installation
Make note of the URLs presented in the summary, and click on EXIT when r
ead.

Anda mungkin juga menyukai