10g对sqlplus一处改进


今天在10g上用sqlpus登录后切换用户,发现sqlplus的提示能自动的改变,比起9i来,也算是个不错的进步了,因为在9i只能显示初次登录的信息,但是在10g却能实时的显示当前用户的信息了:

#### 9i,在conn 从sys用户切换到misc用户,提示信息没有改变,仍然是sys ####
 
D:\oracle\ora92\bin>D:/oracle/ora92/bin/sqlplus "/ as sysdba"
 
SQL*Plus: Release 9.2.0.1.0 - Production on 星期四 96 23:42:57 2007
 
Copyright (c) 1982, 2002, Oracle CorporationAll rights reserved.
 
 
连接到:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
 
sys@ORALOCAL(192.168.0.22)> conn misc/misc
已连接。
sys@ORALOCAL(192.168.0.22)>
--已经切换到
misc用户了,但是提示还是sys用户
sys@ORALOCAL(192.168.0.22)> exit
 
 
 
 
 
#### 10g,在conn 从sys用户切换到misc用户,提示信息会改变成当前的用户 ####
D:\oracle\ora92\bin>D:\oracle10g\product\10.2.0\db_1\BIN\sqlplus "/ as sysdba"
 
SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 96 23:43:48 2007
 
Copyright (c) 1982, 2005, OracleAll rights reserved.
 
 
连接到:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
 
sys@ORALOCAL(192.168.0.22)> conn misc/misc
已连接。
misc@ORALOCAL(192.168.0.22)>
--已经切换到
misc用户了,提示变成misc用户

· 【文章发布信息】发表于: 2007-09-07 @ 01:46:38 · ||分类: Study note

2 条评论 »

  1. 啊古 于 2007-09-07 @ 14:53:37 留言

    10g切换用户的时候会reload $ORACLE_HOME/sqlplus/admin/glogin.sql文件,是这个原因吧.

  2. 小荷 于 2007-09-07 @ 22:07:29 留言

    嗯,很有可能就是这个原因了。
    刚刚在9i上测试了一下,10g上效果确实如同重新load了一边glogin.sql文件。

RSS 为此帖反馈评论 · 反向跟踪 网站

留条评论