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: privileges on packages

RE: privileges on packages

From: Nirmal Kumar Muthu Kumaran <NIRMALK_at_qtel.com.qa>
Date: Mon, 01 Oct 2001 03:55:42 -0700
Message-ID: <F001.0039D37F.20011001035018@fatcity.com>

USER_TAB_PRIVS. Here is an example:

scott_at_ORCLSVR.QTEL.COM.QA> create or replace package my_pack is
  2   type abc_t is table of number index by binary_integer;
  3   p_abc abc_t;
  4   p_un  varchar2(20);
  5  end my_pack;
  6  /

Package created.

scott_at_ORCLSVR.QTEL.COM.QA> show user;
USER is "NIRMAL"
scott_at_ORCLSVR.QTEL.COM.QA> grant execute on my_pack to scott;

Grant succeeded.

scott_at_ORCLSVR.QTEL.COM.QA> connect scott/tiger Connected.
scott_at_ORCLSVR.QTEL.COM.QA> select * from user_tab_privs
  2  where owner='NIRMAL' and table_name='MY_PACK';

GRANTEE                        OWNER                          TABLE_NAME
------------------------------ ------------------------------ ------------------------------
GRANTOR                        PRIVILEGE                                GRA
------------------------------ ---------------------------------------- ---
SCOTT                          NIRMAL                         MY_PACK
NIRMAL                         EXECUTE                                  NO


Rgds,
Nirmal.
-----Original Message-----

From:   SUNILSHIVAPPA [SMTP:SUNILSHIVAPPA_at_infy.com]
Sent:   Monday, October 01, 2001 12:25 PM
To:     Multiple recipients of list ORACLE-L
Subject:        privileges on packages

hi,
        HOW to find out the whether a particular user has a execute permission on package or not.

Regards,
sunil s.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: SUNILSHIVAPPA

  INET: SUNILSHIVAPPA_at_infy.com
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051 San Diego, California        -- Public Internet access / Mailing Lists -------------------------------------------------------------------- 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 Mon Oct 01 2001 - 05:55:42 CDT

Original text of this message

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