fantlam 发表于 2013-1-16 00:34:59

CentOS5.3安装Oracle11g(图文)(四)

进入home目录 解压刚刚传进去的oracle 11g
# unzip linux_11gR1_database_1013.zip
# ls -l
总计 1803272
drwxr-xr-x 5 root root       4096 2008-10-07 database
-rw-r--r-- 1 root root      11244 08-02 23:36 libaio-devel-0.3.106-3.2.i386.rpm
-rw-r--r-- 1 root root 1844527800 08-02 23:47 linux_11gR1_database_1013.zip
-rw-r--r-- 1 root root     173049 08-02 23:36 sysstat-7.0.2-3.el5.i386.rpm
 
# mv database/ /fantlam (移动到fantlam目录)
 
# cd /fantlam
# chown -R oracle:oinstall database/  R表示递归
 
现在已经可以安装了,由于安装需要借助图形界面,所以我们进入centos里面操作
# su - oracle
$ ls
$ cd /fantlam
$ ls
database  oracle
$ cd database
$ ls
doc  install  README  runInstaller  stage  welcome.html
$ ./runInstaller
正在启动 Oracle Universal Installer...
检查临时空间: 必须大于 80 MB。   实际为 7283 MB    通过
检查交换空间: 必须大于 150 MB。   实际为 1498 MB    通过
检查监视器: 监视器配置至少必须显示 256 种颜色
    >>> 无法使用命令 /usr/bin/xdpyinfo 自动检查显示器颜色。请检查是否设置了 DISPLAY 变量。    未通过 <<<<
未通过某些要求检查。必须先满足这些要求,
然后才能继续安装,那时将重新检查这些要求。
是否继续? (y/n) y

 
$ xhost local:oracle
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
xhost:  unable to open display ":0.0"
由于不是root所以报错
$ su - root
口令:
# xhost local:oracle
non-network local connections being added to access control list
 
现在可以了
$ cd /fantlam
$ ls
database  oracle
$ cd database
$ ls
doc  install  README  runInstaller  stage  welcome.html
$ ./runInstaller
正在启动 Oracle Universal Installer...
检查临时空间: 必须大于 80 MB。   实际为 7157 MB    通过
检查交换空间: 必须大于 150 MB。   实际为 1498 MB    通过
检查监视器: 监视器配置至少必须显示 256 种颜色。    实际为 16777216    通过
准备从以下地址启动 Oracle Universal Installer /tmp/OraInstall2009-08-03_01-05-30AM. 请稍候...
 
 
oracle已经读取了环境变量了  选择高级安装
 
http://i26.tinypic.com/14l3i9e.jpg
 
这个错误可以不理,是目录权限问题,改了一下就好了,直接确定
http://i28.tinypic.com/vwpmb8.jpg
 
把完整路径设置为/fantlam/oralnventory
http://i27.tinypic.com/wlybn5.jpg
 
安装企业版
http://i26.tinypic.com/fkwhtk.jpg
 
继续下一步
http://i26.tinypic.com/2n078tw.jpg

正在重新检查安装程序要求....
准备从以下地址启动 Oracle Universal Installer /tmp/OraInstall2009-08-03_12-59-58AM. 请稍候...$ Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        at sun.awt.X11GraphicsEnvironment.access$000(X11GraphicsEnvironment.java:53)
        at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:142)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:131)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
        at java.awt.Window.init(Window.java:270)
        at java.awt.Window.<init>(Window.java:318)
        at java.awt.Frame.<init>(Frame.java:419)
        at oracle.ewt.popup.PopupFrame.<init>(Unknown Source)
        at oracle.ewt.lwAWT.BufferedFrame.<init>(Unknown Source)
        at oracle.sysman.oio.oioc.OiocOneClickInstaller.<init>(OiocOneClickInstaller.java:328)
        at oracle.sysman.oio.oioc.OiocOneClickInstaller.<clinit>(OiocOneClickInstaller.java:168)
报错了,上网查了一下,找到了解决方法
在root下执行xhost local:oracle
页: [1]
查看完整版本: CentOS5.3安装Oracle11g(图文)(四)