Whenever you log on to SQL*Plus it shows you the prompt SQL>. However you can change it for temporary or for permanent.
To change SQL prompt permanently set environmental variable inside glogin.sql.
To set SQL prompt for a particular OS user set it inside login.sql.
To make it temporary set within SQL*Plus. Like,
To change your SQL*Plus prompt to display your connection identifier, enter:
SET SQLPROMPT "_CONNECT_IDENTIFIER > "
dbase >
To set the SQL*Plus command prompt to show the current user, enter
SET SQLPROMPT "_USER > "
ARJU >
To change your SQL*Plus prompt to display your the current date, the current user and the users privilege level, enter:
SET SQLPROMPT "_DATE _USER _PRIVILEGE> "
01-JUN-08 ARJU >
You can also set a variable as you wish
set SQLPROMPT "JUST For Fun>"
JUST For Fun>
Text in nested quotes is not parsed for substitution. To have a SQL*Plus prompt of your username, followed by "@", and then your connection identifier, enter:
SET SQLPROMPT "_USER'@'_CONNECT_IDENTIFIER > "
Related Documents:
-------------------------------------------------------
How to set Environmental variable to SQL*Plus permanently
No comments:
Post a Comment