I don't see any extraneous characters in
sys_context('userenv','session_user')either. But the trailing null in
v$session.machine for Windows connections is a known problem. Bug 646174 shows
version 8.1.5. I tried in 9.2.0.1. It still exists:
SQL> select dump(machine) from v$session where machine = 'ICONIX\YONGHUANG';
no rows selected
SQL> select machine from v$session where machine like 'ICONIX\YONGHUANG_';
MACHINE
----------------------------------------------------------------
ICONIX\YONGHUANG
SQL> select dump(machine) from v$session where machine like
'ICONIX\YONGHUANG_';
DUMP(MACHINE)
--------------------------------------------------------------------------------
Typ=1 Len=17: 73,67,79,78,73,88,92,89,79,78,71,72,85,65,78,71,0
Yong Huang
--- Chris Stephens <[EMAIL PROTECTED]> wrote:
> SQL> select sys_context('userenv','session_user'),
> 2 dump(sys_context('userenv','session_user')), a.reports_login,
> 3 dump(a.reports_login)
> 4 from global.client_dim a
> 5 WHERE sys_context('userenv','session_user') = a.REPORTS_LOGIN;
>
> SYS_CONTEXT('USERENV','SESSION_USER')
> ----------------------------------------------------------------------------
> ----
> DUMP(SYS_CONTEXT('USERENV','SESSION_USER'))
> ----------------------------------------------------------------------------
> ----
> REPORTS_LOGIN
> ------------------------------
> DUMP(A.REPORTS_LOGIN)
> ----------------------------------------------------------------------------
> ----
> REPORTS_DELTA
> Typ=1 Len=13: 82,69,80,79,82,84,83,95,68,69,76,84,65
> REPORTS_DELTA
> Typ=1 Len=13: 82,69,80,79,82,84,83,95,68,69,76,84,65
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Yong Huang
INET: [EMAIL PROTECTED]
Fat City Network Services -- 858-538-5051 http://www.fatcity.com
San Diego, California -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).