Sie sind auf Seite 1von 5

Install Oracle Validated rpm 

Using a Local Repository
Alejandro Vargas | Principal Support Consultant
Oracle Advanced Customer Services

Table of Contents
Summary...............................................................................................................................................2
1) Create a directory to hold the rpm's..................................................................................................2
2) Go to the Server directory on the Linux cd.......................................................................................2
3) Copy all rpm's from the install disk to the directory you created before..........................................2
4) Install the Yum Repository tool........................................................................................................3
5) Execute the create repository command...........................................................................................3
6) Create a config file for this repository..............................................................................................3
7) Install the oracle­validated rpm.........................................................................................................3
Install Oracle Validated rpm 
Using a Local Repository

Summary

Within the steps required to install Oracle on Linux you need to take care of Installing all the rpm's 
required by Oracle, and their dependencies, create the Oracle user account and groups and setup the 
parameters for the kernel.

All of this can be automatized by installing a single rpm that is distributed by Oracle, the Oracle­
Validated rpm.

On the Oracle Enterprise Linux 5.5 distribution disk it is included the Oracle­Validated rpm and also 
the ASMLib related rpms.

The rpm can be installed as part of the Linux install process, as explained on Sergio Leunissen post 
from 2009 http://blogs.oracle.com/sergio/oraclevalidated_rpm/

Another option, if you have your server connected to the Internet, is to run the install using Yum; it will 
install the oracle­validated rpm and download all required dependencies.

Yet another option, if you don't have access to the Internet, is to setup a local or nfs mounted repository 
with all rpm's contained on the Linux distribution disk on it.

In this document I'm showing an example of the steps required to setup a local rpm repository and 
install the Oracle­Validated rpm and it's dependencies from it.

1) Create a directory to hold the rpm's

[root@oel0 ~]# mkdir /oel5­repository

2) Go to the Server directory on the Linux cd

[root@oel0 ~]# cd "/media/Enterprise Linux dvd 20100405/Server"

3) Copy all rpm's from the install disk to the directory you created before

[root@oel0 Server]# tar cvf ­ . | (cd /oel5­repository; tar xvfBp ­)
Install Oracle Validated rpm 
Using a Local Repository
4) Install the Yum Repository tool

[root@oel0 ~]# yum install createrepo

5) Execute the create repository command

[root@oel0 ~]# cd /oel5-repository


[root@oel0 ~]# createrepo .
2352/2352 ­ oracle_updated/ocfs2­2.6.18­194.0.0.0.3.el5debug­1.4.4­1.el5.i686.rpm.rpm
Saving Primary metadata
Saving file lists metadata
Saving other metadata

6) Create a config file for this repository

[root@oel0 ~]# vi /etc/yum.repos.d/oel5.repo
[local­repo]
name=My Repository
baseurl=file:///oel5­repository
enabled=1
gpgcheck=0

7) Install the oracle­validated rpm

[root@oel0 ~]# ls /oel5­repository/oracle­validated*

/oel5­repository/oracle­validated­1.0.0­22.el5.i386.rpm

[root@oel0 oel5­repository]# yum install oracle­validated
Loaded plugins: security
local­repo                                                                                                                                                |  951 B     00:00     
local­repo/primary                                                                                                                                   | 842 kB     00:00     
local­repo                                                                                                                                                  2352/2352
Setting up Install Process
Resolving Dependencies
­­> Running transaction check
­­­> Package oracle­validated.i386 0:1.0.0­22.el5 set to be updated
­­> Processing Dependency: glibc­headers for package: oracle­validated
­­> Processing Dependency: kernel­headers for package: oracle­validated
­­> Processing Dependency: gcc for package: oracle­validated
­­> Processing Dependency: sysstat for package: oracle­validated
­­> Processing Dependency: unixODBC for package: oracle­validated
­­> Processing Dependency: libaio­devel for package: oracle­validated
Install Oracle Validated rpm 
Using a Local Repository
­­> Processing Dependency: gcc­c++ for package: oracle­validated
­­> Processing Dependency: compat­gcc­34­c++ for package: oracle­validated
­­> Processing Dependency: unixODBC­devel for package: oracle­validated
­­> Processing Dependency: compat­db for package: oracle­validated
­­> Processing Dependency: elfutils­libelf­devel for package: oracle­validated
­­> Processing Dependency: libXp for package: oracle­validated
­­> Processing Dependency: glibc­devel for package: oracle­validated
­­> Processing Dependency: compat­gcc­34 for package: oracle­validated
­­> Processing Dependency: gdb for package: oracle­validated
­­> Processing Dependency: libstdc++­devel for package: oracle­validated
­­> Running transaction check
­­­> Package compat­db.i386 0:4.2.52­5.1 set to be updated
­­­> Package compat­gcc­34.i386 0:3.4.6­4 set to be updated
­­­> Package compat­gcc­34­c++.i386 0:3.4.6­4 set to be updated
­­­> Package elfutils­libelf­devel.i386 0:0.137­3.el5 set to be updated
­­> Processing Dependency: elfutils­libelf­devel­static­i386 = 0.137­3.el5 for package: elfutils­libelf­devel
­­­> Package gcc.i386 0:4.1.2­48.el5 set to be updated
­­> Processing Dependency: libgomp >= 4.1.2­48.el5 for package: gcc
­­­> Package gcc­c++.i386 0:4.1.2­48.el5 set to be updated
­­­> Package gdb.i386 0:7.0.1­23.el5 set to be updated
­­­> Package glibc­devel.i386 0:2.5­49 set to be updated
­­­> Package glibc­headers.i386 0:2.5­49 set to be updated
­­­> Package kernel­headers.i386 0:2.6.18­194.0.0.0.3.el5 set to be updated
­­­> Package libXp.i386 0:1.0.0­8.1.el5 set to be updated
­­­> Package libaio­devel.i386 0:0.3.106­5 set to be updated
­­­> Package libstdc++­devel.i386 0:4.1.2­48.el5 set to be updated
local­repo/filelists                                                                                                                                      | 2.6 MB     00:00     
­­­> Package sysstat.i386 0:7.0.2­3.el5 set to be updated
­­­> Package unixODBC.i386 0:2.2.11­7.1 set to be updated
­­­> Package unixODBC­devel.i386 0:2.2.11­7.1 set to be updated
­­> Running transaction check
­­­> Package elfutils­libelf­devel­static.i386 0:0.137­3.el5 set to be updated
­­­> Package libgomp.i386 0:4.4.0­6.el5 set to be updated
­­> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================
 Package                                               Arch                          Version                                           Repository                           Size
=================================================================================================================
Installing:
 oracle­validated                                      i386                          1.0.0­22.el5                                local­repo                           15 k
Installing for dependencies:
 compat­db                                             i386                          4.2.52­5.1                                     local­repo                          1.7 M
 compat­gcc­34                                      i386                          3.4.6­4                                          local­repo                          4.1 M
 compat­gcc­34­c++                              i386                          3.4.6­4                                           local­repo                           11 M
 elfutils­libelf­devel                                 i386                          0.137­3.el5                                    local­repo                           24 k
 elfutils­libelf­devel­static                        i386                          0.137­3.el5                                    local­repo                           66 k
 gcc                                                        i386                          4.1.2­48.el5                                   local­repo                          5.2 M
 gcc­c++                                               i386                          4.1.2­48.el5                                    local­repo                          3.4 M
 gdb                                                     i386                          7.0.1­23.el5                                     local­repo                          2.3 M
 glibc­devel                                           i386                          2.5­49                                            local­repo                          2.0 M
 glibc­headers                                      i386                          2.5­49                                             local­repo                          614 k
 kernel­headers                                    i386                          2.6.18­194.0.0.0.3.el5                     local­repo                          1.1 M
 libXp                                                   i386                          1.0.0­8.1.el5                                     local­repo                           22 k
 libaio­devel                                          i386                          0.3.106­5                                         local­repo                           12 k
 libgomp                                               i386                          4.4.0­6.el5                                       local­repo                           70 k
 libstdc++­devel                                    i386                          4.1.2­48.el5                                     local­repo                          2.9 M
 sysstat                                                 i386                          7.0.2­3.el5                                       local­repo                          170 k
 unixODBC                                           i386                          2.2.11­7.1                                         local­repo                          830 k
 unixODBC­devel                                 i386                          2.2.11­7.1                                          local­repo                          743 k

Transaction Summary
===============================================================================================================
Install      19 Package(s)
Upgrade       0 Package(s)

Total download size: 36 M
Install Oracle Validated rpm 
Using a Local Repository
Is this ok [y/N]: y
Downloading Packages:
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­
Total                                                                                                                                            1.6 GB/s |  36 MB     00:00     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : unixODBC                                                                                                                                              1/19 
  Installing     : libXp                                                                                                                                                     2/19 
  Installing     : compat­db                                                                                                                                              3/19 
  Installing     : gdb                                                                                                                                                       4/19 
  Installing     : libgomp                                                                                                                                                  5/19 
  Installing     : sysstat                                                                                                                                                   6/19 
  Installing     : libstdc++­devel                                                                                                                                       7/19 
  Installing     : kernel­headers                                                                                                                                       8/19 
  Installing     : glibc­headers                                                                                                                                         9/19 
  Installing     : glibc­devel                                                                                                                                              10/19 
  Installing     : unixODBC­devel                                                                                                                                    11/19 
  Installing     : libaio­devel                                                                                                                                             12/19 
  Installing     : compat­gcc­34                                                                                                                                       13/19 
  Installing     : gcc                                                                                                                                                      14/19 
  Installing     : gcc­c++                                                                                                                                                 15/19 
  Installing     : compat­gcc­34­c++                                                                                                                                16/19 
  Installing     : elfutils­libelf­devel                                                                                                                                   17/19 
  Installing     : elfutils­libelf­devel­static                                                                                                                         18/19 
  Installing     : oracle­validated                                                                                                                                      19/19 
1

Installed:
  oracle­validated.i386 0:1.0.0­22.el5                                                                                                                                           

Dependency Installed:
  compat­db.i386 0:4.2.52­5.1   
  compat­gcc­34.i386 0:3.4.6­4       
  compat­gcc­34­c++.i386 0:3.4.6­4               
  elfutils­libelf­devel.i386 0:0.137­3.el5  
  elfutils­libelf­devel­static.i386 0:0.137­3.el5   
  gcc.i386 0:4.1.2­48.el5            
  gcc­c++.i386 0:4.1.2­48.el5                    
  gdb.i386 0:7.0.1­23.el5                   
  glibc­devel.i386 0:2.5­49 
  glibc­headers.i386 0:2.5­49  
  kernel­headers.i386 0:2.6.18­194.0.0.0.3.el5   
  libXp.i386 0:1.0.0­8.1.el5                
  libaio­devel.i386 0:0.3.106­5 libgomp.i386 0:4.4.0­6.el5         
  libstdc++­devel.i386 0:4.1.2­48.el5           
  sysstat.i386 0:7.0.2­3.el5                
  unixODBC.i386 0:2.2.11­7.1 
 
  unixODBC­devel.i386 0:2.2.11­7.1  

Complete!

Now you can install any Oracle Product on this server!

Das könnte Ihnen auch gefallen