Minimalistic Oracle contains a collection of practical examples from my encounters with Oracle technologies.
When relevant, I also write about other technologies, like Linux or PostgreSQL.
Many of the posts starts with "how to" since they derive directly from my own personal experience.
My goal is to provide simple examples, so that they can be easily adapted to other situations.
Thursday, May 22, 2014
How to use the glogin.sql file to set global sqlplus attributes
The file $ORACLE_HOME/sqlplus/admin/glogin.sql can be used to define global attributes for users of sqlplus on that particular host.
For example:
SET SQLPROMPT "_USER'@'_CONNECT_IDENTIFIER SQL>"
SET LINESIZE 200
SET PAGSEIZE 200
On Production servers, you may consider adding a colored prompt, for example red:
SET SQLPROMPT "'^[[41m'_USER'@'_CONNECT_IDENTIFIER'^[[0m' SQL> "
No comments:
Post a Comment