Search notes:

DBMS_AQADM: GRANT_SYSTEM_PRIVILEGE

dbms_aqadm.grant_system_privilege grants system privileges related to advanced queuing.
create user aq_priv_tst_usr identified by pw;
begin
--                                    privilege      grantee           admin option
--                                    ----------- ,  --------------- , ------------
   dbms_aqadm.grant_system_privilege('ENQUEUE_ANY', 'AQ_PRIV_TST_USR', FALSE       );
   dbms_aqadm.grant_system_privilege('DEQUEUE_ANY', 'AQ_PRIV_TST_USR', FALSE       );
   dbms_aqadm.grant_system_privilege('MANAGE_ANY' , 'AQ_PRIV_TST_USR', TRUE        );
end;
/
select privilege, admin_option from dba_sys_privs  where grantee = 'AQ_PRIV_TST_USR';
--
-- PRIVILEGE                                ADM
-- ---------------------------------------- ---
-- DEQUEUE ANY QUEUE                        NO 
-- ENQUEUE ANY QUEUE                        NO 
-- MANAGE ANY QUEUE                         YES
The following block throws ORA-24066: invalid privilege specified:
begin
--                                    privilege      grantee           admin option
--                                    ----------- ,  --------------- , ------------
   dbms_aqadm.grant_system_privilege('XYZ'        , 'AQ_PRIV_TST_USR', FALSE       );
end;
/

See also

dbms_aqadm

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759612608, '216.73.216.149', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/installed/packages/dbms/aqadm/api/privilege/system(67): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78