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

Home -> Community -> Usenet -> c.d.o.server -> Re: Creating Tables

Re: Creating Tables

From: Andy Hassall <andy_at_andyh.org>
Date: Sun, 05 May 2002 15:19:51 +0100
Message-ID: <8pfadu038otcm8900784e94q8pqb4ms5cr@4ax.com>


On Sun, 05 May 2002 13:19:14 GMT, marc_at_marcblum.de (Marc Blum) wrote:

>The problem:
>Everywhere in packages and triggers and SELECTs and bla ... we need to
>know the OS-user, which differs from the ORACLE-user. (In that
>context, it's not applicable to create an individual ORACLE-User for
>every person working with the application.)
>
>The solution:
>A packaged function, which returns the OS-User. The package is owned
>by SYS, the package gets GRANT EXECUTE TO PUBLIC and a PUBLIC SYNONYM.
>This one is the single only synonym in our whole application suite.
>
>The question:
>Am I evil? Do I have to go to church and pray to god to forgive me?
>Have I missed a new function in 8.x.x?

 sYS_CONTEXT('USERENV', 'OS_USER') ?

http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/server.817/a85397/function.htm#88362

-- 
Andy Hassall (andy@andyh.org) icq(5747695) http://www.andyh.org
http://www.andyh.uklinux.net/space | disk usage analysis tool
Received on Sun May 05 2002 - 09:19:51 CDT

Original text of this message

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