Installing Oracle 11g in RHEL
Create user: oracle
Create group: oinstall,dba
Add oinstall,dba to user oracle
groupadd oinstall
groupadd dba
useradd oracle -g oinstall -G dba
passwd oracle
unzip two disks in the same folder like below, o
therwise some .ear file missing error may occur:
----------------------------------------
unzip Linux_11gR1_database_1013_1of2.zip
unzip Linux_11gR1_database_1013_2of2.zip
cd database
./runInstall
----------------------------
append below lines in file:/etc/sysctl.conf
# Controls the maximum number of shared memory segments
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
fs.aio-max-nr=1048576
net.ipv4.ip_local_port_range=9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
---------------------------------
append below lines in file:/etc/security/limits.conf
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
-----------------------------
append below lines in file:/etc/pam.d/login
session required pam_limits.so
----------------------------
sysctl -p
reboot
Package normally missing
-------------------------
libXp libaio libaio-devel unixODBC unixODBC-devel sysatat
vi ~/.bash_profile
PATH=$PATH:$HOME/bin
ORACLE_BASE=/app/oracle
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_BASE ORACLE_HOME PATH
reference:
http://www.oracle-base.com/articles/11g/OracleDB11gR1InstallationOnEnterpriseLinux4and5.php
help from toddler dba
Create group: oinstall,dba
Add oinstall,dba to user oracle
groupadd oinstall
groupadd dba
useradd oracle -g oinstall -G dba
passwd oracle
unzip two disks in the same folder like below, o
therwise some .ear file missing error may occur:
----------------------------------------
unzip Linux_11gR1_database_1013_1of2.zip
unzip Linux_11gR1_database_1013_2of2.zip
cd database
./runInstall
----------------------------
append below lines in file:/etc/sysctl.conf
# Controls the maximum number of shared memory segments
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
fs.aio-max-nr=1048576
net.ipv4.ip_local_port_range=9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
---------------------------------
append below lines in file:/etc/security/limits.conf
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
-----------------------------
append below lines in file:/etc/pam.d/login
session required pam_limits.so
----------------------------
sysctl -p
reboot
Package normally missing
-------------------------
libXp libaio libaio-devel unixODBC unixODBC-devel sysatat
vi ~/.bash_profile
PATH=$PATH:$HOME/bin
ORACLE_BASE=/app/oracle
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_BASE ORACLE_HOME PATH
reference:
http://www.oracle-base.com/articles/11g/OracleDB11gR1InstallationOnEnterpriseLinux4and5.php
help from toddler dba
Comments
Post a Comment