You are on page 1of 4

1.

Abrir un terminal y logearse como root


2. Crear los siguientes grupos: oinstall, dba, oper
------------------------------------------------groupadd oinstall
groupadd dba
3. Crear el usuario Oracle
------------------------------------------------/usr/sbin/useradd -g oinstall -G dba oracle
4. cambiar el password oracle
-----------------------------------------------passwd Oracle
5. editar el archivo : /home/oracle/.bash_profile
---------------------------------------------TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_SID=aquiles export ORACLE_SID
ORACLE_HOSTNAME=aquiles; export ORACLE_HOSTNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_TERM=xterm; export ORACLE_TERM
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/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;
export CLASSPATH
if [ $USER = "oracle" ] || [ $USER = "oragrid" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
6. logearse como root
mkdir -p /u01/app/oracle
chown -R oracle:oinstall /u01/app
chmod -R 775 /u01/app
7. Editar el archivo /etc/sysctl.conf y configurar los limites.
--------------------------------------------------------------kernel.sem = 250 32000 100 128
kernel.shmall = 2097152
kernel.shmmax = 2147483648

kernel.shmmni = 4096
fs.file-max = 6815744
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
fs.aio-max-nr = 1048576
Modificar los parametros del kernell
---------------------------------------------------------------------- 8) Secure Limits
----------------------------------------------------------------------- To restrict the number of files and number of processes used the user
-- Soft limit is the default limit set when a user session starts and
-- can be increased up to the the hard limit using ulimit.
-- The hard limit is the absolute limit.
----------------------------------------------------------------------- a) vi /etc/security/limits.conf
---------------------------------------------------------------------oracle
soft
nproc
2047
oracle
hard
nproc
16384
oracle
soft
nofile 1024
oracle
hard
nofile 65536
-- set the kernel parameters or reboot
/sbin/sysctl -p
INSTALAR RPMS

You might also like