本次安装的操作系统是CentOS 5.4版本。Oracle数据库是11g R1版。
安装操作系统时,选择安装图形界面,后面安装oracle数据库时需要用到。
系统安装好以后,需要检查安装oracle需要的包。在oracle的安装帮助文档中有相应的说明。
需要安装以下的软件包:
binutils-2.17.50.0.6-2.el5
compat-libstdc++-33-3.2.3-61
elfutils-libelf-0.125-3.el5
elfutils-libelf-devel-0.125
gcc-4.1.1-52
gcc-c++-4.1.1-52
glibc-2.5-12
glibc-common-2.5-12
glibc-devel-2.5-12
glibc-headers-2.5-12
libaio-0.3.106
libaio-devel-0.3.106
libgcc-4.1.1-52
libstdc++-4.1.1
libstdc++-devel-4.1.1-52.e15
make-3.81-1.1
sysstat-7.0.0
以及数据库驱动包:
unixODBC-2.2.11 (32 bit) or later
unixODBC-devel-2.2.11 (32 bit) or later
其中标红色的是系统缺省安装下缺少的包,在系统安装文件中找到这些包。
注意:
1,elfutils-libelf-devel依赖其他包:elfutils-devel-static,而这个包又依赖另外一个包:elfutils-libelf-devel-static。
2,sysstat这个包依赖另外一个包:vixie-cron。
[root@mycentos ~]# rpm -ivh elfutils-libelf-devel-static-0.137-3.el5.i386.rpm
warning: elfutils-libelf-devel-static-0.137-3.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
elfutils-libelf-devel-i386 = 0.137-3.el5 is needed by elfutils-libelf-devel-static-0.137-3.el5.i386
[root@mycentos ~]# rpm -ivh elfutils-libelf*.rpm
warning: elfutils-libelf-devel-0.137-3.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
1:elfutils-libelf-devel-s########################################### [ 50%]
2:elfutils-libelf-devel ########################################### [100%]
修改/etc/hosts文件
[root@mycentos ~]# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 mycentos localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
修改成:
[root@mycentos ~]# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.0.3 mycentos
::1 localhost6.localdomain6 localhost6
其中 192.168.0.3 mycentos 分别是虚拟机的IP地址和机器名