Oracle database 11g R2 Pre-installation

1) Install the oracle-validated RPM

http://www.oracle.com/technetwork/articles/servers-storage-admin/ginnydbinstallonlinux-488779.html

2) Set user limits

vi /etc/security/limits.conf

oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

3)  Edit /etc/pam.d/login and add the line below in order for the login program to load the pam_limits.so so that the /etc/security/limits.conf is read and limits activated and enforced.
session required pam_limits.so

4) Add Groups and Users

groupadd –g 1000 oinstall
groupadd –g 1021 asmdba
groupadd –g 1031 dba
groupadd –g 1023 oper
useradd –u 1101 –g oinstall –G dba,asmdba,oper oracle

5) Create directory

mkdir -p /home/oracle/app/oracle
chown oracle:oinstall /home/oracle/app/oracle
chmod -R 775 /home/oracle/

6) Create the user profiles for oracle user.

su - oracle

vi .bash_profile

# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
umask 022
ORACLE_BASE=/home/oracle/app/oracle
ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/db_1
ORACLE_HOSTNAME=soadev.skynet
ORACLE_SID=SOADB1
ORACLE_UNQNAME=SOADB
LD_LIBRARY_PATH=$ORACLE_HOME/lib
PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH ORACLE_HOSTNAME ORACLE_UNQNAME
TEMP=/tmp
TMPDIR=/tmp
export TEMP TMPDIR
ulimit –t unlimited
ulimit –f unlimited
ulimit –d unlimited
ulimit –s unlimited
ulimit –v unlimited
if [ -t 0 ]; then
stty intr ^C
fi
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH

# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH

Comments

Popular posts from this blog

How to mount a WD Book Live as NFS in OEL6U3

ORA-44412: XE edition memory parameter invalid or not specified

Oracle SQL Developer 19.4 font too small