我正在尝试在我的 Ubuntu 机器上安装 Oracle 11gR2。我尝试了本教程在 Ubuntu 12.04 上安装 Oracle Database 11gR2
当我通过运行启动安装程序时./runInstaller
出现此错误
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 80 MB. Actual 307621 MB Passed
Checking swap space: must be greater than 150 MB. Actual 47682 MB Passed
Checking monitor: must be configured to display at least 256 colors
>>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<
Some requirement checks failed. You must fulfill these requirements before
continuing with the installation,
Continue? (y/n) [n] y
>>> Ignoring required pre-requisite failures. Continuing...
Preparing to launch Oracle Universal Installer from
/tmp/OraInstall2015-06-08_11-46-03AM. Please wait ...oracle@Linux-14:~/database$ No protocol specified
Exception in thread "main" java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at java.awt.Toolkit$2.run(Toolkit.java:821)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)
at com.jgoodies.looks.LookUtils.isLowResolution(Unknown Source)
at com.jgoodies.looks.LookUtils.<clinit>(Unknown Source)
at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:122)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1783)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:480)
at oracle.install.commons.util.Application.startup(Application.java:758)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)
at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:265)
at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:114)
at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:132)
有人能帮我解决这个问题吗?谢谢。
答案1
您是否在没有 x 服务器的服务器上运行此程序?安装程序尝试为 GUI 初始化 SWT 窗口。
尝试使用 运行安装命令./runInstaller -mode=console
,也许这会有所帮助 - 一些 oracle 安装程序有这个选项,希望这个也有。