SQLplus user profile is maintained in the file glogin.sql which is executed at the time of login in to a database connection. The default location of this file is
$ORACLE_HOME/sqlplus/admin/
Usually when a query is executed through sqlplus terminal, at first it tries to fetch profile form the current directory, if no there in that case from the default location.
Suppose, by defualt if we connect to a database using sqlplus, it dones not show the connected database information in the screen. It only prompts with:
sqlplus>
Now if we want to show the connected database information in the sqlplus command line as:
username@db_connect_name>
In that case, we cas easily do that by modification in the glogin file as below:
set sqlprompt "_user '@' _connect_identifier >"
There are some other keywords for using in glogin file as:
$ORACLE_HOME/sqlplus/admin/
Usually when a query is executed through sqlplus terminal, at first it tries to fetch profile form the current directory, if no there in that case from the default location.
Suppose, by defualt if we connect to a database using sqlplus, it dones not show the connected database information in the screen. It only prompts with:
sqlplus>
Now if we want to show the connected database information in the sqlplus command line as:
username@db_connect_name>
In that case, we cas easily do that by modification in the glogin file as below:
set sqlprompt "_user '@' _connect_identifier >"
There are some other keywords for using in glogin file as: