Modifying sql prompt using glogin.sql
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:
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: