简体   繁体   English

在Ubuntu 10.04中安装Oracle 11g R2

[英]Installing Oracle 11g R2 in Ubuntu 10.04

Initial Problem 初始问题

I was installing Oracle 11g Release 2 Enterprise edition in Ubuntu 10.04 ( running on VMWARE ). 我在Ubuntu 10.04中运行Oracle 11g第2版企业版(在VMWARE上运行)。 Need help regarding that. 需要帮助。

Problem #1: 问题#1:

I was following 我跟着

Both are recommending to install 两者都建议安装

  • libstdc++5_3.3.6-17ubuntu1_amd64.deb 的libstdc ++ 5_3.3.6-17ubuntu1_amd64.deb
  • ia32-libs_2.7ubuntu6.1_amd64.deb IA32-libs_2.7ubuntu6.1_amd64.deb

But I'm getting a 404 to when applying wget 但是在应用wget时我得到了404

Problem 2: 问题2:

I skipped this part to see the end and finally I'm stuck on running below commands 我跳过这一部分看到结束,最后我坚持在命令下运行

$ cd database
$ ./runInstaller

Its throwing error like 它的投掷错误就像

/opt/database/runInstaller: 153: /opt/database/install/.oui: Permission denied



Problem Phase 2 问题阶段2

Thnx Sathya Thnx Sathya
Finally I could get rid of Initial Problem . 最后我可以摆脱初始问题 It was silly permission problem. 这是愚蠢的许可问题。 But now stuck in another. 但现在卡在另一个。 When im running 当我跑步

./runInstaller

first it is showing following failure 首先它显示以下失败

Checking Temp space: must be greater than 80 MB.   Actual 10055 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 894 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 <<<<

If I ignore this check and press y to continue, it shows 如果我忽略此检查并按y继续,则显示

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)

As my ubuntu is running on VMWARE, may be its not getting the display properties properly. 由于我的ubuntu在VMWARE上运行,可能是它没有正确获取显示属性。 Also as a clarification I m doing 我也在做澄清

DISPLAY=oracle:0.0 ; export DISPLAY

here oracle is the output of 这里是oracle的输出

whoami

Any suggestion? 有什么建议吗?

Finally I got it fixed. 最后我修好了。
using 运用

xhost +

Now I can see that this was recommended in different forums. 现在我可以看到这是在不同的论坛推荐的。 However, lets include the steps here also :) 但是,让我们在这里包括步骤:)

  1. log into console as root and open a terminal window within CDE 以root身份登录到控制台并在CDE中打开终端窗口
  2. DISPLAY=:0.0
  3. export DISPLAY
  4. xhost +
  5. su - oracle
  6. DISPLAY=:0.0
  7. export DISPLAY
  8. /user/openwin/bin/xclock - Launched xclock this way to ensure it was working, and it was /user/openwin/bin/xclock - 以这种方式启动xclock以确保它正常工作,而且确实如此
  9. Changed back to the directory where the runInstaller was and launched. 更改回runInstaller所在的目录并启动。

Collected from https://forums.oracle.com/forums/thread.jspa?threadID=569326 收集自https://forums.oracle.com/forums/thread.jspa?threadID=569326

FYI for others looking at this and still stuck - I still had the issue: 仅供参考,其他人看着这个并且仍然坚持 - 我仍然有这个问题:

Could not execute auto check for display colors using command /usr/bin/xdpyinfo. 无法使用命令/ usr / bin / xdpyinfo对显示颜色执行自动检查。 Check if the DISPLAY variable is set.FailedCould not execute auto check for display colors using command /usr/bin/xdpyinfo. 检查DISPLAY变量是否已设置.FailedCould不会使用命令/ usr / bin / xdpyinfo执行显示颜色的自动检查。 Check if the DISPLAY variable is set. 检查是否设置了DISPLAY变量。 Failed 失败

Even after getting xclock to load (on RHEL) for the oracle user. 甚至在为oracle用户加载xclock(在RHEL上)之后。 In the end, my issue was '/usr/bin/xdpyinfo' wasn't installed, I was missing xorg-x11-utils. 最后,我的问题是'/ usr / bin / xdpyinfo'没有安装,我缺少xorg-x11-utils。

http://www.redhat.com/archives/fedora-list/2007-August/msg02702.html http://www.redhat.com/archives/fedora-list/2007-August/msg02702.html

If you are running database server in command-line mode(runlevel 3),and your client is windows, you should run an X server on your client machine like Xming server 如果您在命令行模式(运行级别3)中运行数据库服务器,并且您的客户端是Windows,则应在客户端计算机上运行X服务器,如Xming服务器

also if you use Putty to connect to the server,X11 forwarding should be enabled without any location address changing. 此外,如果您使用Putty连接到服务器,则应启用X11转发而不更改任何位置地址。 No DISPLAY environment needed. 不需要DISPLAY环境。 Putty automatically forwards all x commands from the server to your client machine running Xming server. Putty自动将所有x命令从服务器转发到运行Xming服务器的客户端计算机。 Hope this helps. 希望这可以帮助。

Assume you are using oracle to run the installer as suggested by the manual, you only need to run two commands (run from account with sudo access) 假设您正在使用oracle按照手册的建议运行安装程序,您只需要运行两个命令(从具有sudo访问权限的帐户运行)

DISPLAY=:4.0; export DISPLAY
xhost +SI:local user:oracle

After that, go back to the tab with oracle and you should be able to run installer now. 之后,使用oracle返回选项卡,您现在应该能够运行安装程序。

Both are recommending to install 两者都建议安装

This isn't required if you're installing a 32-bit version of Oracle or using a 32-bit version of Ubuntu. 如果您要安装32位版本的Oracle或使用32位版本的Ubuntu,则不需要这样做。 (and note: you haven't mentioned which one you're using (注意:你没有提到你正在使用哪一个

I skipped this part to see the end and finally I'm stuck on running below commands 我跳过这一部分看到结束,最后我坚持在命令下运行

Have you done as mentioned or skipped the entire steps? 你是按照提到的那样做了还是跳过了整个步骤? Intermediate steps involve creating an oracle user & adding the usergroups - seems like you skipped these. 中间步骤涉及创建oracle用户并添加用户组 - 似乎您跳过了这些。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM