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

Home -> Community -> Mailing Lists -> Oracle-L -> AW: Privileges and PL/SQL code

AW: Privileges and PL/SQL code

From: Stefan Jahnke <Stefan.Jahnke_at_bov.de>
Date: Mon, 14 Jul 2003 14:01:05 +0200
Message-Id: <25920.337660@fatcity.com>


This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible.

------_=_NextPart_001_01C349FF.9A569700
Content-Type: text/plain;

        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

That's what I was afraid of 8-{ ... oh well. Since we have several developer's working on local copies of the code = in
schemas B, C, etc.,
I guess I have to grant privileges to all schemas. =20
Thanks for the quick response.
Stefan

Stefan Jahnke=20
Consultant=20
BOV Aktiengesellschaft=20
Tel.: +49 201/45 13-289=20
mailto:stefan.jahnke_at_nospam.bov.de <mailto:stefan.jahnke_at_nospam.bov.de> = =20
http://www.bov.de <http://www.bov.de/> =20 Abonnieren Sie unseren Newsletter: http://www.bov.de/enews
<http://www.bov.de/enews> =20

Kosten senken - strategische IT-Ziele erreichen! BOV Microsoft Day am 24.07.03 in Essen. Anmeldung unter http://www.bov.de/microsoft-day
<http://www.bov.de/microsoft-day> oder mailto:andrea.palluck@bov.de
<mailto:andrea.palluck_at_bov.de> .

Wie Sie wissen, koennen ueber das Internet versandte E-Mails leicht = unter
fremden Namen erstellt oder manipuliert werden. Aus diesem Grunde = bitten wir
um Verstaendnis dafuer, dass wir zu Ihrem und unserem Schutz die = rechtliche
Verbindlichkeit der vorstehenden Erklaerungen und Aeusserungen ausschliessen.

As you are probably aware, e-mails sent via the Internet can easily be copied or manipulated by third parties. For this reason we would ask = for
your understanding that, for your own protection and ours, we must = decline
all legal responsibility for the validity of the statements and = comments
given above.

-----Urspr=FCngliche Nachricht-----
Von: Jamadagni, Rajendra [mailto:Rajendra.Jamadagni_at_espn.com] Gesendet: Montag, 14. Juli 2003 14:49
An: Multiple recipients of list ORACLE-L Betreff: RE: Privileges and PL/SQL code

If you don't want to do that, create your pl/sql code under schema A = and
grant execute on those to B and C.=20

Sorry ... that's the only way to go ...=20

Raj=20

------------------------------------------------------------------------=


----=20
Rajendra dot Jamadagni at nospamespn dot com=20 All Views expressed in this email are strictly personal.=20 QOTD: Any clod can have facts, having an opinion is an art !=20

-----Original Message-----=20
From: Stefan Jahnke [ mailto:Stefan.Jahnke_at_bov.de
<mailto:Stefan.Jahnke_at_bov.de> ]=20

Sent: Monday, July 14, 2003 8:31 AM=20
To: Multiple recipients of list ORACLE-L=20 Subject: Privileges and PL/SQL code=20

Hi list=20

I was wondering if there is any way to get the following to work:=20

User A owns all tables, users B,C own PL/SQL code to access A's tables. =

To work with A's tables from user B and C, I would like to create a = role to=20
contain all the object privileges and grant these to B and C.=20

Didn't use to work, since PL/SQL is not particularly interested in = grants=20
received through roles.=20
But I don't really want to grant all privileges directly to B and C = (and=20
many more users).=20

Is there a way in 9i that works better ? Any improvements I missed out = on ?=20

Thanks in advance,=20
Stefan=20

--=20
Please see the official ORACLE-L FAQ: http://www.orafaq.net
<http://www.orafaq.net> =20

--=20
Author: Stefan Jahnke=20
  INET: Stefan.Jahnke_at_bov.de=20

Fat City Network Services -- 858-538-5051 http://www.fatcity.com
<http://www.fatcity.com> =20

San Diego, California -- Mailing list and web hosting services=20

---------------------------------------------------------------------=20
To REMOVE yourself from this mailing list, send an E-Mail message=20 to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in=20 the message BODY, include a line containing: UNSUB ORACLE-L=20 (or the name of mailing list you want to be removed from). You may=20 also send the HELP command for other information (like subscribing).=20

=20

------_=_NextPart_001_01C349FF.9A569700
Content-Type: text/html;

        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<TITLE>RE: Privileges and PL/SQL code</TITLE>

<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D796165811-14072003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>That's&nbsp; what I was afraid of&nbsp; 8-{ ... oh=20 well.</FONT></SPAN></DIV>
<DIV><SPAN class=3D796165811-14072003><FONT face=3DArial =
color=3D#0000ff size=3D2>Since=20
we have several developer's working on local copies of the code in = schemas B, C,=20
etc.,</FONT></SPAN></DIV>
<DIV><SPAN class=3D796165811-14072003><FONT face=3DArial =
color=3D#0000ff size=3D2>I=20
guess I have to grant privileges to all schemas.</FONT></SPAN></DIV>
<DIV><SPAN class=3D796165811-14072003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D796165811-14072003><FONT face=3DArial =
color=3D#0000ff size=3D2>Thanks=20
for the quick response.</FONT></SPAN></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D796165811-14072003>Stefan</SPAN></FONT></DIV>
<P><FONT face=3D"Century Gothic" size=3D2>Stefan Jahnke</FONT> =
<BR><FONT=20

face=3D"Century Gothic" size=3D2>Consultant</FONT> <BR><FONT =
face=3D"Century Gothic"=20
size=3D2>BOV Aktiengesellschaft</FONT> <BR><FONT face=3D"Century =
Gothic"=20
size=3D2>Tel.: +49 201/45 13-289</FONT> <BR><FONT face=3D"Century = Gothic" size=3D2><A=20
href=3D"mailto:stefan.jahnke_at_nospam.bov.de">mailto:stefan.jahnke_at_nospam.= bov.de</A></FONT>=20
<BR><FONT face=3D"Century Gothic" size=3D2><A target=3D_blank=20
href=3D"http://www.bov.de/">http://www.bov.de</A></FONT> <BR><FONT=20 face=3D"Century Gothic" size=3D2>Abonnieren Sie unseren Newsletter: <A = target=3D_blank=20
href=3D"http://www.bov.de/enews">http://www.bov.de/enews</A></FONT> =
</P>
<P><B><FONT face=3D"Century Gothic" size=3D2>Kosten senken - =
strategische IT-Ziele=20
erreichen! BOV Microsoft Day am 24.07.03 in Essen. Anmeldung unter <A=20 target=3D_blank=20
href=3D"http://www.bov.de/microsoft-day">http://www.bov.de/microsoft-day=
</A> oder=20
<A=20

href=3D"mailto:andrea.palluck_at_bov.de">mailto:andrea.palluck_at_bov.de</A>.<= /FONT></B></P>
<P><FONT face=3D"Century Gothic" size=3D1>Wie Sie wissen, koennen ueber =
das Internet=20
versandte E-Mails leicht unter fremden Namen erstellt oder manipuliert = werden.=20
Aus diesem Grunde bitten wir um Verstaendnis dafuer, dass wir zu Ihrem = und=20
unserem Schutz die rechtliche Verbindlichkeit der vorstehenden = Erklaerungen und=20
Aeusserungen ausschliessen.</FONT></P>
<P><FONT face=3D"Century Gothic" size=3D1>As you are probably aware, =
e-mails sent=20
via the Internet can easily be copied or manipulated by third parties. = For this=20
reason we would ask for your understanding that, for your own = protection and=20
ours, we must decline all legal responsibility for the validity of the=20 statements and comments given above.</FONT></P>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT = face=3DTahoma=20
  size=3D2>-----Urspr=FCngliche Nachricht-----<BR><B>Von:</B> = Jamadagni, Rajendra=20
  [mailto:Rajendra.Jamadagni_at_espn.com]<BR><B>Gesendet:</B> Montag, 14. = Juli 2003=20
  14:49<BR><B>An:</B> Multiple recipients of list = ORACLE-L<BR><B>Betreff:</B>=20
  RE: Privileges and PL/SQL code<BR><BR></FONT></DIV>   <P><FONT size=3D2>If you don't want to do that, create your pl/sql = code under=20
  schema A and grant execute on those to B and C.</FONT> </P>   <P><FONT size=3D2>Sorry ... that's the only way to go ...</FONT> </P>   <P><FONT size=3D2>Raj</FONT> <BR><FONT=20   =
size=3D2>---------------------------------------------------------------=
-----------------</FONT>=20

  <BR><FONT size=3D2>Rajendra dot Jamadagni at nospamespn dot = com</FONT> <BR><FONT=20
  size=3D2>All Views expressed in this email are strictly = personal.</FONT>=20
  <BR><FONT size=3D2>QOTD: Any clod can have facts, having an opinion = is an art=20
  !</FONT> </P><BR>
  <P><FONT size=3D2>-----Original Message-----</FONT> <BR><FONT = size=3D2>From:=20
  Stefan Jahnke [<A=20
  =
href=3D"mailto:Stefan.Jahnke_at_bov.de">mailto:Stefan.Jahnke_at_bov.de</A>]</F= ONT>=20
  <BR><FONT size=3D2>Sent: Monday, July 14, 2003 8:31 AM</FONT> =
<BR><FONT=20

  size=3D2>To: Multiple recipients of list ORACLE-L</FONT> <BR><FONT=20   size=3D2>Subject: Privileges and PL/SQL code</FONT> </P><BR>   <P><FONT size=3D2>Hi list</FONT> </P>
  <P><FONT size=3D2>I was wondering if there is any way to get the = following to=20
  work:</FONT> </P>
  <P><FONT size=3D2>User A owns all tables, users B,C own PL/SQL code = to access=20
  A's tables.</FONT> <BR><FONT size=3D2>To work with A's tables from = user B and C,=20
  I would like to create a role to </FONT><BR><FONT size=3D2>contain = all the=20
  object privileges and grant these to B and C. </FONT></P>   <P><FONT size=3D2>Didn't use to work, since PL/SQL is not = particularly=20
  interested in grants</FONT> <BR><FONT size=3D2>received through = roles.</FONT>=20
  <BR><FONT size=3D2>But I don't really want to grant all privileges = directly to B=20
  and C (and</FONT> <BR><FONT size=3D2>many more users).</FONT> </P>   <P><FONT size=3D2>Is there a way in 9i that works better ? Any = improvements I=20
  missed out on ?</FONT> </P>
  <P><FONT size=3D2>Thanks in advance,</FONT> <BR><FONT = size=3D2>Stefan</FONT>=20
  </P><BR><BR>
  <P><FONT size=3D2></FONT> <BR><FONT size=3D2>-- </FONT><BR><FONT = size=3D2>Please see=20
  the official ORACLE-L FAQ: <A target=3D_blank=20   href=3D"http://www.orafaq.net">http://www.orafaq.net</A></FONT> =
<BR><FONT=20

  size=3D2>-- </FONT><BR><FONT size=3D2>Author: Stefan Jahnke</FONT> =
<BR><FONT=20

  size=3D2>&nbsp; INET: Stefan.Jahnke_at_bov.de</FONT> </P>   <P><FONT size=3D2>Fat City Network Services&nbsp;&nbsp;&nbsp; -- = 858-538-5051 <A=20
  target=3D_blank =
href=3D"http://www.fatcity.com">http://www.fatcity.com</A></FONT>=20   <BR><FONT size=3D2>San Diego,=20
  California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Mailing list = and web=20
  hosting services</FONT> <BR><FONT=20
  =
size=3D2>---------------------------------------------------------------=
------</FONT>=20
  <BR><FONT size=3D2>To REMOVE yourself from this mailing list, send an = E-Mail=20
  message</FONT> <BR><FONT size=3D2>to: ListGuru_at_fatcity.com (note = EXACT spelling=20
  of 'ListGuru') and in</FONT> <BR><FONT size=3D2>the message BODY, = include a line=20
  containing: UNSUB ORACLE-L</FONT> <BR><FONT size=3D2>(or the name of = mailing=20
  list you want to be removed from).&nbsp; You may</FONT> <BR><FONT = Received on Mon Jul 14 2003 - 07:01:05 CDT

Original text of this message

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