Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: quick pl/sql question
Does it work if executed by the owner of the package?
Igor Neyman, OCP DBA
ineyman_at_perceptron.com
-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of David Sharples
Sent: Thursday, April 22, 2004 4:49 AM
To: oracle-l_at_freelists.org
Subject: FW: quick pl/sql question
OK,
Doesn't quite work, the owner of the package is not the same person who is executing the package.
Anyone know how to get it so any user can run it. Again it was failing on the dbms_resource_manager part - That user does have execute permission on those procedures.
Should it work?
From: David Sharples
Sent: 21 April 2004 20:37
To: oracle-l_at_freelists.org
Subject: RE: quick pl/sql question
Worked like a dream, thanks!
From: oracle-l-bounce_at_freelists.org on behalf of Freeman, Donald
Sent: Wed 21/04/2004 18:17
To: oracle-l_at_freelists.org
Subject: RE: quick pl/sql question
It's not the execute you are having problems with. The access you have =
to the underlying objects is granted to you through a role. I don't know
=
if I'm describing this exactly right but roles aren't referred within =
PL/SQL so you have to have direct privs on the objects. =20
Or,You can add "AUTHID CURRENT_USER" like so,
CREATE OR REPLACE PROCEDUREdave.test (whatever varchar2)
AUTHID CURRENT_USER
AS.....
That should do the trick...
> -----Original Message-----
> From: oracle-l-bounce_at_freelists.org
> [mailto:oracle-l-bounce_at_freelists.org]On Behalf Of David Sharples
> Sent: Wednesday, April 21, 2004 12:17 PM
> To: oracle-l_at_freelists.org
> Subject: RE: quick pl/sql question
>=20 >=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20 > >=20 ----------------------------------------------------------------Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html ----------------------------------------------------------------- ---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line. -- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html ----------------------------------------------------------------- ---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line. -- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Thu Apr 22 2004 - 07:50:32 CDT
![]() |
![]() |