Sie sind auf Seite 1von 2

ORACLE-DBA

ORACLE SETUP IN LINUX ENVIRONMENT:


Step 1: create the Linux groups and user account that will be used to install and maintain the Oracle
Database in root user as follows:

/usr/sbin/groupadd oinstall
/usr/sbin/groupadd dba
useradd -u 1000 -g oinstall -G dba d /home/oracle -m oracle

Step 2: set the password for oracle user as follows:

passwd oracle

Enter new oracle password: oracle


Retype: oracle
Step 3: create directories to store the Oracle Database 10g Release 2 software and the database files as
follows:

mkdir -p /u01/app/oracle/product/10.2.0

Step 4: In root change permission as

Chown -R oracle :oinstall /u01/app


Chmod -R 775 /u01/app

Step 5: set kernel parameters as follows


root>vi /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
Step 6: Reboot the system as
Root> reboot

Step 7: Login with oracle user then, set bash_profile parameters as follows.
Oracle> vi .bash_profile
export ORACLE_SID=orcl
export ORACLE_HOME=/u01/app/oracle/product/10.2.0
export LD_LIBRARY_PATH=/u01/app/oracle/product/10.2.0/lib
export CLASS_PATH=$ORACLE_HOME/jlib
export TNS_ADMIN=$ORACLE_HOME/network/admin

SAMEER.MCA-DBA

Page 1

ORACLE-DBA
export PATH=$ORACLE_HOME/bin:/sbin:/bin:/usr/bin:/ccs/bin:$PATH:.

Source the bash profile as . .bash_profile


Insert Software-cd then

Step 8: /media/cdrecorder/runInstaller
Step 9: Select installation method in

Basic installation
Database name=orcl
Pwd:sys

confirm:sys

Step10: next.here check full path of the inventory directory


Step 11: Process will start..

Step 12: In prerequisite check .if fail any stauts select and retry then completing once then if any failure
occurs then proceed next step
Step13: It shows summary then agree then Install it by pressing INSTALL button.
Step 14: Database configuration assistant.. then Okthen it proceeds some configuration setup finish
Step 15: open a terminal window login as root, then run following scripts then scripts contain window
then click Ok

sh /u01/app/oracle/product/10.2.0/root.sh

sh /home/oracle/oraInventory/orainstRoot.sh

Step 16: Oracle10g database is created successfully.

SAMEER.MCA-DBA

Page 1

Das könnte Ihnen auch gefallen