小技巧----Replace the SQL> Prompt with the Current User Name

 Replace the SQL> Prompt with the Current User Name

by Jeff Hunter, Sr. Database Administrator

In order to replace the SQL> prompt with the current user name, edit ORACLE_HOME/sqlplus/admin/glogin.sql and add:

set sqlprompt '_user> '

Test the new SQL prompt:


$ sqlplus scott/tiger

SQL*Plus: Release 11.2.0.3.0 Production on Sat Jul 21 00:35:59 2012

Copyright (c) 1982, 2011, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining
and Real Application Testing options

SCOTT>

posted @ 2012-08-28 23:42  jefflu99  阅读(187)  评论(0编辑  收藏  举报