Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> FYI: v$session.machine may hold ASCII 0 characters

FYI: v$session.machine may hold ASCII 0 characters

From: Arjan van Bentem <avbentem_at_DONT-YOU-DAREdds.nl>
Date: Tue, 13 Apr 1999 19:23:31 +0200
Message-ID: <7evui9$b30$1@weber.a2000.nl>


Hi everybody,

Just for your information: I spent quite a lot of time today to find that the column machine in v$session can hold ASCII 0 characters. You might only see them when you use something like

    select osuser, username, dump(machine)     from v$session;

In my case (Oracle 8.04, Sun Solaris), all Unix users have a "normal" varchar2 value specifying the machine name. The WinNT users however, connecting to the Sun Solaris database server through SQL*Net, showed this zero-character at the last position. This messed up things in my Windows pop-up window (which simply did not show the rows that were fetched after a row with such zero-character), while the same query gave me no problems at all in SQL*Plus...

I now use something like

    select osuser, username, rtrim(machine, chr(0))     from v$session;

but still wonder if this is normal behavior...

Arjan. Received on Tue Apr 13 1999 - 12:23:31 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US