Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

12c on RHEL7

15,959 views

Published on

This document show you how to install 12.1.0.2 in memory database on Linux 7 step by step , OS installation Steps included.

Published in: Technology
  • There are many mistakes in this PDF, I suggest the author to review it again.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Hello Osama, on slide 17 you recommend changing "20-nproc.conf". Where does that recommendation come from? I couldn't find anything like that in the Oracle Docs or MOS. Thanks for sharing! Uwe
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

12c on RHEL7

  1. 1. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7 Introduction This document describe steps to to Install Redhat Enterprise Linux 7 and then using this OS to install Oracle Database 12.1.0.2. Environment:- Operating System: Redhat Enterprise Linux 7 Database: - 12.1.0.2 Software Needed:- 1. Oracle Database 12.1.0.2 Downloaded from here. 2. Redhat Enterprise Linux 7.
  2. 2. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7 About the Author Osama Mustafa has progressive experience in Oracle Products, community. He recently served as Oracle Database Administrator. Provide Database Implementation Solutions, High Availability Solution, Infrastructure and Storage Planning, Install, Configure, Implement and manage Oracle E-Business Suite environments. Architect, build and support highly-available Oracle EBS, Database and Fusion Middleware environments including appropriate reporting, Installs, configures, upgrades, tunes, and maintains production, development and test databases. He entered Oracle ACE Program in 2013, he is author for the book Oracle Penetration Testing, Osama Mustafa Certified OCP 10g,11g, Linux Implementations , Certified Ethical hacker and LPT , and Solaris Administrator. Include to all this Osama Mustafa is international Speaker in Oracle User Group and Oracle OTN Tour, Published Online Articles in His blog about Oracle Technology, Volunteer in Oracle User Group such as IOUG, ODTUG and UKOUG , Volunteer Board member in RACSIG and Organizer for RACATTACK Event around the world. Recently his article has been published on OTECH magazine about Real Application Cluster Here. Twitter: @OsamaOracle G+: Osama Mustafa SlidShare: Osama Mustafa LinkedIn: http://www.linkedin.com/in/osamamustafa Blog: https://osamamustafa.blogpsot.com.
  3. 3. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7 This document provided with Screenshots follow the pictures  Good Luck Welcome Screen, Choose The Language you would like to continue your setup :-
  4. 4. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7 In Redhat 7 you can prepare the installation in one screen as you see from the below picture:- Press on the First Option Date & Time:-
  5. 5. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  6. 6. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7 Second Option, Keyboard language:- Ethernet Card Configuration and Hostname :-
  7. 7. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7 Now the Package installation:-
  8. 8. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7 The Hard Disk Configuration and Create Custom File System:-
  9. 9. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7 Now we are ready to press next.
  10. 10. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7 Set The Root Password By Pressing “Root Password”:-
  11. 11. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  12. 12. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7 Press Reboot
  13. 13. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7 Congratulation Done.
  14. 14. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7 Now the operating system is ready to install oracle database 12.1.0.2 but we need to perform some pre requisites before install Oracle Database or you can do it by “Fix & Check Again” Regarding to Oracle documentation:- Group and oracle User:- groupadd -g 54321 oinstall groupadd -g 54322 dba groupadd -g 54323 oper groupadd -g 54324 backupdba groupadd -g 54325 dgdba groupadd -g 54326 kmdba groupadd -g 54327 asmdba groupadd -g 54328 asmoper groupadd -g 54329 asmadmin useradd -u 54321 -g oracle -G dba,oper oracle password oracle
  15. 15. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7 Packages:- binutils-2.23.52.0.1-12.el7.x86_64 compat-libcap1-1.10-3.el7.x86_64 gcc-4.8.2-3.el7.x86_64 gcc-c++-4.8.2-3.el7.x86_64 glibc-2.17-36.el7.i686 glibc-2.17-36.el7.x86_64 glibc-devel-2.17-36.el7.i686 glibc-devel-2.17-36.el7.x86_64 ksh libaio-0.3.109-9.el7.i686 libaio-0.3.109-9.el7.x86_64 libaio-devel-0.3.109-9.el7.i686 libaio-devel-0.3.109-9.el7.x86_64 libgcc-4.8.2-3.el7.i686 libgcc-4.8.2-3.el7.x86_64 libstdc++-4.8.2-3.el7.i686 libstdc++-4.8.2-3.el7.x86_64 libstdc++-devel-4.8.2-3.el7.i686 libstdc++-devel-4.8.2-3.el7.x86_64 libXi-1.7.2-1.el7.i686 libXi-1.7.2-1.el7.x86_64 libXtst-1.2.2-1.el7.i686 libXtst-1.2.2-1.el7.x86_64 make-3.82-19.el7.x86_64 sysstat-10.1.5-1.el7.x86_64 Download the package using rpm –ivh Package-name.
  16. 16. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7 Now edit the following file & add these line:- vi /etc/sysctl.conf fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 536870912 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 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 = 1048586 /sbin/sysctl –p Edit the below File and change the following:- vi /etc/sysconfig/selinux # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=permissive Disable Firewall systemctl stop firewalld systemctl stop firewalld Create oracle installation directory:- mkdir -p /u01/app/oracle/product/12.1.0/db_1 chown -R oracle:oinstall /u01 chmod -R 775 /u01
  17. 17. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7 Edit the Profile Parameter file:- vi /etc/security/limits.conf oracle soft nofile 1024 oracle hard nofile 65536 oracle soft nproc 2047 oracle hard nproc 16384 oracle soft stack 10240 oracle hard stack 32768 Enable it to all the users:- vi /etc/security/limits.d/20-nproc.conf * soft nproc 1024 to * - nproc 16384 Finally Edit .bash_profile :- export ORACLE_UNQNAME=orcl export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/12.1.0/db_1 export ORACLE_SID=orcl export PATH=/usr/sbin:$PATH export PATH=$ORACLE_HOME/bin:$PATH Now everything is ready Follow the below screens:-
  18. 18. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  19. 19. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  20. 20. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  21. 21. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  22. 22. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  23. 23. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  24. 24. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  25. 25. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  26. 26. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  27. 27. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  28. 28. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  29. 29. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7 The Binary has been installed successfully without any problem lets continue to create listener:-
  30. 30. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  31. 31. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  32. 32. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  33. 33. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  34. 34. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  35. 35. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  36. 36. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7 Listener created successfully run dbca command to create database:-
  37. 37. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  38. 38. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  39. 39. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  40. 40. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  41. 41. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  42. 42. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  43. 43. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  44. 44. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  45. 45. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  46. 46. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  47. 47. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  48. 48. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  49. 49. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7
  50. 50. STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7 Done … To Be continue with more advanced topics

×