开始实习了,从周一到周三都在搭建环境,在VMware下搭建Redhat Linux 6.4 + Oracle 10g,折腾的我死去活来啊,各种问题扑面而来...
1、遇到最多的问题就是包的缺失,简单的安装包的方法是把Linux系统镜像挂载到Linux虚拟机中,然后桌面上会出现一个光盘文件,打开里面的Packages,里面包含了所有需要的包,根据需要点击安装就行了,如果需要安装依赖的包,它自己会寻找。
检查所需安装的包:
[oracle@localhost ~]$ rpm -qa |grep make
automake-1.11.1-4.el6.noarch
make-3.81-20.el6.x86_64
[oracle@localhost ~]$ rpm -qa|grep glibc
glibc-2.12-1.107.el6.i686
glibc-common-2.12-1.107.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
glibc-headers-2.12-1.107.el6.x86_64
compat-glibc-2.5-46.2.x86_64
glibc-2.12-1.107.el6.x86_64
glibc-utils-2.12-1.107.el6.x86_64
glibc-devel-2.12-1.107.el6.i686
glibc-devel-2.12-1.107.el6.x86_64
[oracle@localhost ~]$ rpm -qa |grep libaio
libaio-devel-0.3.107-10.el6.i686
libaio-0.3.107-10.el6.x86_64
libaio-0.3.107-10.el6.i686
libaio-devel-0.3.107-10.el6.x86_64
[oracle@localhost ~]$ rpm -qa |grep gcc
gcc-c++-4.4.7-3.el6.x86_64
compat-gcc-34-g77-3.4.6-19.el6.x86_64
gcc-gnat-4.4.7-3.el6.x86_64
libgcc-4.4.7-3.el6.i686
compat-gcc-34-3.4.6-19.el6.x86_64
gcc-gfortran-4.4.7-3.el6.x86_64
gcc-java-4.4.7-3.el6.x86_64
libgcc-4.4.7-3.el6.x86_64
gcc-4.4.7-3.el6.x86_64
gcc-objc-4.4.7-3.el6.x86_64
compat-gcc-34-c++-3.4.6-19.el6.x86_64
gcc-objc++-4.4.7-3.el6.x86_64
[oracle@localhost ~]$ rpm -qa |grep compat-libstdc
compat-libstdc++-296-2.96-144.el6.i686
compat-libstdc++-33-3.2.3-69.el6.i686
compat-libstdc++-33-3.2.3-69.el6.x86_64
[oracle@localhost ~]$ rpm -qa |grep compat-gcc
compat-gcc-34-g77-3.4.6-19.el6.x86_64
compat-gcc-34-3.4.6-19.el6.x86_64
compat-gcc-34-c++-3.4.6-19.el6.x86_64
[oracle@localhost ~]$ rpm -qa |grep libXp
libXp-1.0.0-15.1.el6.i686
libXpm-3.5.10-2.el6.i686
libXpm-3.5.10-2.el6.x86_64
libXpm-devel-3.5.10-2.el6.x86_64
libXp-devel-1.0.0-15.1.el6.i686
libXp-devel-1.0.0-15.1.el6.x86_64
libXp-1.0.0-15.1.el6.x86_64
libXpm-devel-3.5.10-2.el6.i686
[oracle@localhost ~]$ rpm -qa |grep openmotif
openmotif22-2.2.3-19.el6.x86_64
openmotif-2.3.3-5.el6_3.i686
openmotif-devel-2.3.3-5.el6_3.i686
openmotif-2.3.3-5.el6_3.x86_64
openmotif-devel-2.3.3-5.el6_3.x86_64
openmotif22-2.2.3-19.el6.i686
[oracle@localhost ~]$ rpm -qa |grep compat-db
compat-db43-4.3.29-15.el6.x86_64
compat-db42-4.2.52-15.el6.i686
compat-db42-4.2.52-15.el6.x86_64
compat-db-4.6.21-15.el6.x86_64
compat-db43-4.3.29-15.el6.i686
compat-db-4.6.21-15.el6.i686
上面的包可能不是都需要,但是多装无害...,然后运行oracle安装文件,可能会报缺包错误,根据名字再安装就行了。
2、创建数据库实例时,执行$ORACLE_HOME/bin/dbca报错:
检查glibc的包是否全部安装,然后执行$ORACLE_HOME/bin/relink all(这个问题折腾了我一晚上...)。