Received: (qmail 19710 invoked from network); 20 Oct 2009 11:11:59 -0500
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by static-ip-85-25-126-90.inaddr.intergenia.de with SMTP; 20 Oct 2009 11:11:27 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 8EEE9CB4A54;
 Tue, 20 Oct 2009 12:11:17 -0400 (EDT)
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id lM-RmuPFApd0; Tue, 20 Oct 2009 12:11:17 -0400 (EDT)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id D776ACB4A5B;
 Tue, 20 Oct 2009 12:10:38 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Tue, 20 Oct 2009 12:09:57 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])	by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 49EF4CB489A	for <oracle-l@freelists.org>; Tue, 20 Oct 2009 12:09:57 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])	by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)	with ESMTP id McnaQ5y8AC1c for <oracle-l@freelists.org>;	Tue, 20 Oct 2009 12:09:57 -0400 (EDT)
Received: from mail-fx0-f211.google.com (mail-fx0-f211.google.com [209.85.220.211])	by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 5F90DCB3EBD	for <oracle-l@freelists.org>; Tue, 20 Oct 2009 12:09:56 -0400 (EDT)
Received: by fxm7 with SMTP id 7so6254515fxm.34        for <oracle-l@freelists.org>; Tue, 20 Oct 2009 09:09:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com; s=gamma;        h=domainkey-signature:received:received:from:to:references         :in-reply-to:subject:date:message-id:mime-version:content-type         :x-mailer:thread-index:content-language;        bh=0OHMgY5L7k9nuKsTAhEsrU75l5Qi7Meh4q6lw88EorQ=;        b=E3W4Q4qetOqJxSgTgaPp8bCoE6mSiLhOROdoFfHe/dPjAQCnSzYC++wq+A6ofV5VWa         +8yIvgldiQVFIBp4JqOTGNwmidFypMqANpu9S7ub44WrVZI/UJyw6eaO/9EOdS1v3tP8         4P7uKClCJCKuSxP6Ccm+JecYBNanbSerAnJlg=
DomainKey-Signature: a=rsa-sha1; c=nofws;        d=gmail.com; s=gamma;        h=from:to:references:in-reply-to:subject:date:message-id:mime-version         :content-type:x-mailer:thread-index:content-language;        b=vu5BSbk0OnbJgQZDaDoZ2njuznaZbLYmFAyKBcVNyYcLUj0YqmjRZoSY1nvY5ItUkK         JZiAiuXQoNlq4izqgNaKqfirpaUwigLOIKdaKU0yJAK6XuQElP5rd3uXKPcZ6uAEyqrs         j4QYa2IUah2Papp7kJSMEpyPKzQaakacuryhc=
Received: by 10.204.160.90 with SMTP id m26mr6642043bkx.63.1256054994542;        Tue, 20 Oct 2009 09:09:54 -0700 (PDT)
Received: from KenPC (211.sub-75-237-8.myvzw.com [75.237.8.211])        by mx.google.com with ESMTPS id l19sm158170fgb.16.2009.10.20.09.09.52        (version=SSLv3 cipher=RC4-MD5);        Tue, 20 Oct 2009 09:09:53 -0700 (PDT)
From: "Kenneth Naim" <kennaim@gmail.com>
To: <cemail_219@hotmail.com>,	<oracle-l@freelists.org>
References: <BLU147-W7E72EA6BCDFEBFB30033BA5C00@phx.gbl>
In-Reply-To: <BLU147-W7E72EA6BCDFEBFB30033BA5C00@phx.gbl>
Subject: RE: VPD with column masking
Date: Tue, 20 Oct 2009 12:09:49 -0400
Message-ID: <01e901ca519f$c1e4fce0$45aef6a0$@com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_01EA_01CA517E.3AD35CE0"
Content-Language: en-us
X-archive-position: 21772
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: kennaim@gmail.com
Precedence: normal
Reply-to: kennaim@gmail.com
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:steve.adams@ixora.com.au>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
------=_NextPart_000_01EA_01CA517E.3AD35CE0
Content-Type: text/plain; 
 charset="us-ascii"
Content-Transfer-Encoding: 7bit

Yes it can be done. The function will be run by every user selecting from
the table, so execute on the function should be granted to public. Within
the function you can check for a list of hard coded users, or have it lookup
the data in a table (which should be protected against changes using fga) or
you can use a db role that can be granted to users, and check
dba/all_role_privs.

 

Ken

 

 

 

From: oracle-l-bounce@freelists.org [mailto:oracle-l-bounce@freelists.org]
On Behalf Of J. Dex
Sent: Tuesday, October 20, 2009 11:10 AM
To: oracle-l@freelists.org
Subject: VPD with column masking

 

Using VPD with column masking, is it possible to set up a function/policy so
it only applies to a small percentage of the users in the database?   
 
I have a main schema with all the tables under that schema.  I want a few of
the users (not everyone) to only be able to look at some of the data that
resides in those tables under that main schema.   Is it possible to apply a
function and policy to work that way?   What is the best way to do that?

  _____  

Hotmail: Free, trusted and rich email service. Get it
<http://clk.atdmt.com/GBL/go/171222984/direct/01/>  now.


------=_NextPart_000_01EA_01CA517E.3AD35CE0
Content-Type: text/html; 
 charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Verdana;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Yes it can be done. The function will be run by every =
user
selecting from the table, so execute on the function should be granted =
to
public. Within the function you can check for a list of hard coded =
users, or
have it lookup the data in a table (which should be protected against =
changes
using fga) or you can use a db role that can be granted to users, and =
check dba/all_role_privs.<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Ken<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt =
0in 0in 0in'>

<p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span>=
</b><span
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
oracle-l-bounce@freelists.org [mailto:oracle-l-bounce@freelists.org] =
<b>On
Behalf Of </b>J. Dex<br>
<b>Sent:</b> Tuesday, October 20, 2009 11:10 AM<br>
<b>To:</b> oracle-l@freelists.org<br>
<b>Subject:</b> VPD with column masking<o:p></o:p></span></p>

</div>

</div>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><span =
style=3D'font-size:10.0pt;
font-family:"Verdana","sans-serif"'>Using VPD with column masking, is it
possible to set up a function/policy so it only applies to a small =
percentage
of the users in the database?&nbsp;&nbsp; <br>
&nbsp;<br>
I have a main schema with all the tables under that schema.&nbsp; I want =
a few
of the users (not everyone) to only be able to look at some of the data =
that
resides in those tables under that main schema.&nbsp;&nbsp; Is it =
possible to
apply a function and policy to work that way?&nbsp;&nbsp; What is the =
best way
to do that?<o:p></o:p></span></p>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><span
style=3D'font-size:10.0pt;font-family:"Verdana","sans-serif"'>

<hr size=3D2 width=3D"100%" align=3Dcenter>

</span></div>

<p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Verdana","sans-serif"'>Hotmail:
Free, trusted and rich email service. <a
href=3D"http://clk.atdmt.com/GBL/go/171222984/direct/01/" =
target=3D"_new">Get it
now.</a><o:p></o:p></span></p>

</div>

</body>

</html>

------=_NextPart_000_01EA_01CA517E.3AD35CE0--

--
http://www.freelists.org/webpage/oracle-l


