LoveUnix » AIX -IBM UNIX » 求助:Xmanageroracle用户无法登录Xmanage[已解决]
让LU留住您的每

一天 让LU博客留住您的每一天
2008-6-4 13:58 alifence
求助:Xmanageroracle用户无法登录Xmanage[已解决]

刚刚新建oracle用户,准备安装oracle10g r2for aix
在命令行下配好.profile后,取消.dtprofile最后一行的注释,准备图形界面登录,输入用户名和口令后,无法进入CDE
给.dtprofile中 DTSOURCEPROFILE=true加上注释后,可以登录图形界面,但环境变量不对

.profile:
[code]if [ -s "$MAIL" ] # This is at Shell startup. In normal
then echo "$MAILMSG" # operation, the Shell checks
fi # periodically.

PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.$PATH:$ORACLE_HOME/bin:
export PATH
ORACLE_BASE=/oracle
export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0.1/db_1
export ORACLE_HOME
ORACLE_SID=test
export ORACLE_SID
NLS_LANG=American_America.zhs16gbk
export NLS_LANG
DISPLAY=127.0.0.1:0.0
export DISPLAY
ORACLE_TERM=vt100
export ORACLE_TERM
[/code]

startlog:
[code]--- Wed Jun 4 12:34:41 BEIST 2008
--- /usr/dt/bin/Xsession starting...
--- Xsession started by dtlogin
--- sourcing /home/oracle/.dtprofile...
--- sourcing /usr/dt/config/Xsession.d/0010.dtpaths...
--- sourcing /usr/dt/config/Xsession.d/0030.dttmpdir...
--- sourcing /usr/dt/config/Xsession.d/0040.xmbind...
--- sourcing /usr/dt/config/Xsession.d/0050.dtxmodmap...
--- starting /usr/dt/bin/dthello &
--- starting /usr/dt/bin/dtsearchpath
--- starting /usr/dt/bin/dtappgather &
--- execing /usr/dt/bin/dtsession using /home/oracle/.profile...
--- Tooltalk Message Server did not start within timeout specified.
--- Launching Xfailsafe_tooltalk_error to correct problems.
XIO: fatal IO error 73 (A connection with a remote socket was reset by that socket.) on X server "1
92.9.100.100:1.0"
after 43 requests (36 known processed) with 0 events remaining.[/code]


errorlog:
[code]Wed Jun 04 10:30:19 2008
dtsession: Unable to exec /usr/dt/install/oldrules/dtrmrules.driver.
[ENOENT (2)] A file or directory in the path name does not exist.

Wed Jun 04 10:30:19 2008
dtsession: Screen lock when the screen saver is turned on is not available on this server. Your scr
een will not be locked when the screen saver is turned on.

Wed Jun 04 10:30:20 2008
dtfile: X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 20 (X_GetProperty)
Resource id in failed request: 0x1c00048
Serial number of failed request: 555
Current serial number in output stream: 555


Wed Jun 04 10:32:44 2008
dtsession: Connection to server lost - exiting.[/code]
errorlog没看明白,相关的报错网上也没有找到答案
我对环境变量的设置一直不明白,除了ORACLE_HOME,SID,BASE之外,不知道其他变量该怎么设置,特别是图形界面登录的相关设置不明白,望大家指教

[[i] 本帖最后由 alifence 于 2008-6-5 09:18 编辑 [/i]]

2008-6-4 14:11 guoguo5481
好像是这条有问题

DISPLAY=127.0.0.1:0.0

改成Xmanager的地址试试

2008-6-4 14:17 yddll
又是DISPLAY变量的问题,看样子还是有不少误解啊

LZ把你的DISPLAY这一行注释掉再试

2008-6-4 14:23 alifence
注释掉后就可以了,谢谢yddll
我原来改过几次display,127.0.0.1或本地ip或服务器ip都不行
为什么不需要DISPLAY呢?何时需要设置DISPLAY?

2008-6-4 14:26 yddll
[quote]原帖由 [i]alifence[/i] 于 2008-6-4 14:23 发表 [url=http://www.loveunix.net/redirect.php?goto=findpost&pid=795048&ptid=85662][img]http://www.loveunix.net/images/common/back.gif[/img][/url]
注释掉后就可以了,谢谢yddll
我原来改过几次display,127.0.0.1或本地ip或服务器ip都不行
为什么不需要DISPLAY呢?何时需要设置DISPLAY? [/quote]

不需要是因为xmanager知道DISPLAY是自己:lol

2008-6-4 14:32 alifence
哎,这就是不了解.profile内容的结果造成的,我用了个现成的.profile
哪些文档可以了解这些内容呢?

2008-6-4 15:36 一杯清茶
呵呵,有意思!

页: [1]


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.