`
winie
  • 浏览: 216429 次
  • 性别: Icon_minigender_1
  • 来自: 重庆
社区版块
存档分类
最新评论

在Linux平台安装Oracle比较常见的问题

阅读更多

1. 不能启动安装界面

运行runInstaller提示信息类似如下:

xlib:connection to "localhost:0.0" refused by server

xlib:client is not authorized to connect to server

 

Exception in thread "main" java.lang.InternalError:

can't connect to x11 window server using "localhost:0.0" at .......

解决办法: 设定你的DISPLAY环境参数.

# export DISPLAY= your_IPaddress :0.0

把your_IPaddress换成你的IP.或者用root简单的执行一下# xhost + (要注意这样会有安全上的隐患)

2. 安装界面显示很多 " 口口 " 样子的乱码

解决办法:查看locale输出

# locale

LANG=en_US.UTF-8

LC_CTYPE=zh_CN.GB18030

LC_NUMERIC="en_US.UTF-8"

LC_TIME="en_US.UTF-8"

LC_COLLATE="en_US.UTF-8"

LC_MONETARY="en_US.UTF-8"

LC_MESSAGES="en_US.UTF-8"

LC_PAPER="en_US.UTF-8"

LC_NAME="en_US.UTF-8"

LC_ADDRESS="en_US.UTF-8"

LC_TELEPHONE="en_US.UTF-8"

LC_MEASUREMENT="en_US.UTF-8"

LC_IDENTIFICATION="en_US.UTF-8"

LC_ALL=

执行#export LC_CTYPE=en_US.UTF-8 然后重新调用安装程序.

3. IE 登录 Linux 服务器上的 em 出现乱码

 

在Linux(Unix) 环境下成功安装了Oracle 10g,从windows下用IE浏览器登录 10g 的em, 按钮是"口口"这样的方框.

解决办法: 参考:

http://www.dbanotes.net/Oracle/Oracle-10g-font.properties.htm

 

4. 创建数据库的时候出现 ORA-03113 的错误

解决办法: 查看核心参数是否调整正确.参考:

http://www.dbanotes.net/Oracle/ORA-03113.htm

5. RedHat 9 / FC1 等系统 10g 不支持如何安装 ?


解决办法:在10g不支持的Linux发行版上安装10g的解决方法

1). 运行runInstaller -ignoreSysPrereqs,这样会跳过检查. //这个方法好象在Redhat Enterprise 5.0不适用。
2). 摘自 www.puschitz.com 修改/etc/redhat-release文件:

#su - root

#cp /etc/redhat-release /etc/redhat-release.backup

#cat > /etc/redhat-release <<   EOF

Red Hat Enterprise Linux AS release 3 (Taroon)

EOF

安装完毕,执行如下操作:

#su - root

#cp /etc/redhat-release.backup /etc/redhat-release

3). http://www.dbanotes.net/Oracle/10G-Beta-Install-Bug.htm

同样的思路,我们可以修改Oracle 的install/oraparam.ini文件达到目的.

6. 如何关掉那些 ocssd.bin 进程?

解决办法:编辑/etc/inittab文件(做好备份)

注释掉这一行:

h1:3:respawn:/etc/init.d/init.cssd run >/dev/null 2>................

7.REDHAT5 安装 weblogic8.1.5 libxp.so 找不到解决

rdel5安装weblogic815。中间执行./quickstart.sh,出现异常:
/usr/bea/jdk142_08/lib/tools.jar:/usr/bea/weblogic81/common/lib/quickstart.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/bea/jdk142_08/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory

原因是缺少动态链接库,据说缺少支持打印的图形化动态链接库.
首先要用root用户来安装libXp.so,步骤如下:
1)下载.so。google查找一下 libXp.so.6, 从[url]http://rpmfind.net/linux/rpm2html/search.php?query=xorg-X11-deprecated-lib[/url]下载之:
[url]ftp://rpmfind.net/linux/fedora/core/updates/4/i386/xorg-x11-deprecated-libs-devel-6.8.2-37.FC4.49.2.1.i386.rpm[/url]
执行安装
2)安装之。
把这个文件放到临时目录如/usr/tmp下,然后执行rpm(Red Hat Package Manager)进行安装
[root@dazhu oracle]# rpm -ivh --force --nodeps xorg-x11-deprecated-libs-devel-6.9.0-1.112.16.14asp.i386.rpm

warning: xorg-x11-deprecated-libs-devel-6.9.0-1.112.16.14asp.i386.rpm: Header V3 DSA signature: NOKEY, key ID 9b3c94f4

Preparing...                ########################################### [100%]

   1:xorg-x11-deprecated-lib########################################### [100%]

xorg-x11-deprecated-libs-devel-6.9.0-1.112.16.14asp 3)检查是否安装了此so,使用rmp的查询所有选项<-q(uery)a(ll)>然后抓取出含dep字符的行:
rpm -qa |grep dep
xorg-x11-deprecated-libs-6.9.0-1.112.16.14asp

4)增加一个conf文件让系统能够加载刚才安装的包(被安装到/usr/X11R6/lib目录下了).
在etc/ld.so.conf.d目录下建xorg-x11-deprecated-libs.conf文件,其中包含一行文字"/usr/X11R6/lib"
保存,再运行/sbin/ldconfig。具体如下:
[root@xxx ]#cd etc/ld.so.conf.d/
[root@xxx ]#vi xorg-x11-deprecated-libs.conf
:i
/usr/X11R6/lib
:w
:q
[root@xxx ]# cat xorg-x11-deprecated-libs.conf
/usr/X11R6/lib
[root@xxx ]# /sbin/ldconfig

重新运行./quickstart.sh,就看到跟windows下一样的图形界面了。

或:ln -s /usr/X11R6/lib/libXp.so.6 /usr/lib/libXp.so.6
另外的常识,现抄一下:
关于/etc/ld.so.conf:
这个文件记录了编译时使用的动态链接库的路径。
默认情况下,编译器只会使用/lib和/usr/lib这两个目录下的库文件
将自己可能存放库文件的路径都加入到/etc/ld.so.conf中是明智的选择
添加方法也极其简单,将库文件的绝对路径直接写进去就OK了,一行一个。例如:
/usr/X11R6/lib
/usr/local/lib
/opt/lib

ldconfig是什么?
它是一个程序,通常它位于/sbin下,供root用户使用。具体作用及用法可以man ldconfig查到
简单的说,它的作用就是将/etc/ld.so.conf列出的路径下的库文件 缓存到/etc/ld.so.cache 以供使用
因此当安装完一些库文件,(例如刚安装好glib),或者修改ld.so.conf增加新的库路径后,需要运行一下/sbin/ldconfig
使所有的库文件都被缓存到ld.so.cache中,如果没做,即使库文件明明就在/usr/lib下的,也是不会被使用的,结果
编译过程中报错,缺少xxx库,去查看发现明明就在那放着,直想砸机器。
切记改动库文件后一定要运行一下ldconfig,在任何目录下运行都可以。

 

 

8. Xmanager
用法(
export DISPLAY=
客户端
IP:0.0


1)       安装Xmanager1.3.8。
2)       用注册 注册。
3)       启动Xstart,按下列提示输入:
                                                               i.              Name: Xterm
                                                            ii.              Host: 192.168.16.34
                                                        iii.              procotol: TELNET
                                                            iv.              User: xuys
                                                               v.              Password: xuys1234
b)       点击“Save”,保存。
c)       点击“Run”运行Xmanager。
4)       在用户的目录下找到文件.bash_profile或profile,用vi对其进行编辑。 入下列命令行:
1.       DISPLAY=192.168.88.71:0.0; export DISPLAY  
5)       保存,退出。
6)       如果只想临时在客户端用一下图形界面, 需进行第4、5步,直接在xterm界面的命令行中输入:
1.       export DISPLAY=192.168.88.71:0.0
b)       然后就可以在命令行中运行图形界面程序了。
7)       测试。
a)       运行netscape,应该出现图形界面。   

 

9. Can't connect to X11 window server

操作系统:RedHat   EnterpriseAS   release   4   (Nahant   Update   4)
Oracle版本:oracle   9.2.0

安装时出现的这个问题,可以排除是xhost的问题,xhost   会有一个   refuse   的提示,我遇到后就给本机加上了:
xhost   +127.0.0.1
xhost   +localhost

在   $ORACLE_BASE下的   .bashrc   文件,DISPLAY   变量加不加、加127.0.0.1或localhost都试过了。

然后运行   runInstaller   就是一个单纯的错误:
Can 't   connect   to   X11   window   server   using   '127.0.0.1:0.0 '   as   the   value   of   the   DISPLAY   variable.

那一堆异常消息网上一搜一大把,但就是没找到能解决的。。。

搜到个老外的答案是这样的:
2)   you 're   logged   into   the   machine   as   one   user   (like   root)   but   you 're   trying   to   install   as   another   user   (like   oracle).

 

10. Xlib: connection to ":0.0" refused by server

 

xeyes
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Error: Can't open display: :0.0

这是老问题了,不过这次对我来说却有些不同。想在自己的本本ubuntu上安装oracle10,结果新增加的用户oracle不能运行X程序。

查了查资料和手册,以日常工作用的那个用户登录,在shell中运行
[root@linux]# xhost local:oracle

non-network local connections being added to access control list

然后oracle身份就可以运行X程序了。

man xhost中有这样一段

       A complete name has the syntax ‘‘family:name’’ where the families are as follows:

       inet      Internet host (IPv4)
       inet6     Internet host (IPv6)
       dnet      DECnet host
       nis       Secure RPC network name
       krb       Kerberos V5 principal
       local     contains only one name, the empty string
       si        Server Interpreted

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics