【发布时间】:2014-02-26 01:57:36
【问题描述】:
我正在尝试编写一个脚本来或多或少地自动安装 oracle 数据库以及我自己的一些其他应用程序。我还没有写一行,因为我想先手动完成所有步骤。
所以,我的环境如下。我有没有图形界面的 RHEL 5。我正在以 root 身份通过 SSH 从 Windows 笔记本电脑连接到服务器。我启用了 XForwarding,所以当我使用 root 帐户登录时,我可以运行 xdpyinfo 以便检查 XServer 配置。
我需要 XForwarding,因为 Oracle DB 安装过程需要 XServer。但是,Oracle 需要用户 oracle 来执行安装。我已经创建了 oracle 用户,但是当将用户从 root 更改为 oracle 时,我无法再运行 xdpyinfo 命令,因此 Oracle 安装过程失败。我收到以下错误:
Xlib: connection to "localhost:10.0" refused by server
Xlib: PuTTY X11 proxy: wrong authorisation protocol attempted
xdpyinfo: unable to open display "localhost:10.0".
我曾尝试使用 xhost 使我的笔记本电脑能够访问我的服务器,但我也未能成功。
【问题讨论】:
-
A silent install with a response file 如果您想自动执行此操作可能会更有意义,并且会使这变得不必要。你为什么不只是以 Oracle 用户的身份登录呢?
-
因为在安装应用程序之前 oracle 用户不应该存在,我将使用我的脚本创建用户,然后从 root 更改为 oracle 并开始安装 Oracle。我会看看带有响应文件的静默安装