Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> SQL*Plus startup commands
Hi all,
I'm extremely new to Oracle. Haven't seen novice questions here so far but I'll take my chances.
I read in http://www.orafaq.net/kb/link.php?id=271 about things that can be placed in login.sql for SQL*Plus's startup.
I try the sample code which is for 10g:
set sqlprompt "&&_USER@&&_CONNECT_IDENTIFIER SQL>"
The _CONNECT_IDENTIFIER is correctly bound to the db I connect to, but I need to supply the username each time I login, to build _USER. Isn't there a variable that holds the username I used as soon as I successfully login, which I can use to build my sqlprompt?
I'm using Release 9.2.0.1.0
TIA.
![]() |
![]() |