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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Set Role in Trigger

Re: Set Role in Trigger

From: Tanel Poder <tanel.poder.003_at_mail.ee>
Date: Sun, 27 Jul 2003 15:09:24 -0800
Message-ID: <F001.005C7551.20030727150924@fatcity.com>


Hi!

Yep, security wise this solution was not good, Apps uses acutally dbms_application_info.set_client_info procedure (which sets client_info column i v$session). That's quite old mechanism, but yeah, one could set anything for it's value (although IIRC, Apps user had to execute it through fnd_application_info package, which had some additional checks in it).

Tanel.
----- Original Message -----
To: "Multiple recipients of list ORACLE-L" <ORACLE-L_at_fatcity.com> Sent: Monday, July 28, 2003 1:59 AM

> I am not an expert on Oracle Apps, but those "session environment
variables"
> are probably application context attributes I mentioned earlier. They can
> also be implemented by a package global variable; but there is no security
> in that; the user will be able to set the variable in anyway he wants.
Yes,
> it is better from the performance point, too.
>
> Arup Nanda
> ----- Original Message -----
> To: "Multiple recipients of list ORACLE-L" <ORACLE-L_at_fatcity.com>
> Sent: Sunday, July 27, 2003 4:19 PM
>
>
> > Hi!
> > > This is probably too kludgy or simple-minded, or non-maintainable, but
> is
> > it technically possible?
> > >
> > > 1) Create a series of views that subset
> > > the actual tables, according to the rules
> > > you've got about who the viewer is & what
> > > year(s) they've selected in the Users table.
> > >
> > > 2) Redefine the public synonyms so that they
> > > point to your views rather than the base
> > > tables.
> >
> > Oracle Apps actually works that way, that a user gets assigned an
> > organization id org_id when he logs on (not using trigger, from client
> side
> > instead) and uses views which restrict queries & dml by org_id. This is
> > based on session environment variables, I believe it's better in
> performance
> > point of view, if we would have to scan a "privileges" table during
every
> > select on any table, it could become the bottleneck...
> >
> > Tanel.
> >
> >
> > --
> > Please see the official ORACLE-L FAQ: http://www.orafaq.net
> > --
> > Author: Tanel Poder
> > INET: tanel.poder.003_at_mail.ee
> >
> > 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_at_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: Arup Nanda
> INET: orarup_at_hotmail.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_at_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: Tanel Poder
  INET: tanel.poder.003_at_mail.ee

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_at_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).
Received on Sun Jul 27 2003 - 18:09:24 CDT

Original text of this message

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