2015-01-06 22:08:00 weixin_30576827 阅读数 62
linux下启动dbca或netmgr类的图形界面报错解决
 
 Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
……
解决办法:  www.2cto.com  
 
exit 退到root用户下执行下面代码
 
Java代码  
xhost local:oracle non-network local connections being added to access control list  
 
屏幕会出现如下内容:
  www.2cto.com  
Java代码  
non-network local connections being added to access control list  
xhost:  bad hostname "non-network"  
xhost:  bad hostname "local"  
xhost:  bad hostname "connections"  
xhost:  bad hostname "being"  
xhost:  bad hostname "added"  
xhost:  bad hostname "to"  
xhost:  bad hostname "access"  
xhost:  bad hostname "control"  
xhost:  bad hostname "list"  
 然后su - oracle
继续启动图形界面就好了。

转载于:https://www.cnblogs.com/numberone/p/4207094.html

2014-04-16 14:48:04 siyanyanyanyai 阅读数 8839

报错列表:

1、[oracle@linuxserver1~]$ dbca

bash: dbca: command not found

2、[oracle@linuxserver1~]$ dbca

Xlib: connection to ":0.0"refused by server

Xlib: No protocol specified

3、[oracle@linuxserver1~]$ dbca

Exception in thread "main" $

4、[oracle@linuxserver1~]$dbca

$JRE_DIR/bin/jre -DORACLE_HOME=$OH-DJDBC_PROTOCOL=thin -mx64m -classpath $CLASSPATHoracle.sysman.assistants.dbca.Dbca $ARGUMENTS等错误

5、系统原因

报错处理方式:

1、[oracle@linuxserver1~]$ dbca
bash: dbca: command not found

报错原因:环境变量设置错误,dbca 可执行文件就在 /usr/sbin:$PATH:$ORACLE_HOME/bin下

解决办法:修改.bash_profile中的参数设置

方法一:

[oracle@linuxserver1 ~]$vi .bash_profile

删除原先export PATH设置,

添加export PATH=/usr/sbin:$PATH:$ORACLE_HOME/bin

方法二:[oracle@linuxserver1 ~]$export PATH=/usr/sbin:$PATH:$ORACLE_HOME/bin

2、[oracle@linuxserver1~]$ dbca
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

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

通过查看dbca的log日志发现缺少包libXp

[oracle@game_dbscripts]$ cd $ORACLE_HOME/cfgtoollogs/dbca  

[oracle@game_dbdbca]$ ls

trace.log

[oracle@game_dbdbca]$ tail -50 trace.log

java.lang.UnsatisfiedLinkError:/home/oracle_app_10204/jdk/jre/lib/i386/libawt.so:libXp.so.6: cannot openshared object file: No such file or directory

       atjava.lang.ClassLoader$NativeLibrary.load(Native Method)

       atjava.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)

       atjava.lang.ClassLoader.loadLibrary(ClassLoader.java:1503)

       atjava.lang.Runtime.loadLibrary0(Runtime.java:788)

       atjava.lang.System.loadLibrary(System.java:834)

       atsun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)

       atjava.security.AccessController.doPrivileged(Native Method)

       atsun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)

       atsun.awt.DebugHelper.<clinit>(DebugHelper.java:29)

       atjava.awt.Component.<clinit>(Component.java:506)

      atoracle.sysman.assistants.util.wizard.WizardObject.<init>(WizardObject.java:64)

      atoracle.sysman.assistants.dbca.ui.DBCAWizard.<init>(DBCAWizard.java:425)

       atoracle.sysman.assistants.dbca.ui.UIHost.<init>(UIHost.java:214)

      atoracle.sysman.assistants.dbca.ui.InteractiveHost.<init>(InteractiveHost.java:54)

      atoracle.sysman.assistants.dbca.Dbca.getHost(Dbca.java:160)

       atoracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:94)

       atoracle.sysman.assistants.dbca.Dbca.main(Dbca.java:180)


解决办法:将包libXp打上

解决步骤

1、验证一下包:

[oracle@linuxserver1 ~]$ rpm -qa|grep libXp

libXpm-devel-3.5.5-3

libXpm-3.5.5-3

2、将libXp 包打上:

[root@linuxserver1 ~]$# ll

-rwxrwSrwx 1 root root 229962007-07-26libXp-1.0.0-8.1.el5.i386.rpm

-rwxrwSrwx 1 root root 152622007-07-26libXp-devel-1.0.0-8.1.el5.i386.rpm

[root@linuxserver1 ~]$# rpm -ivh libXp*.rpm
warning: libXp-1.0.0-8.1.el5.i386.rpm:Header V3 DSA signature: NOKEY, key ID37017186
Preparing...              ########################################### [100%]
  1:libXp                ########################################### [ 50%]
  2:libXp-devel          ########################################### [100%]
[oracle@linuxserver1 ~]$# rpm -qa|grep libXp
libXpm-devel-3.5.5-3
libXp-1.0.0-8.1.el5
libXpm-3.5.5-3
libXp-devel-1.0.0-8.1.el5

3、root用户下执行xhosts+命令保证图形化安装界面可以启动
[root@linuxserver1 ~]$# xhost +
access control disabled, clients canconnect from any host
[root@linuxserver1 ~]# su - oracle
[oracle@linuxserver1 ~]$ exportDISPLAY=192.168.3.189:0.0
[oracle@linuxserver1 ~]$ dbca

注意:

一、使用SecureCRT实现远程应用程序的图形显示步骤:

1、 在root用户下修改/etc/ssh/sshd_config文件中的X11Forwarding的值为yes

2、 设置SecureCRT的”会话选项”中的”远程/X11”中勾选”转发X11”数据包。

3、 重启服务,servicesshrestart

4、 推出会话,重新连接。此时,echo$DISPLAY将会有值显示。

5、 在客户端这边,开启Xmanager(:0.0)

6、 在SecureCRT端登入,设置DISPLAY变量(export DISPLAY=客户端IP:0.0)

. 在用oracle登录之前现在root用户下输入xhost +命令,oracle用户才能利用图形方式安装oracle或者建库


报错原因二:DISPLAY 环境变量设置错误。因为Xserver默认情况下不允许别的用户的图形程序的图形显示在当前屏幕上.

解决办法:如果需要别的用户的图形显示在当前屏幕上, 则应以当前登陆的用户, 也就是切换身份前的用户执行如下命令

[root@linuxserver1 ~]$xhost +

解决办法:用root登陆,在#提示符后输入:
xhost local:oracle non-network local connections being added to access controllist
此时再 su - oracle 切换到Oracle用户执行图形界面任务就可以了
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
其中local那个是用来解决同一台机器的不同用户访问X的问题的

3、[oracle@linuxserver1~]$ dbca
Exception in thread "main" $

报错原因:DISPLAY参数设置

解决方法:

[oracle@linuxserver1 ~]$exportDISPLAY=127.0.0.1:0.0

[oracle@linuxserver1 ~]$ exportDISPLAY=:0.0

[oracle@linuxserver1 ~]$ xhost +

access control disabled, clients canconnect from any host

[oracle@linuxserver1 ~]$ dbca

4、[oracle@linuxserver1~]$dbca
$JRE_DIR/bin/jre -DORACLE_HOME=$OH -DJDBC_PROTOCOL=thin -mx64m -classpath$CLASSPATH oracle.sysman.assistants.dbca.Dbca $ARGUMENTS等错误

报错原因:JRE 的版本不对。oracle 的dbca脚本里默认的JRE 是 1.1.8

解决办法:

      1. rm $ORACLE_HOME/JRE (此JRE链接是1.1.8 的符号链接,需要改指向向1.3.1的)

  2. ln -s $ORACLE_BASE/jre/1.3.1 $ORACLE_HOME/JRE

  3. cd $ORACLE_BASE/jre/1.3.1/bin

  4. ln -s java jre

  5. cd i386/native_threads

  6. ln -s java jre

注意:

JRE介绍:http://baike.baidu.com/view/160710.htm

版本管理

Java的解决办法是每个程序自己携带一套JRE。

比如说某人的机器上已经被安装了好多套JRE和JDK(JDK包括了同版本的JRE,此外还包括有编译器和其它工具),它们分别是:

BEAWeblogic Server 7.0 自带一套 JDK1.3.1_02, 还下载了一套最新的JDK1.4.1_02

JBuilder9自带一套JDK1.4.1_02

Oracle8.1.7自带一套JRE1.1.7

RationRose自带一套JDK1.3

DreamWeaver自带一套JDK1.3

6套JRE,每套JRE都被各自安装到不同的目录,不会互相影响。当在控制台执行java.exe,操作系统寻找JRE的方式如下:

先找当前目录下有没有JRE

再找父目录下有没有JRE

接着在PATH路径中找JRE

注册表HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JavaRuntime Environment\ 查看CurrentVersion的键值指向哪个JRE

最常用的是在PATH路径中找JRE,一般情况下,自己的程序运行之前都会先在批处理文件里面临时设置PATH,把自己用的JRE放到PATH路径最前面,所以肯定会运行自己带的JRE,不会造成版本混乱。


2014-02-09 20:33:23 cizhaorun3127 阅读数 5
问题:LINUX 32bit 安装11.2.0.1 dbca无法启动,查寻mos确定为bug。


点击(此处)折叠或打开

  1. [oracle@yws tmp]$ unzip p8670579_112010_LINUX.zip
  2. Archive: p8670579_112010_LINUX.zip
  3.    creating: 8670579/
  4.    creating: 8670579/files/
  5.    creating: 8670579/files/lib/
  6.    creating: 8670579/files/lib/libnnz11.a/
  7.   inflating: 8670579/files/lib/libnnz11.a/ahseteco.o
  8.   inflating: 8670579/files/lib/libnnz11.a/am11rkg.o
  9.   inflating: 8670579/files/lib/libnnz11.a/amsha.o
  10.   inflating: 8670579/files/lib/libnnz11.a/cpui32.o
  11.   inflating: 8670579/files/lib/libnnz11.a/sha.o
  12.   inflating: 8670579/files/lib/libnnz11.a/x931rand.o
  13.   inflating: 8670579/files/lib/libnnz11.a/am11dkg.o
  14.   inflating: 8670579/files/lib/libnnz11.a/am931rnd.o
  15.   inflating: 8670579/files/lib/libnnz11.a/amsharnd.o
  16.   inflating: 8670579/files/lib/libnnz11.a/ghash.o
  17.   inflating: 8670579/files/lib/libnnz11.a/shacomm.o
  18.   inflating: 8670579/files/lib/libnnz11.so
  19.    creating: 8670579/etc/
  20.    creating: 8670579/etc/config/
  21.   inflating: 8670579/etc/config/inventory.xml
  22.   inflating: 8670579/etc/config/actions.xml
  23.   inflating: 8670579/etc/config/deploy.xml
  24.    creating: 8670579/etc/xml/
  25.   inflating: 8670579/etc/xml/GenericActions.xml
  26.   inflating: 8670579/etc/xml/ShiphomeDirectoryStructure.xml
  27.   inflating: 8670579/README.txt
  28. [oracle@yws tmp]$ cd 8670579/
  29. [oracle@yws 8670579]$ ls
  30. etc files README.txt
  31. [oracle@yws 8670579]$ $ORACLE_HOME/OPatch/opatch apply -invPtrLoc $ORACLE_HOME/oraInst.loc
  32. Invoking OPatch 11.1.0.6.6

  33. Oracle Interim Patch Installer version 11.1.0.6.6
  34. Copyright (c) 2009, Oracle Corporation. All rights reserved.


  35. Oracle Home : /u01/oracle/product/11.2.0
  36. Central Inventory : /u01/oraInventory
  37.    from : /u01/oracle/product/11.2.0/oraInst.loc
  38. OPatch version : 11.1.0.6.6
  39. OUI version : 11.2.0.1.0
  40. OUI location : /u01/oracle/product/11.2.0/oui
  41. Log file location : /u01/oracle/product/11.2.0/cfgtoollogs/opatch/opatch2013-12-02_04-23-46AM.log

  42. Patch history file: /u01/oracle/product/11.2.0/cfgtoollogs/opatch/opatch_history.txt


  43. --------------------------------------------------------------------------------
  44. The patch has more than one Archive Action but there is no Make Action.
  45. --------------------------------------------------------------------------------
  46. ApplySession applying interim patch \'8670579\' to OH \'/u01/oracle/product/11.2.0\'

  47. Running prerequisite checks...

  48. OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only.


  49. Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
  50. (Oracle Home = \'/u01/oracle/product/11.2.0\')


  51. Is the local system ready for patching? [y|n]
  52. y
  53. User Responded with: Y
  54. Backing up files and inventory (not for auto-rollback) for the Oracle Home
  55. Backing up files affected by the patch \'8670579\' for restore. This might take a while...
  56. Backing up files affected by the patch \'8670579\' for rollback. This might take a while...

  57. Patching component oracle.network.rsf, 11.2.0.1.0...
  58. Updating archive file \"/u01/oracle/product/11.2.0/lib/libnnz11.a\" with \"lib/libnnz11.a/ahseteco.o\"
  59. Updating archive file \"/u01/oracle/product/11.2.0/lib/libnnz11.a\" with \"lib/libnnz11.a/am11rkg.o\"
  60. Updating archive file \"/u01/oracle/product/11.2.0/lib/libnnz11.a\" with \"lib/libnnz11.a/amsha.o\"
  61. Updating archive file \"/u01/oracle/product/11.2.0/lib/libnnz11.a\" with \"lib/libnnz11.a/cpui32.o\"
  62. Updating archive file \"/u01/oracle/product/11.2.0/lib/libnnz11.a\" with \"lib/libnnz11.a/sha.o\"
  63. Updating archive file \"/u01/oracle/product/11.2.0/lib/libnnz11.a\" with \"lib/libnnz11.a/x931rand.o\"
  64. Updating archive file \"/u01/oracle/product/11.2.0/lib/libnnz11.a\" with \"lib/libnnz11.a/am11dkg.o\"
  65. Updating archive file \"/u01/oracle/product/11.2.0/lib/libnnz11.a\" with \"lib/libnnz11.a/am931rnd.o\"
  66. Updating archive file \"/u01/oracle/product/11.2.0/lib/libnnz11.a\" with \"lib/libnnz11.a/amsharnd.o\"
  67. Updating archive file \"/u01/oracle/product/11.2.0/lib/libnnz11.a\" with \"lib/libnnz11.a/ghash.o\"
  68. Updating archive file \"/u01/oracle/product/11.2.0/lib/libnnz11.a\" with \"lib/libnnz11.a/shacomm.o\"
  69. Copying file to \"/u01/oracle/product/11.2.0/lib/libnnz11.so\"
  70. ApplySession adding interim patch \'8670579\' to inventory

  71. Verifying the update...
  72. Inventory check OK: Patch ID 8670579 is registered in Oracle Home inventory with proper meta-data.
  73. Files check OK: Files from Patch ID 8670579 are present in Oracle Home.

  74. The local system has been patched and can be restarted.


  75. OPatch succeeded.

运行DBCA OK.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29477587/viewspace-1078549/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/29477587/viewspace-1078549/

2018-06-08 00:12:19 benzhexin 阅读数 732

花了我大半天的时间一直在找原因。网上查了很多,说什么DISPLAY配置不对。我也配置了下export DISPLAY=192.168.247.100:0.0 启动过后还是报错,最后我在/home/oracle下配置export DISPLAY=:0.0然后启动dbca尽然成功了,记下来方便其他人找错误。

2013-07-03 21:41:37 LinusFay 阅读数 2048

环境:oracle-linux 5.7 oracle11g R2

错误情况:

[oracle@linusfay ~]$ netmgr

Xlib: connection to ":0.0" refused by server

Xlib: No protocol specified

[oracle@linusfay ~]$ dbca
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


解决办法

[oracle@linusfay ~]# export DISPLAY=127.0.0.1:0.0
[oracle@linusfay ~]# export DISPLAY=:0.0
[oracle@linusfay ~]# xhost +
access control disabled, clients can connect from any host




没有更多推荐了,返回首页