install “oracle-validated”

在开始安装oracle之前,最好在oel或者其他redhat系列的linux上将oracle-validated这个rpm包给打上,省去后续很多更改、配置参数的事情,当然还有创建oracle用户以及其宿主。

[root@node1 ~]# rpm -ivh oracle-validated-1.1.0-7.el5.x86_64.rpm
error: Failed dependencies:
/usr/lib/libaio.so is needed by oracle-validated-1.1.0-7.el5.x86_64
/usr/lib/libodbc.so.1 is needed by oracle-validated-1.1.0-7.el5.x86_64
/usr/lib/libodbccr.so is needed by oracle-validated-1.1.0-7.el5.x86_64
/usr/lib64/libaio.so is needed by oracle-validated-1.1.0-7.el5.x86_64
/usr/lib64/libodbccr.so is needed by oracle-validated-1.1.0-7.el5.x86_64
compat-gcc-34 is needed by oracle-validated-1.1.0-7.el5.x86_64
compat-gcc-34-c++ is needed by oracle-validated-1.1.0-7.el5.x86_64
irqbalance >= 2:0.55-16 is needed by oracle-validated-1.1.0-7.el5.x86_64
kernel-uek >= 2.6.32 is needed by oracle-validated-1.1.0-7.el5.x86_64
kernel-uek-headers is needed by oracle-validated-1.1.0-7.el5.x86_64
libXp.so.6 is needed by oracle-validated-1.1.0-7.el5.x86_64
libaio-devel is needed by oracle-validated-1.1.0-7.el5.x86_64
libodbc.so.1()(64bit) is needed by oracle-validated-1.1.0-7.el5.x86_64
libstdc++.so.5 is needed by oracle-validated-1.1.0-7.el5.x86_64
libstdc++.so.5()(64bit) is needed by oracle-validated-1.1.0-7.el5.x86_64
oraclelinux-release is needed by oracle-validated-1.1.0-7.el5.x86_64
unixODBC-devel is needed by oracle-validated-1.1.0-7.el5.x86_64
util-linux >= 2.13-0.52.0.1.el5_4.1 is needed by oracle-validated-1.1.0-7.el5.x86_64

————————————————————————————-

草…竟然差这么多的依赖包。在linux上,依赖关系的包是很头疼的关系,不过还好,幸亏有个东西叫"yum"。

如果你有OEL的iso文件,那会简单很多,配置一个本地的源即可。

两个地方注意:

1.将iso中的东西全部拷贝到OS上的一个目录下,我这里叫/root/source

[root@node2 ~]# cd source/
[root@node2 source]# ls
blafdoc.css EULA GPL README-en RELEASE-NOTES-en.html Server    VT
Cluster eula.en_US images README-en.html RPM-GPG-KEY supportinfo
ClusterStorage eula.py isolinux RELEASE-NOTES-en RPM-GPG-KEY-oracle TRANS.TBL

2.配置源

按照如下大概配置,就可以使用了。

[root@node2 source]# more /etc/yum.repos.d/Server.repo
[Server]
enabled = 1
name = server
baseurl = file:///root/source/Server
gpgcheck = 1
gpgkey = file:///root/source/RPM-GPG-KEY-oracle

————————————————————————-

gpgkey部分,如果使用的是rhel的iso,需要依据相应的RPM-GPG-KEY-REDHAT-release来做出更改。

 

下面开始yum install

[root@node1 ~]# yum install oracle-validated
Loaded plugins: security
Server | 1.1 kB 00:00
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package oracle-validated.x86_64 0:1.0.0-22.el5 set to be updated
Server/filelists | 2.9 MB 00:00
–> Processing Dependency: libaio-devel for package: oracle-validated
–> Processing Dependency: /usr/lib/libaio.so for package: oracle-validated
–> Processing Dependency: unixODBC-devel for package: oracle-validated
–> Processing Dependency: compat-gcc-34-c++ for package: oracle-validated
–> Processing Dependency: libstdc++.so.5 for package: oracle-validated
–> Processing Dependency: /usr/lib/libodbc.so.1 for package: oracle-validated
–> Processing Dependency: compat-gcc-34 for package: oracle-validated
–> Processing Dependency: /usr/lib/libodbccr.so for package: oracle-validated
–> Processing Dependency: libXp.so.6 for package: oracle-validated
–> Processing Dependency: libstdc++.so.5()(64bit) for package: oracle-validated
–> Processing Dependency: libodbc.so.1()(64bit) for package: oracle-validated
–> Running transaction check
—> Package compat-gcc-34.x86_64 0:3.4.6-4 set to be updated
—> Package compat-gcc-34-c++.x86_64 0:3.4.6-4 set to be updated
—> Package compat-libstdc++-33.i386 0:3.2.3-61 set to be updated
—> Package compat-libstdc++-33.x86_64 0:3.2.3-61 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 libaio-devel.x86_64 0:0.3.106-5 set to be updated
—> Package unixODBC.i386 0:2.2.11-7.1 set to be updated
—> Package unixODBC.x86_64 0:2.2.11-7.1 set to be updated
—> Package unixODBC-devel.i386 0:2.2.11-7.1 set to be updated
—> Package unixODBC-devel.x86_64 0:2.2.11-7.1 set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

==================================================================================
Package Arch Version Repository Size
==================================================================================
Installing:
oracle-validated x86_64 1.0.0-22.el5 Server 16 k
Installing for dependencies:
compat-gcc-34 x86_64 3.4.6-4 Server 4.4 M
compat-gcc-34-c++ x86_64 3.4.6-4 Server 13 M
compat-libstdc++-33 i386 3.2.3-61 Server 232 k
compat-libstdc++-33 x86_64 3.2.3-61 Server 227 k
libXp i386 1.0.0-8.1.el5 Server 22 k
libaio-devel i386 0.3.106-5 Server 12 k
libaio-devel x86_64 0.3.106-5 Server 11 k
unixODBC i386 2.2.11-7.1 Server 830 k
unixODBC x86_64 2.2.11-7.1 Server 835 k
unixODBC-devel i386 2.2.11-7.1 Server 743 k
unixODBC-devel x86_64 2.2.11-7.1 Server 799 k

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

Total download size: 21 M
Is this ok [y/N]: y
Downloading Packages:
————————————————————————————————————————————————————-
Total 50 MB/s | 21 MB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : compat-gcc-34 1/12
Installing : unixODBC 2/12
Installing : unixODBC 3/12
Installing : compat-libstdc++-33 4/12
Installing : unixODBC-devel 5/12
Installing : unixODBC-devel 6/12
Installing : libaio-devel 7/12
Installing : libaio-devel 8/12
Installing : libXp 9/12
Installing : compat-libstdc++-33 10/12
Installing : compat-gcc-34-c++ 11/12
Installing : oracle-validated 12/12

Installed:
oracle-validated.x86_64 0:1.0.0-22.el5

Dependency Installed:
compat-gcc-34.x86_64 0:3.4.6-4 compat-gcc-34-c++.x86_64 0:3.4.6-4 compat-libstdc++-33.i386 0:3.2.3-61 compat-libstdc++-33.x86_64 0:3.2.3-61
libXp.i386 0:1.0.0-8.1.el5 libaio-devel.i386 0:0.3.106-5 libaio-devel.x86_64 0:0.3.106-5 unixODBC.i386 0:2.2.11-7.1
unixODBC.x86_64 0:2.2.11-7.1 unixODBC-devel.i386 0:2.2.11-7.1 unixODBC-devel.x86_64 0:2.2.11-7.1

Complete!
[root@node1 ~]# id oracle
uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba)

—————————————————————————————-

可以预见到:还是缺少不少rpm包的,使用yum能够省去很多事情。

–EOF–