首页 > Linux操作系统 > Linux操作系统 > sqlplus环境设置
set termout off
define gname=idle
column global_name new_value gname
select lower(user) ||
substr(global_name,1,decode(dot,0,length(global_name),dot-1)) global_name
from (select global_name,instr(global_name,'.') dot from global_name);
set sqlprompt '&gname>'
set termort on
4. 再次登录时,效果为:
C:>sqlplus scott/tiger
SQL*Plus: Release 10.1.0.2.0 - Production on 星期日 8月 14 06:57:35 2005
Copyright (c) 1982, 2004, Oracle. All rights reserved.
连接到:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
conn">scott@LAW>conn system/oracle
已连接。
system@LAW>
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/37724/viewspace-152502/ ,如需转载,请注明出处,否则将追究法律责任。