Yum

通過 Yum 在 CentOS 上安裝 Oracle 11g

  • March 10, 2016

我正在嘗試設置 CentOS 7 VM 來託管 Oracle 11gR2 數據庫。沒有桌面/x 視窗系統軟體,但我確實嘗試安裝 11gR2 zip

./runInstaller -silent -noconfig -responseFile <responseFile>.rsp

但這只是返回了指向擺動庫錯誤的 java 堆棧跟踪(不足為奇 - 我使用 -responseFile 和 -silent 的原因是因為我無法執行 UI。不知道為什麼擺動庫甚至被呼叫。 )

所以我開始使用 oracle public yum 儲存庫:

yum install oracle-rdbms-server-11gR2-preinstall

但這給出了以下輸出:

Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: www.mirrorservice.org
* extras: mirrors.melbourne.co.uk
* updates: mirrors.melbourne.co.uk
Resolving Dependencies
--> Running transaction check
---> Package oracle-rdbms-server-11gR2-preinstall.x86_64 0:1.0-12.el6 will be installed
--> Processing Dependency: xorg-x11-utils for package: oracle-rdbms-server-11gR2-preinstall-1.0-12.el6.x86_64
--> Processing Dependency: kernel-uek for package: oracle-rdbms-server-11gR2-preinstall-1.0-12.el6.x86_64
--> Processing Dependency: compat-libcap1 for package: oracle-rdbms-server-11gR2-preinstall-1.0-12.el6.x86_64
--> Processing Dependency: ksh for package: oracle-rdbms-server-11gR2-preinstall-1.0-12.el6.x86_64
--> Processing Dependency: libaio-devel for package: oracle-rdbms-server-11gR2-preinstall-1.0-12.el6.x86_64
--> Processing Dependency: xorg-x11-xauth for package: oracle-rdbms-server-11gR2-preinstall-1.0-12.el6.x86_64
--> Processing Dependency: compat-libstdc++-33 for package: oracle-rdbms-server-11gR2-preinstall-1.0-12.el6.x86_64
--> Running transaction check
---> Package compat-libcap1.x86_64 0:1.10-7.el7 will be installed
---> Package compat-libstdc++-33.x86_64 0:3.2.3-72.el7 will be installed
---> Package kernel-uek.x86_64 0:2.6.39-400.277.1.el6uek will be installed
--> Processing Dependency: kernel-uek-firmware = 2.6.39-400.277.1.el6uek for package: kernel-uek-2.6.39-400.277.1.el6uek.x86_64
--> Processing Dependency: ql23xx-firmware for package: kernel-uek-2.6.39-400.277.1.el6uek.x86_64
Package ql23xx-firmware-3.03.27-3.1.el6.noarch is obsoleted by linux-firmware-20150904-43.git6ebf5d5.el7.noarch which is already installed
---> Package ksh.x86_64 0:20120801-28.el6_7.3 will be installed
---> Package libaio-devel.x86_64 0:0.3.109-13.el7 will be installed
---> Package xorg-x11-utils.x86_64 0:7.5-13.1.el7 will be installed
--> Processing Dependency: libdmx.so.1()(64bit) for package: xorg-x11-utils-7.5-13.1.el7.x86_64
--> Processing Dependency: libXxf86misc.so.1()(64bit) for package: xorg-x11-utils-7.5-13.1.el7.x86_64
--> Processing Dependency: libXxf86dga.so.1()(64bit) for package: xorg-x11-utils-7.5-13.1.el7.x86_64
--> Processing Dependency: libXv.so.1()(64bit) for package: xorg-x11-utils-7.5-13.1.el7.x86_64
---> Package xorg-x11-xauth.x86_64 1:1.0.9-1.el7 will be installed
--> Processing Dependency: libXmuu.so.1()(64bit) for package: 1:xorg-x11-xauth-1.0.9-1.el7.x86_64
--> Running transaction check
---> Package kernel-uek.x86_64 0:2.6.39-400.277.1.el6uek will be installed
--> Processing Dependency: ql23xx-firmware for package: kernel-uek-2.6.39-400.277.1.el6uek.x86_64
Package ql23xx-firmware-3.03.27-3.1.el6.noarch is obsoleted by linux-firmware-20150904-43.git6ebf5d5.el7.noarch which is already installed
---> Package kernel-uek-firmware.noarch 0:2.6.39-400.277.1.el6uek will be installed
---> Package libXmu.x86_64 0:1.1.2-2.el7 will be installed
---> Package libXv.x86_64 0:1.0.10-2.el7 will be installed
---> Package libXxf86dga.x86_64 0:1.1.4-2.1.el7 will be installed
---> Package libXxf86misc.x86_64 0:1.0.3-7.1.el7 will be installed
---> Package libdmx.x86_64 0:1.1.3-3.el7 will be installed
--> Finished Dependency Resolution
Error: Package: kernel-uek-2.6.39-400.277.1.el6uek.x86_64 (ol6_UEK_latest)
          Requires: ql23xx-firmware
          Available: ql23xx-firmware-3.03.27-3.1.el6.noarch (ol6_latest)
              ql23xx-firmware = 3.03.27-3.1.el6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

最後的兩個建議都沒有解決問題,並且(如上所述)試圖yum install ql23xx-firmware.noarch告訴我我已經安裝了更好的版本並拒絕安裝。

那麼,在沒有桌面的 Centos 7 VM 上安裝 Oracle 11g 數據庫的公認程序是什麼?我應該嘗試刪除ql23xx-firmware-3.03.27-3.1.el6.noarch然後安裝過時的ql23xx-firmware嗎?

如果我可以讓@JohnMahowald 的評論成為我想要的答案。這個問題是由 CentOS 7 中未滿足的核心期望引起的。最初我希望 SUT 和它的 DB 在同一個 VM 上,以便更容易部署到桌面開發環境。但是,我決定將數據庫遷移到 Oracle Linux,並為 SUT 遷移到單獨的 CentOS VM。

引用自:https://serverfault.com/questions/762698