Advertisement
Guest User

Instalación paso a paso oracle 12c sobre Oracle Linux 7

a guest
Jul 22nd, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. INSTALACION PASO A PASO Oracle 12c sobre Oracle Linux
  2. #Como usuario root
  3. yum install oracle-database-server-12cR2-preinstall
  4. yum install -y gcc-* unixODBC-2.3.1 unixODBC-devel-2.3.1
  5.  
  6. vi /etc/sysctl.conf
  7. /sbin/sysctl -p o sysctl -p
  8. vi /etc/security/limits.conf
  9. ##agregar archivo limits.conf
  10. oracle soft nofile 4096 #nofile es la cantidad de archivos abiertos
  11. oracle hard nofile 65536
  12. oracle soft nproc 2047 #nproc cantidad de procesos a ejecutar
  13. oracle hard nproc 16384
  14. oracle soft stack 10240 #stack
  15. oracle hard stack 32768
  16. oracle soft memlock 2765 #memlock espacio de direcciones de memoria de busqueda
  17. oracle hard memlock 2765
  18. vi /etc/pam.d/login
  19. #agregar al archivo /etc/pam.d/login
  20. session required pam_limits.so
  21.  
  22. #Como usuario Oracle
  23. vi .bash_profile
  24. #agregar .bash_profile al usuario oracle
  25. ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1
  26. ORACLE_BASE=/u01/app/oracle
  27. ORACLE_SID=CURSO
  28. export ORACLE_BASE ORACLE_SID ORACLE_HOME
  29. PATH=$PATH:$ORACLE_HOME/bin
  30. export PATH
  31. umask 022
  32. #cerramos el archivo y ejecutamos los siguientes comandos
  33. source .bash_profile
  34. echo $ORACLE_SID
  35. echo $ORACLE_HOME
  36. echo $ORACLE_BASE
  37. #Volvemos a estar como usuario root
  38. vi /etc/hosts
  39. #Agregar al archivo /etc/hosts
  40. IP MAQUINA nombre-hosts alias
  41. #despúes crearemos la estructura de directorio cuando cerremos el archivo hosts
  42. mkdir -p /u01/app/oracle
  43. chown -R oracle:oinstall /u01/app/oracle
  44. chmod -R 775 /u01
  45. mkdir -p /u01/app/oracle/oradata
  46. mkdir -p /u01/app/oracle/fast_recovery_area
  47. chown -R oracle:oinstall /u01/app/oracle
  48. chmod -R 755 /u01
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement