Can they be different
Raju, November 15, 2004 - 4:36 am UTC
Am I right to assume that in all the cases the USER() and username values will be the same. Can they be different at all? If yes, please can you show with an example.
Thaks
November 15, 2004 - 6:43 am UTC
umm, USER is a function that returns YOUR NAME.
username is a database column.
there is no relationship whatsoever between the two. just
select user, username from v$session
on a database with multiple users logged in.
sorting...
Connor, November 15, 2004 - 9:16 am UTC
I wish they'd thought of that when they put a column called "USER" in v$sort_usage :-)
November 15, 2004 - 1:27 pm UTC
AGREED :)