登录失败,到哪里可以看到错误日志?

44 views
Skip to first unread message

Daniel Qian

unread,
Jul 11, 2013, 2:05:35 AM7/11/13
to sh...@googlegroups.com
我用的是ubuntu13.04 desktop,安装完oracle-xe 11gR2,重启后,就无法登录系统了,症状为输入密码之后登录,屏幕闪一下就又退回到登录界面了。

可以启动oracle-xe服务,也可以连上oracle-xe。

按ctrl+alt+F1用文字界面login是可以的。

删除oracle-xe后就可以登录系统了。

现在想知道可以从哪里查到错误日志。

dmesg看过,好像就只有启动时的日志,登录后发生的问题没有记录。

Alex Zhang

unread,
Jul 11, 2013, 3:04:53 AM7/11/13
to sh...@googlegroups.com
tail /var/log/auth.log

ls -ltr /var/log 看最新的

闪一下退出可能是你的.xsession之类的出问题,试试用twm登陆看看。

ls -lah ~/ 看看有什么,仔细看.x*, .login, .profile 之类的登陆控制脚本

--
Difan Zhang (@tifan)



--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 shlug+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/groups/opt_out。
 
 

Daniel Qian

unread,
Jul 11, 2013, 9:08:44 AM7/11/13
to sh...@googlegroups.com
非常感谢,在~/.xsession-errors里找到原因了,在设置环境变量的地方有这样一段代码
export NLS_LANG=`$ORACLE_HOME/bin/nls_lang.sh`
执行的结果是SIMPLIFIED CHINESE_CHINA.AL32UTF8,带一个空格,会报错。前后加一个双引号就行了。
export NLS_LANG="`$ORACLE_HOME/bin/nls_lang.sh`"

于2013年07月11日 星期四 15时04分53秒,Alex Zhang写到:
> tail /var/log/auth.log
>
> ls -ltr /var/log 看最新的
>
> 闪一下退出可能是你的.xsession之类的出问题,试试用twm登陆看看。
>
> ls -lah ~/ 看看有什么,仔细看.x*, .login, .profile 之类的登陆控制脚本
>
> --
> Difan Zhang (@tifan)
> http://tifan.net/
>
>
> 在 2013年7月10日下午11:05,Daniel Qian <chanj...@gmail.com
> <mailto:chanj...@gmail.com>>写道:
>
> 我用的是ubuntu13.04 desktop,安装完oracle-xe 11gR2,重启后,就无法
> 登录系统了,症状为输入密码之后登录,屏幕闪一下就又退回到登录界面了。
>
> 可以启动oracle-xe服务,也可以连上oracle-xe。
>
> 按ctrl+alt+F1用文字界面login是可以的。
>
> 删除oracle-xe后就可以登录系统了。
>
> 现在想知道可以从哪里查到错误日志。
>
> dmesg看过,好像就只有启动时的日志,登录后发生的问题没有记录。
>
> --
> -- You received this message because you are subscribed to the
> Google Groups Shanghai Linux User Group group. To post to this
> group, send email to sh...@googlegroups.com
> <mailto:sh...@googlegroups.com>. To unsubscribe from this group,
> send email to shlug+un...@googlegroups.com
> <mailto:shlug%2Bunsu...@googlegroups.com>. For more options,
> visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User
> Group”论坛。
> 要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到
> shlug+un...@googlegroups.com
> <mailto:shlug%2Bunsu...@googlegroups.com>。
> 要查看更多选项,请访问 https://groups.google.com/groups/opt_out
Reply all
Reply to author
Forward
0 new messages