Home » Infrastructure » Linux » how to install oracle dba10g R1 on RHEL 5 (oracle dba,10g R1,Redhat linux 5)
how to install oracle dba10g R1 on RHEL 5 [message #526074] Sat, 08 October 2011 00:58 Go to next message
prabhakar445
Messages: 5
Registered: October 2011
Location: bangalore
Junior Member
Hi,
i am new at oracle dba i was installed rhel 5 on my machine and now am trying to install oracle 10g R1 on rhel 5 and i already saw pre & post requisites but still am getting some errors can any one send me the correct procedure to install oracle dba 10g R1 on RHEL 5.






thanks & regards
prabhakar
Re: how to install oracle dba10g R1 on RHEL 5 [message #526083 is a reply to message #526074] Sat, 08 October 2011 01:54 Go to previous messageGo to next message
Michel Cadot
Messages: 68042
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
The correct procedure is described in the install guide.
Also you can find many examples on the web, just Google for it.

Regards
Michel
Re: how to install oracle dba10g R1 on RHEL 5 [message #526097 is a reply to message #526074] Sat, 08 October 2011 03:44 Go to previous messageGo to next message
John Watson
Messages: 8640
Registered: January 2010
Location: Global Village
Senior Member
Do you know where to find the documentation, including the install guides? Browse to
http://tahiti.oracle.com
and read (at least) the Concepts, the Installation Guide, and the Admnistrators Guide.
Your lifelong journey into the Wonderful World of Oracle Database Admninistration is about to begin. Enjoy.

Re: how to install oracle dba10g R1 on RHEL 5 [message #526757 is a reply to message #526097] Wed, 12 October 2011 20:02 Go to previous message
harshpatel
Messages: 6
Registered: August 2011
Location: Ahmedabad
Junior Member

steps to install 10g release 1/2 on redhat linux 5:-

1. create os groups

-g gid The numerical value of the group's ID. This value must be unique, unless the -o option is used. The value must be non-negative. The default is to use the smallest ID value greater than 500 and greater than every other group. Values between 0 and 499 are typically reserved for system accounts.

login as root
[root@seat102 ~]# groupadd -g 501 dba

This command places an entry in /etc/group directory where etc is folder and group is filename(text file)

To check group dba is created fire the following command
[root@seat102 ~]# grep dba /etc/group
dba:x:501:

This file 'group' under /etc directory contains list of all groups in the system along with their id's so dba group along with 501 id is stored there.

2. create oracle user owner of oracle software and assign password:

Do not run the installer as the 'root' user,separate user required commonly named 'oracle'.This 'oracle' user must be the member of DBA group.

-u uid
The numerical value of the user's ID. This value must be unique, unless the -o option is used. The value must be non-negative. The default is to use the smallest ID value greater than 99 and greater than every other user. Values between 0 and 99 are typically reserved for system accounts.

-g default_group
The group name or ID for a new user's initial group. The named group must exist, and a numerical group ID must have an existing entry .

[root@seat102 ~]#useradd -u 101 -g dba oracle

that is oracle user is created with default group dba and also /home/oracle directory is created which is home directory for oracle user.

to check this is done successfully do following
[root@seat102 ~]#grep oracle /etc/passwd
oracle:x:101:501::/home/oracle:/bin/bash

this file 'passwd' under /etc directory contains the list of all users with userid and their respective groupid.

create password for user oracle
[root@seat102 ~]#passwd oracle
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.


3. creating and changing mode of apache user
Apache user owns HTTP server software but the user is automatically created when u install operating system.

[root@seat102 ~]#grep apache /etc/passwd
apache:x:48:48:Apache:/var/www:/sbin/nologin

note that here uid is 48 and also gid is 48 now change gid to 501 (of dba group)

Before installing oracle set the primary group to the dba group for this apache user until the installation is complete.
[root@seat102 ~]#usermod -g dba apache
[root@seat102 ~]#grep apache /etc/passwd
apache:x:48:501:Apache:/var/www:/sbin/nologin

Note that here groupid has changed to 501 that is apache user is now member of dba group.

4. creating directory structures:

[root@seat102 ~]# cd /

enters into root directory
[root@seat102 /]# mkdir -p u01 

This command makes parent (-p) directory u01
Now make directory app under u01
[root@seat102 /]# cd u01
[root@seat102 u01 ]# mkdir app

Now make directory oracle under app
[root@seat102 u01 ]# cd app
[root@seat102 app]# mkdir oracle
[root@seat102 app]# cd
[root@seat102 ~]#


Now for /u01/app/oracle directory owner is root so we have to change the ownership to 'oracle' user

[root@seat102 ~]# ls -l

to check the ownership
To change the ownership
[root@seat102 /]#chown -R oracle:dba u01

Here -R stands for recursive i.e. it also changes ownership of directories inside u01 (app and oracle)
[root@seat102 /]# ls -l


5. Setting oracle environment variables:

[root@seat102 ~]# cd /home/oracle
[root@seat102 ~]# ls

doesnt show anything as files are hidden, inorder to see hidden files type -a along with ls command.

[root@seat102 ~]#ls -a
shows .bashrc file and to check permission on file
[root@seat102 ~]# ll -a

will display all files along with permissions and now edit this file for setting env variables.
[root@seat102 ~]#vi .bashrc
(or vim .bashrc)
inorder to insert in this file press 'i' then edit following

ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
ORACLE_SID=orcl
PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH


It is case sensitive so be careful and write this same as above.And to save this changes press ESCAPE then press ':' and write wq and press enter.

6. Edit /etc/sysctl.conf file:

[root@seat102 ~]# cd /etc
[root@seat102 etc]# ls
check sysctl.conf file exists.
[root@seat102 etc]# vim sysctl.conf

now to insert in this file press 'i' and then edit following

kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmni = 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.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144


then to save the settings press 'ESCAPE' then press ':' and write wq and press enter.

Inorder to have the effect of this settings restart your system and now log in as oracle user or you can run command : sysctl -p

7. copy the source as oracle user and change the mode of the directory.



[Edit MC: add code tags, do it yourself next time]


[Updated on: Thu, 13 October 2011 01:20] by Moderator

Report message to a moderator

Previous Topic: Oracle thru Perl
Next Topic: Linux and Windows system what's different
Goto Forum:
  


Current Time: Mon Nov 29 15:43:41 CST 2021