An updated sqlprompt script

Basically, the meat of this post is this command (in sql plus):

set sqlprompt "_user '@' _connect_identifier > "

If you run the above command, your login prompt will update automatically even when you switch connections.  Previous methods had to be run manually over and over with every new connection… unless you wrote your own “connect” script.  This way… run once and it follows you throughout your session.

You can also update your glogin.sql file to contain the command above.  My glogin.sql file is located in the following directory:

$ORACLE_HOME\product\11.2.0\client_1\sqlplus\admin

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: