Database Administration (MOSC)

MOSC Banner

Modifying sql prompt using glogin.sql

edited Aug 3, 2017 9:56AM in Database Administration (MOSC) 5 commentsAnswered

I have 9I, 10G, 11G, and 12C databases in our environments. I modified the $ORACLE_HOME/sqlplus/admin/glogin.sql file by adding this:

SET SQLPROMPT "_user'@'_connect_identifier'> '"

Now when I log in to the database with sqlplus 

oracle@dbadmin:~$  sqlplus '/ as sysdba',

I get this display:

SYS@dbadmin>

It shows the user I am logged in as and the database I am connected to.  This works for all of my Oracle database versions except for 9.2.0.8.  After modifying the glogin.sql file, I get this when I try to log in to the 9I database with sqlplus:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center