ORACLE学习系列.1.安装篇 RHEL5.5 64位下安装Oracle 11g 64位安装前置条件的两种方法...

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-installation-on-oracle-linux-5.php

 

RHEL5.5 64位下安装Oracle 11g 64位安装前置条件(即RPM包)有如下两种方式:

一、RPM方式:安装Oracle所需的全部运行库(在RHEL光驱的Server目录下)

以root登录,执行如下命令:

 

[ruby]   view plain copy print ?
  1. cd /media/RHEL_5.5\ x86_64\ DVD/Server  
  2. rpm -Uvh binutils-2.*  
  3. rpm -Uvh compat-libstdc++-33*  
  4. rpm -Uvh compat-libstdc++-33*.i386.rpm  
  5. rpm -Uvh elfutils-libelf*  
  6. rpm -Uvh gcc-4.*  
  7. rpm -Uvh gcc-c++-4.*  
  8. rpm -Uvh glibc-2.*  
  9. rpm -Uvh glibc-common-2.*  
  10. rpm -Uvh glibc-devel-2.*  
  11. rpm -Uvh glibc-headers-2.*  
  12. rpm -Uvh ksh*  
  13. rpm -Uvh libaio-0.*  
  14. rpm -Uvh libaio-devel-0.*  
  15. rpm -Uvh libgomp-4.*  
  16. rpm -Uvh libgcc-4.*  
  17. rpm -Uvh libstdc++-4.*  
  18. rpm -Uvh libstdc++-devel-4.*  
  19. rpm -Uvh make-3.*  
  20. rpm -Uvh sysstat-7.*  
  21. rpm -Uvh unixODBC-2.*  
  22. rpm -Uvh unixODBC-devel-2.*  
  23. rpm -Uvh numactl-devel-*  

 

 

二、Yum方式:在线安装

以root账号登录,输入:

 

[plain]   view plain copy print ?
  1. cd /etc/yum.repos.d  
  2.   
  3. wget http://public-yum.oracle.com/public-yum-el5.repo  
  4.   
  5. yum install oracle-validated  


安装过程如下:

 

 

[python]   view plain copy print ?
  1. Loaded plugins: product-id, security, subscription-manager  
  2. Updating Red Hat repositories.  
  3. el5_latest                                               | 1.4 kB     00:00       
  4. el5_latest/primary                                       |  11 MB     21:43       
  5. el5_latest                                                            9613/9613  
  6. Setting up Install Process  
  7. Resolving Dependencies  
  8. --> Running transaction check  
  9. ---> Package oracle-validated.x86_64 0:1.1.0-15.el5 set to be updated  
  10. el5_latest/filelists                                     |  18 MB     14:31       
  11. --> Processing Dependency: irqbalance >= 2:0.55-16 for package: oracle-validated  
  12. --> Processing Dependency: kernel-uek >= 2.6.32 for package: oracle-validated  
  13. --> Processing Dependency: libXp.so.6 for package: oracle-validated  
  14. --> Processing Dependency: /usr/lib/libodbccr.so for package: oracle-validated  
  15. --> Processing Dependency: /usr/lib64/libodbccr.so for package: oracle-validated  
  16. --> Processing Dependency: unixODBC-devel for package: oracle-validated  
  17. --> Processing Dependency: libaio-devel for package: oracle-validated  
  18. --> Processing Dependency: /usr/lib64/libaio.so for package: oracle-validated  
  19. --> Processing Dependency: /usr/lib/libodbc.so.1 for package: oracle-validated  
  20. --> Processing Dependency: sysstat for package: oracle-validated  
  21. --> Processing Dependency: /usr/lib/libaio.so for package: oracle-validated  
  22. --> Processing Dependency: oraclelinux-release for package: oracle-validated  
  23. --> Processing Dependency: libodbc.so.1()(64bitfor package: oracle-validated  
  24. --> Running transaction check  
  25. ---> Package irqbalance.x86_64 2:0.55-17.el5 set to be updated  
  26. ---> Package kernel-uek.x86_64 0:2.6.32-300.32.3.el5uek set to be updated  
  27. --> Processing Dependency: kernel-firmware = 2.6.32-300.32.3.el5uek for package: kernel-uek  
  28. --> Processing Dependency: device-mapper-multipath >= 0.4.9-23.0.1.el5 for package: kernel-uek  
  29. --> Processing Dependency: mkinitrd >= 5.1.19.6-75.0.5 for package: kernel-uek  
  30. --> Processing Dependency: ql2xxx-firmware for package: kernel-uek  
  31. ---> Package libXp.i386 0:1.0.0-8.1.el5 set to be updated  
  32. ---> Package libaio-devel.i386 0:0.3.106-5 set to be updated  
  33. ---> Package libaio-devel.x86_64 0:0.3.106-5 set to be updated  
  34. ---> Package oraclelinux-release.x86_64 0:5-8.0.2 set to be updated  
  35. ---> Package sysstat.x86_64 0:7.0.2-11.el5 set to be updated  
  36. ---> Package unixODBC-devel.i386 0:2.2.11-10.el5 set to be updated  
  37. --> Processing Dependency: unixODBC = 2.2.11-10.el5 for package: unixODBC-devel  
  38. ---> Package unixODBC-devel.x86_64 0:2.2.11-10.el5 set to be updated  
  39. ---> Package unixODBC-libs.i386 0:2.2.11-10.el5 set to be updated  
  40. ---> Package unixODBC-libs.x86_64 0:2.2.11-10.el5 set to be updated  
  41. --> Running transaction check  
  42. ---> Package device-mapper-multipath.x86_64 0:0.4.9-46.0.5.el5 set to be updated  
  43. --> Processing Dependency: kpartx = 0.4.9-46.0.5.el5 for package: device-mapper-multipath  
  44. --> Processing Dependency: device-mapper-multipath-libs = 0.4.9-46.0.5.el5 for package: device-mapper-multipath  
  45. --> Processing Dependency: libmultipath.so()(64bitfor package: device-mapper-multipath  
  46. ---> Package kernel-uek-firmware.noarch 0:2.6.32-300.32.3.el5uek set to be updated  
  47. ---> Package mkinitrd.i386 0:5.1.19.6-75.0.9.el5 set to be updated  
  48. --> Processing Dependency: nash = 5.1.19.6-75.0.9.el5 for package: mkinitrd  
  49. ---> Package mkinitrd.x86_64 0:5.1.19.6-75.0.9.el5 set to be updated  
  50. ---> Package ql2xxx-firmware.noarch 0:1.01.01-0.2.el5 set to be updated  
  51. ---> Package unixODBC.x86_64 0:2.2.11-10.el5 set to be updated  
  52. --> Running transaction check  
  53. ---> Package device-mapper-multipath-libs.x86_64 0:0.4.9-46.0.5.el5 set to be updated  
  54. ---> Package kpartx.x86_64 0:0.4.9-46.0.5.el5 set to be updated  
  55. ---> Package nash.x86_64 0:5.1.19.6-75.0.9.el5 set to be updated  
  56. --> Processing Conflict: kernel-uek conflicts udev < 095-14.27.0.1.el5_7.1  
  57. --> Restarting Dependency Resolution with new changes.  
  58. --> Running transaction check  
  59. ---> Package udev.x86_64 0:095-14.27.0.3.el5_7.1 set to be updated  
  60. --> Finished Dependency Resolution  
  61.   
  62. Dependencies Resolved  
  63.   
  64. ================================================================================  
  65.  Package                      Arch   Version                   Repository  Size  
  66. ================================================================================  
  67. Installing:  
  68.  oracle-validated             x86_64 1.1.0-15.el5              el5_latest  24 k  
  69. Updating:  
  70.  udev                         x86_64 095-14.27.0.3.el5_7.1     el5_latest 2.4 M  
  71. Installing for dependencies:  
  72.  device-mapper-multipath-libs x86_64 0.4.9-46.0.5.el5          el5_latest 168 k  
  73.  kernel-uek                   x86_64 2.6.32-300.32.3.el5uek    el5_latest  26 M  
  74.  kernel-uek-firmware          noarch 2.6.32-300.32.3.el5uek    el5_latest 3.7 M  
  75.  libXp                        i386   1.0.0-8.1.el5             el5_latest  22 k  
  76.  libaio-devel                 i386   0.3.106-5                 el5_latest  12 k  
  77.  libaio-devel                 x86_64 0.3.106-5                 el5_latest  11 k  
  78.  oraclelinux-release          x86_64 5-8.0.2                   el5_latest 2.7 k  
  79.  ql2xxx-firmware              noarch 1.01.01-0.2.el5           el5_latest 442 k  
  80.  sysstat                      x86_64 7.0.2-11.el5              el5_latest 187 k  
  81.  unixODBC                     x86_64 2.2.11-10.el5             el5_latest 291 k  
  82.  unixODBC-devel               i386   2.2.11-10.el5             el5_latest 738 k  
  83.  unixODBC-devel               x86_64 2.2.11-10.el5             el5_latest 793 k  
  84.  unixODBC-libs                i386   2.2.11-10.el5             el5_latest 551 k  
  85.  unixODBC-libs                x86_64 2.2.11-10.el5             el5_latest 554 k  
  86. Updating for dependencies:  
  87.  device-mapper-multipath      x86_64 0.4.9-46.0.5.el5          el5_latest  97 k  
  88.  irqbalance                   x86_64 2:0.55-17.el5             el5_latest  21 k  
  89.  kpartx                       x86_64 0.4.9-46.0.5.el5          el5_latest 465 k  
  90.  mkinitrd                     i386   5.1.19.6-75.0.9.el5       el5_latest 482 k  
  91.  mkinitrd                     x86_64 5.1.19.6-75.0.9.el5       el5_latest 471 k  
  92.  nash                         x86_64 5.1.19.6-75.0.9.el5       el5_latest 1.4 M  
  93.   
  94. Transaction Summary  
  95. ================================================================================  
  96. Install      15 Package(s)  
  97. Upgrade       7 Package(s)  
  98.   
  99. Total download size: 38 M  
  100. Is this ok [y/N]: y  
  101. Downloading Packages:  
  102. (1/22): oraclelinux-release-5-8.0.2.x86_64.rpm           | 2.7 kB     00:00       
  103. (2/22): libaio-devel-0.3.106-5.x86_64.rpm                |  11 kB     00:00       
  104. (3/22): libaio-devel-0.3.106-5.i386.rpm                  |  12 kB     00:00       
  105. (4/22): irqbalance-0.55-17.el5.x86_64.rpm                |  21 kB     00:00       
  106. (5/22): libXp-1.0.0-8.1.el5.i386.rpm                     |  22 kB     00:00       
  107. (6/22): oracle-validated-1.1.0-15.el5.x86_64.rpm         |  24 kB     00:00       
  108. (7/22): device-mapper-multipath-0.4.9-46.0.5.el5.x86_64. |  97 kB     00:01       
  109. (8/22): device-mapper-multipath-libs-0.4.9-46.0.5.el5.x8 | 168 kB     00:03       
  110. (9/22): sysstat-7.0.2-11.el5.x86_64.rpm                  | 187 kB     00:04       
  111. (10/22): unixODBC-2.2.11-10.el5.x86_64.rpm               | 291 kB     00:14       
  112. (11/22): ql2xxx-firmware-1.01.01-0.2.el5.noarch.rpm      | 442 kB     00:21       
  113. (12/22): kpartx-0.4.9-46.0.5.el5.x86_64.rpm              | 465 kB     00:10       
  114. (13/22): mkinitrd-5.1.19.6-75.0.9.el5.x86_64.rpm         | 471 kB     00:26       
  115. (14/22): mkinitrd-5.1.19.6-75.0.9.el5.i386.rpm           | 482 kB     00:24       
  116. (15/22): unixODBC-libs-2.2.11-10.el5.i386.rpm            | 551 kB     00:17       
  117. (16/22): unixODBC-libs-2.2.11-10.el5.x86_64.rpm          | 554 kB     00:15       
  118. (17/22): unixODBC-devel-2.2.11-10.el5.i386.rpm           | 738 kB     00:15       
  119. (18/22): unixODBC-devel-2.2.11-10.el5.x86_64.rpm         | 793 kB     00:23       
  120. (19/22): nash-5.1.19.6-75.0.9.el5.x86_64.rpm             | 1.4 MB     00:48       
  121. (20/22): udev-095-14.27.0.3.el5_7.1.x86_64.rpm           | 2.4 MB     00:59       
  122. (21/22): kernel-uek-firmware-2.6.32-300.32.3.el5uek.noar | 3.7 MB     02:36       
  123. (22/22): kernel-uek-2.6.32-300.32.3.el5uek.x86_64.rpm    |  26 MB     09:05       
  124. --------------------------------------------------------------------------------  
  125. Total                                            39 kB/s |  38 MB     17:00       
  126. warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 1e5e0159  
  127. el5_latest/gpgkey                                        | 1.4 kB     00:00       
  128. Importing GPG key 0x1E5E0159 "Oracle OSS group (Open Source Software group) " from http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5  
  129. Is this ok [y/N]: y  
  130. Running rpm_check_debug  
  131. Running Transaction Test  
  132. Finished Transaction Test  
  133. Transaction Test Succeeded  
  134. Running Transaction  
  135.   Updating       : kpartx                                                  1/29   
  136.   Updating       : udev                                                    2/29   
  137.   Installing     : unixODBC-libs                                           3/29   
  138.   Installing     : unixODBC                                                4/29   
  139.   Installing     : sysstat                                                 5/29   
  140.   Updating       : irqbalance                                              6/29   
  141.   Installing     : device-mapper-multipath-libs                            7/29   
  142.   Updating       : device-mapper-multipath                                 8/29   
  143.   Installing     : unixODBC-libs                                           9/29   
  144.   Installing     : oraclelinux-release                                    10/29   
  145.   Updating       : nash                                                   11/29   
  146.   Updating       : mkinitrd                                               12/29   
  147.   Installing     : unixODBC-devel                                         13/29   
  148.   Installing     : unixODBC-devel                                         14/29   
  149.   Installing     : kernel-uek-firmware                                    15/29   
  150.   Installing     : ql2xxx-firmware                                        16/29   
  151.   Installing     : kernel-uek                                             17/29   
  152.   Installing     : libaio-devel                                           18/29   
  153.   Installing     : libaio-devel                                           19/29   
  154.   Installing     : libXp                                                  20/29   
  155.   Installing     : oracle-validated                                       21/29   
  156.   Updating       : mkinitrd                                               22/29   
  157.   Cleanup        : irqbalance                                             23/29   
  158.   Cleanup        : udev                                                   24/29   
  159.   Cleanup        : mkinitrd                                               25/29   
  160.   Cleanup        : nash                                                   26/29   
  161.   Cleanup        : kpartx                                                 27/29   
  162.   Cleanup        : device-mapper-multipath                                28/29   
  163.   Cleanup        : mkinitrd                                               29/29   
  164. duration: 3968(ms)  
  165. Installed products updated.  
  166.   
  167. Installed:  
  168.   oracle-validated.x86_64 0:1.1.0-15.el5                                          
  169.   
  170. Dependency Installed:  
  171.   device-mapper-multipath-libs.x86_64 0:0.4.9-46.0.5.el5                          
  172.   kernel-uek.x86_64 0:2.6.32-300.32.3.el5uek                                      
  173.   kernel-uek-firmware.noarch 0:2.6.32-300.32.3.el5uek                             
  174.   libXp.i386 0:1.0.0-8.1.el5                                                      
  175.   libaio-devel.i386 0:0.3.106-5                                                   
  176.   libaio-devel.x86_64 0:0.3.106-5                                                 
  177.   oraclelinux-release.x86_64 0:5-8.0.2                                            
  178.   ql2xxx-firmware.noarch 0:1.01.01-0.2.el5                                        
  179.   sysstat.x86_64 0:7.0.2-11.el5                                                   
  180.   unixODBC.x86_64 0:2.2.11-10.el5                                                 
  181.   unixODBC-devel.i386 0:2.2.11-10.el5                                             
  182.   unixODBC-devel.x86_64 0:2.2.11-10.el5                                           
  183.   unixODBC-libs.i386 0:2.2.11-10.el5                                              
  184.   unixODBC-libs.x86_64 0:2.2.11-10.el5                                            
  185.   
  186. Updated:  
  187.   udev.x86_64 0:095-14.27.0.3.el5_7.1                                             
  188.   
  189. Dependency Updated:  
  190.   device-mapper-multipath.x86_64 0:0.4.9-46.0.5.el5                               
  191.   irqbalance.x86_64 2:0.55-17.el5                                                 
  192.   kpartx.x86_64 0:0.4.9-46.0.5.el5                                                
  193.   mkinitrd.i386 0:5.1.19.6-75.0.9.el5                                             
  194.   mkinitrd.x86_64 0:5.1.19.6-75.0.9.el5                                           
  195.   nash.x86_64 0:5.1.19.6-75.0.9.el5                                               
  196.   
  197. Complete!  

你可能感兴趣的:(Oracle,数据库,运维,ruby)