Wednesday, 23 October 2013

Replace the SQL> Prompt with the Current User Name

 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>

No comments:

Post a Comment