Oracle8i Application Developer's Guide - Advanced Queuing Release 2 (8.1.6) Part Number A76938-01 |
|
Administrative Interface, 15 of 25
To grant privileges on a queue to users and roles. The privileges are ENQUEUE
or DEQUEUE
. Initially, only the queue table owner can use this procedure to grant privileges on the queues.
Not applicable.
See Chapter 3, "AQ Programmatic Environments" for a list of available functions in each programmatic environment. Use the following syntax references for each programmatic environment:
See Chapter 3, "AQ Programmatic Environments" for a list of available functions in each programmatic environment. Examples are provided in the following programmatic environments:
/* User grants the access right for both enqueue and dequeue rights using DBMS_AQADM.GRANT. */ EXECUTE DBMS_AQADM.GRANT_QUEUE_PRIVILEGE ( privilege => 'ALL', queue_name => 'aq.multiconsumermsg81_queue', grantee => 'Jones', grant_option => TRUE);
/* Grant enqueue and dequeue privileges on queue to user 'Jones' */ public static void example(AQSession aq_sess) throws AQException { AQQueue queue; /* Get the queue object */ queue = aq_sess.getQueue("AQ", "multiconsumermsg81_queue"); /* Enable enqueue and dequeue */ queue.grantQueuePrivilege("ALL", "Jones", true); }
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|