如下:
[root@Text bin]# cd /root
[root@Text root]# su oracle
[oracle@Text root]$ cd /opt/oracle9i/product/9.2.0/bin
[oracle@Text bin]$ ./dbca
/opt/oracle9i/jre/1.1.8/bin/../lib/i686/green_threads/libzip.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference (libzip.so)
Unable to initialize threads: cannot find class java/lang/Thread
Could not create Java VM
[oracle@Text bin]$
而oracle用户直接登录的时候做Database Configuration是没有问题一的?高手帮我看看是什么原因..应该不是jvm文题---
| 好好先生 回复于:2003-09-18 10:00:01 |
| 试试su - oracle(注意空格) |
| text2002 回复于:2003-09-18 14:51:42 |
| [quote:5cdaa502d1="好好先生"]试试su - oracle(注意空格)[/quote:5cdaa502d1]
拜谢. 新问题又出来了. 如下: [root@Text bin]# su - oracle [oracle@Text oracle]$ cd /opt/oracle9i/product/9.2.0/bin/ [oracle@Text bin]$ export LANG=C [oracle@Text bin]$ ./dbca Xlib: connection to "192.168.8.157:0.0" refused by server Xlib: No protocol specified java.lang.NoClassDefFoundError 我觉得一定是和操作系统的某些配置有关--既然以oracle登录可以./dbca |
| maluyao 回复于:2003-09-18 14:53:11 |
| export DISPLAY=YOUR_IP:0 |
| lnx3000 回复于:2003-09-18 14:55:12 |
| 老问题了
在X下用root用户执行一下xhost + |
| 好好先生 回复于:2003-09-18 14:58:03 |
| oracle我不是很熟,只知道它好象一定要用oracle这个用户来执行操作.安装时就应该创建这个用户.(说的不对,大虾们别怪罪)其他的就不知道了.linux中每个用户可以设置不同的环境变量,不同用户的权限不同."一句话问答"中有一个以不同用户身份运行程序的条目,你去看看有没有帮助. |
| text2002 回复于:2003-09-18 14:59:13 |
| 作了一个xhost.结果如下:
[oracle@Text bin]$ xhost + 192.168.8.157 Xlib: connection to "192.168.8.157:0.0" refused by server Xlib: No protocol specified xhost: unable to open display "192.168.8.157:0.0" [oracle@Text bin]$ |
| 好好先生 回复于:2003-09-18 15:06:00 |
| xhost +在服务器上运行. |
| text2002 回复于:2003-09-18 15:22:17 |
| [quote:f579ad02a2="lnx3000"]老问题了
在X下用root用户执行一下xhost +[/quote:f579ad02a2] 谢谢:好好先声.lnx3000. 呵呵,是是是老问题.被困扰地不行了. 我就是在本机做xhost + 的.而且oracle的profile里面是有 export DISPLAY=192.168.8.157:0.0这句子的. Xlib: connection to "192.168.8.157:0.0" refused by server这报错真搞不懂. 另外:如果xhost + 能解决问题时不时临时解决的,下次重启的时候又要重做. 改什么配置文件将它永久掉? 称谢....... ///////////////////////////////////////////////////////////// [root@Text root]# su - oracle [oracle@Text oracle]$ export LANG=C [oracle@Text oracle]$ export DISPLAY=192.168.8.157:0.0 [oracle@Text oracle]$ echo $DISPLAY 192.168.8.157:0.0 [oracle@Text oracle]$ cd /opt/oracle9i/product/9.2.0/bin/ [oracle@Text bin]$ ./dbca Xlib: connection to "192.168.8.157:0.0" refused by server Xlib: No protocol specified java.lang.NoClassDefFoundError [1]+ Stopped ./dbca [oracle@Text bin]$ xhost + 192.168.8.157 Xlib: connection to "192.168.8.157:0.0" refused by server Xlib: No protocol specified xhost: unable to open display "192.168.8.157:0.0" [oracle@Text bin]$ |
| text2002 回复于:2003-09-18 15:45:27 |
| [quote:5771cb95b2="lnx3000"]老问题了
在X下用root用户执行一下xhost +[/quote:5771cb95b2] 谢谢..... 是root用户做xhost + 啊.整昏了. [oracle@Text oracle]$ su - root Password: [root@Text root]# xhost + 192.168.8.157 192.168.8.157 being added to access control list xhost +是不是有点类是export的命令? 每次乱码我都要export LANG=C.怎么永久化? |
| lnx3000 回复于:2003-09-18 16:27:48 |
| 发信人: lisuit (冷月), 信区: Unix
标 题: Re: 请问命令xhost的作用和内部机制是干啥的 发信站: BBS 水木清华站 (Fri Sep 3 18:14:05 1999) xhost 是用来控制X server访问权限的。 通常当你从hostA登陆到hostB上运行hostB上的应用程序时, 做为应用程序来说,hostA是client,但是作为图形来说, 是在hostA上显示的,需要使用hostA的Xserver,所以hostA是 server.因此在登陆到hostB前,需要在hostA上运行xhost + 来使其它用户能够访问hostA的Xserver. xhost + 是使所有用户都能访问Xserver. xhost + ip使ip上的用户能够访问Xserver. xhost + nis:user@domain使domain上的nis用户user能够访问 xhost + inet:user@domain使domain上的inet用户能够访问。 还有一些option,还是仔细看一下manual吧。 |
| text2002 回复于:2003-09-18 18:27:32 |
| 称谢。
/////////////////////////////////// 还想补充一个.做lsnctl start的时候还非得su - oracle不可.root运行oracle的profile在 做lsnctl还是不可以. [root@Text root]# . /home/oracle/.bash_profile [root@Text root]# cd /opt/oracle9i/product/9.2.0/bin [root@Text bin]# oemapp console [root@Text bin]# lsnrctl LSNRCTL for Linux: Version 9.2.0.1.0 - Production on 19-SEP-2003 10:01:12 Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved. Welcome to LSNRCTL, type "help" for information. LSNRCTL> start Starting /opt/oracle9i/product/9.2.0/bin/tnslsnr: please wait... TNSLSNR for Linux: Version 9.2.0.1.0 - Production NL-00280: error creating log stream /opt/oracle9i/product/9.2.0/network/log/listener.log NL-00278: cannot open log file SNL-00016: snlfohd: error opening file Linux Error: 13: Permission denied Listener failed to start. See the error message(s) above... LSNRCTL> ///////////////////////////////// su - oracle 就正常了. [root@Text admin]# su - oracle [oracle@Text oracle]$ lsnrctl LSNRCTL for Linux: Version 9.2.0.1.0 - Production on 19-SEP-2003 09:59:18 Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved. Welcome to LSNRCTL, type "help" for information. LSNRCTL> status Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=Text)(PORT=1521))) TNS-12541: TNS:no listener TNS-12560: TNS:protocol adapter error TNS-00511: No listener Linux Error: 111: Connection refused LSNRCTL> start Starting /opt/oracle9i/product/9.2.0/bin/tnslsnr: please wait... TNSLSNR for Linux: Version 9.2.0.1.0 - Production System parameter file is /opt/oracle9i/product/9.2.0/network/admin/listener.ora Log messages written to /opt/oracle9i/product/9.2.0/network/log/listener.log Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Text)(PORT=1521))) Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=Text)(PORT=1521))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 9.2.0.1.0 - Production Start Date 19-SEP-2003 09:59:32 Uptime 0 days 0 hr. 0 min. 5 sec Trace Level off Security OFF SNMP OFF
本文关键:root su到oracle和oracle直接登录执行命令的结果为什么不一样?
相关方案
|