1. edit the /etc/sysctl.conf file
#vim /etc/sysctl.conf
fs.suid_dumpable = 1
fs.aio-max-nr = 1048576
fs.file-max =6815744
kernel.shmall = 2097152
kernel.shmmni = 4096
#semaphores: semmsl, semmns, semopm,semmni
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default=4194304
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048586
kernel.shmmax = 536870912
2.Add the following lines in the /etc/security/limits.conf file
#vim /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 4096
oracle hard nofile 65536
oracle soft stack 10240
3.install the following package
#yum install binutils* -y
#yum install glibc* -y
#yum install nss-softokn* -y
#yum install glibc* -y
#yum install compat* -y
#yum install elfutils* -y
#yum install gcc* -y
#yum install ksh* -y
#yum install libaio* -y
#yum install libgcc* -y
#yum install libstdc* -y
#yum install make* -y
#yum install numactl* -y
#yum install sysstat* -y
#yum install compat-libcap* -y
[To install yum server in red hat 6 go this link ]
4.setup primary network
#vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.101
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
5. edit you host file like this way
#vim /etc/hosts
Insert: <IP HOSTNAME.DOMAINNAME HOSTNAME>
example: 192.168.1.10 server.example.com server
6.create user groups like
#groupadd -g 501 oinstall
#groupadd -g 502 dba
#groupadd -g 503 oper
#groupadd -g 504 asmadmin
#groupadd -g 505 asmdba
#groupadd -g 506 asmoper
7. create user like this way
#useradd -u -g oinstall -G dba,asmdba,oper oracle
8.set oracle password like this way
#passwd oracle
9.edit
#vim /etc/sysconfig/selinux
modify like this
SELINUX=disabled
10.run this command
#mkdir -p /u01/app/oracle/product/11.2.0/db_1
#chown -R oracle:oinstall /u01*
11.Add the following line to the /etc/pam.d/login file
session required pam_limits.so
12.add following this line in
#vim /home/oracle/.bash_profile
TMP=/tmp; export TMP
ORACLE_HOSTNAME=o16-112.localdomain;export ORACLE_HOSTNAME
ORACLE_UNQNAME=DB11G;export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_SID=DB11G; export ORACLE_SID
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export export CLASSPATH
13. run this command like this way
#mkdir /data
#chmod -3777 -R /data
14.download two oracle database file from this like
http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-linx8664soft-100572.html
15.copy two oracle file in /data folder
16.go data folder and unzip two file like this way
#cd /data
17.run this command like this way
#unzip linux.x64_11gR2_database_1of2
#unzip linux.x64_11gR2_database_2of2
18.login to oracle user
19.go to /data folder like this way
#cd /data/database
20.finally run this command like this way
./runinstaller
21.after complete oracle installation open a terminel and type
# su - root
give root password
22.type this command
# /u01/app/oraInventory/orainstRoot.sh and enter
23.type this command
# /u01/app/oracle/product/11.2.0/db_1/root.sh and enter
24.and finally connect oracle like this way
#sqlplus /nolog
conn /hr/hr
#vim /etc/sysctl.conf
fs.suid_dumpable = 1
fs.aio-max-nr = 1048576
fs.file-max =6815744
kernel.shmall = 2097152
kernel.shmmni = 4096
#semaphores: semmsl, semmns, semopm,semmni
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default=4194304
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048586
kernel.shmmax = 536870912
2.Add the following lines in the /etc/security/limits.conf file
#vim /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 4096
oracle hard nofile 65536
oracle soft stack 10240
3.install the following package
#yum install binutils* -y
#yum install glibc* -y
#yum install nss-softokn* -y
#yum install glibc* -y
#yum install compat* -y
#yum install elfutils* -y
#yum install gcc* -y
#yum install ksh* -y
#yum install libaio* -y
#yum install libgcc* -y
#yum install libstdc* -y
#yum install make* -y
#yum install numactl* -y
#yum install sysstat* -y
#yum install compat-libcap* -y
[To install yum server in red hat 6 go this link ]
4.setup primary network
#vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.101
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
5. edit you host file like this way
#vim /etc/hosts
Insert: <IP HOSTNAME.DOMAINNAME HOSTNAME>
example: 192.168.1.10 server.example.com server
6.create user groups like
#groupadd -g 501 oinstall
#groupadd -g 502 dba
#groupadd -g 503 oper
#groupadd -g 504 asmadmin
#groupadd -g 505 asmdba
#groupadd -g 506 asmoper
7. create user like this way
#useradd -u -g oinstall -G dba,asmdba,oper oracle
8.set oracle password like this way
#passwd oracle
9.edit
#vim /etc/sysconfig/selinux
modify like this
SELINUX=disabled
10.run this command
#mkdir -p /u01/app/oracle/product/11.2.0/db_1
#chown -R oracle:oinstall /u01*
11.Add the following line to the /etc/pam.d/login file
session required pam_limits.so
12.add following this line in
#vim /home/oracle/.bash_profile
TMP=/tmp; export TMP
ORACLE_HOSTNAME=o16-112.localdomain;export ORACLE_HOSTNAME
ORACLE_UNQNAME=DB11G;export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_SID=DB11G; export ORACLE_SID
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export export CLASSPATH
13. run this command like this way
#mkdir /data
#chmod -3777 -R /data
14.download two oracle database file from this like
http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-linx8664soft-100572.html
15.copy two oracle file in /data folder
16.go data folder and unzip two file like this way
#cd /data
17.run this command like this way
#unzip linux.x64_11gR2_database_1of2
#unzip linux.x64_11gR2_database_2of2
18.login to oracle user
19.go to /data folder like this way
#cd /data/database
20.finally run this command like this way
./runinstaller
21.after complete oracle installation open a terminel and type
# su - root
give root password
22.type this command
# /u01/app/oraInventory/orainstRoot.sh and enter
23.type this command
# /u01/app/oracle/product/11.2.0/db_1/root.sh and enter
24.and finally connect oracle like this way
#sqlplus /nolog
conn /hr/hr
Thanks for this kind of good documentation to install oracle on linux.
ReplyDeletecan u tell me the steps of this on solaris 10?
pls dear visit on my link site
ReplyDeleteOn My site
http://redhatlinuxtraining.blogspot.com/
On My Facebook Site
http://www.facebook.com/RedHatTrainer