Return-Path: <ml-errors@fatcity.com>
Received: from ensim.rackshack.net (root@localhost)
 by orafaq.net (8.11.6/8.11.6) with ESMTP id hABKv2m04307
 for <oracle-l@orafaq.net>; Tue, 11 Nov 2003 14:57:02 -0600
X-ClientAddr: 66.27.56.212
Received: from www3.fatcity.com (rrcs-west-66-27-56-212.biz.rr.com [66.27.56.212])
 by ensim.rackshack.net (8.11.6/8.11.6) with ESMTP id hABKuuc04302
 for <oracle-l@orafaq.net>; Tue, 11 Nov 2003 14:57:02 -0600
Received: (from root@localhost)
 by www3.fatcity.com (8.11.6/8.11.6) id hABHeRb05096
 for oracle-l@orafaq.net; Tue, 11 Nov 2003 09:40:27 -0800
Received: by fatcity.com (05-Jun-2003/v1.0g-b73/bab) via fatcity.com id 005D6564; Tue, 11 Nov 2003 09:44:24 -0800
Message-ID: <F001.005D6564.20031111094424@fatcity.com>
Date: Tue, 11 Nov 2003 09:44:24 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: Daniel Fink <Daniel.Fink@Sun.COM>
Sender: ml-errors@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: Daniel Fink <Daniel.Fink@Sun.COM>
Subject: Re: SQL comparison addition:
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 73; ListGuru (c) 1996-2003 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit

I may be barking up the wrong tree, but humour an old dba...

Could you try running the following and post the output?

select  sys_context('userenv','session_user'),
dump(sys_context('userenv','session_user')), a.reports_login,
dump(a.reports_login)
from global.client_dim a
WHERE sys_context('userenv','session_user') = a.REPORTS_LOGIN;

Daniel


Chris Stephens wrote:

> I just tried:
>
>   1  SELECT count(*)
>   2      FROM global.client_dim a
>   3*     WHERE sys_context('userenv','session_user') = a.REPORTS_LOGIN
> SQL> /
>
>   COUNT(*)
> ----------
>          1
>
> ...but we had a problem 2 weeks ago where the comparison only worked when I
> put in the trim.
>
> ?????????
>
>  1  SELECT count(*)
>  2      FROM global.client_dim a
>  3*     WHERE TRIM(sys_context('userenv','session_user'))
> =TRIM(a.REPORTS_LOGIN)
> SQL> /
>
>   COUNT(*)
> ----------
>          0
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: Chris Stephens
>   INET: ChrisStephens@affina.com
>
> 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: ListGuru@fatcity.com (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).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Daniel Fink
  INET: Daniel.Fink@Sun.COM

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: ListGuru@fatcity.com (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).

