`
liyf155
  • 浏览: 125794 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

Linux 安装 Oracle10g 常见错误汇总(转)

阅读更多
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, 从http://rpmfind.net/linux/rpm2html/search.php?query=xorg-X11-deprecated-lib下载之:
ftp://rpmfind.net/linux/fedora/core/updates/4/i386/xorg-x11-deprecated-libs-devel-6.8.2-37.FC4.49.2.1.i386.rpm
执行安装
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


错误一:



/tmp/OraInstall2007-12-30_02-16-11PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open  shared object file: No such file or directory occurred..



原因是:缺少支持打印的图形化动态链接库libXp.so.6

这个错误是由于缺少系统安装包,在RHEL5以前的版本,可以安装xorg-x11-deprecated-libs包即可,这个安装包可以在系统光盘第三张盘中找到(对于redhat as4.2以前,redhat as4.4是在第四张安装光盘)

IXDBA.NET社区论坛

我下载的文件如下:

xorg-x11-deprecated-libs-6.8.2-31.i386.rpm



错误二:

Exception :java.lang.UnsatisfiedLinkError:/usr/java/j2sdk1.4.2_06/jre/lib/i386/libawt.so: libXt.so.6: cannot open shared object file: No such file or directory
这个错误是也是由于缺少系统安装包造成的,只需安装XFree86-libs包即可,这个安装包可以在系统光盘中找到。



在上面两个错误如果出现在redhat as5版本中,解决如下:

在RHEL5中上面的包被libXp所取代了,因此rpm -ivh libXp-1.0.0-8.i386.rpm将包打上后问题即可解决。



错误三:

error while loading shared libraries: libstdc++-libc6.1-1.so.2

只用执行如下操作ln -s libstdc++-libc6.2-2.so.3 libstdc++-libc6.1-1.so.2





参考案例

案例一:

在RHEL5上测试安装oracle10g,本以为之前转过11g,这次会比较顺利,结果还是遇到两个问题。

   首先,在执行runInstaller时,系统报错:

You do not have sufficient permissions to access the inventory '/oracle11g/oraInventory'. Installation cannot continue. Make sure that you have read/write permissions to the inventory directory and restart the installer.: Permission denied

这里采用的是新建一个10g用户的方法让10g,11g并存,实际上在启动安装程序的时候,oracle会去找/etc/oraInst.loc和oratab这两个文件(hp是/var/opt/oracle)

而在oraInst.loc里面定义了inventory_loc的位置和inst_group,由于之前装过了一个11g,里面的定义都是针对11g用户设置的,所以才会报错。解决办法是执行runInstaller -invPtrLoc /oracle10g/oraInst.loc命令就可以绕过去了,oracle会创建一个新的loc文件。

  上一步成功通过之后,紧接着报了下面的错:

Exception java.lang.UnsatisfiedLinkError: /tmp/OraInstall2007-08-30_02-16-11PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory occurred..
java.lang.UnsatisfiedLinkError: /tmp/OraInstall2007-08-30_02-16-11PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory

在RHEL5以前这个错误是因为缺少XFree86-libs或xorg-x11-deprecated-libs这两个包其中一个(版本不同包不同),而在RHEL5中前面的包被libXp所取代了,因此rpm -ivh libXp-1.0.0-8.i386.rpm将包打上后问题解决。之后一切顺利。



案例二:

参考http://moto.debian.org.tw/viewtopic.php?t=8055&sid=eb2524337903c5af7ce1e839e0a35b68
进行前期的安装准备
在开始安装时出现以下错误:

对于error while loading shared libraries: libstdc++-libc6.1-1.so.2
我的解决办法是
ln -s libstdc++-libc6.2-2.so.3 libstdc++-libc6.1-1.so.2
对于
Exception :java.lang.UnsatisfiedLinkError:/usr/java/j2sdk1.4.2_06/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
的解决办法是
apt-get install libXp.so.6
apt-get install libXt.so.6
apt-get install libxtst6



案例三:

在RH Linux7.3上使用JasperReport作为报表引擎时,碰到了一样的问题:
Exception :java.lang.UnsatisfiedLinkError:/usr/java/j2sdk1.4.2_06/jre/lib/i386/libawt.so: libXt.so.6: cannot open shared object file: No such file or directory

在各位前面回复的提示下,经过一上午的google,终于得以解决这个问题
原因是:缺少支持打印的图形化动态链接库libXp.so.6(也许还有相关的其他库)
解决办法:下载并安装XFree86-libs-4.2.0-8.i386.rpm,/usr/X11R6/lib下就会出现需要的libXp.so.6.2

附上XFree86-libs-4.2.0-8.i386.rpm的一个下载地址:
ftp://ftp.nluug.nl/vol/1/schoollan/os/linux/RPMS/XFree86-libs-4.2.0-8.i386.rpm
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics