The DBMS_AQ package provides an interface to the messaging tasks of Oracle AQ. To use these procedures, you must have been granted the new role, AQ_USER_ROLE
The DBMS_AQADM package provides an interface to the administrative tasks of Oracle AQ. To use these procedures, a DBMS_AQADM user must have been granted the new role, AQ_ADMINISTRATOR_ROLE. You can verify the results of executing the DBMS_ AQADM package by querying the new Oracle AQ data dictionary views, USER_QUEUE_ TABLES and USER_QUEUES (DBA levels of these views are also available).
除此之外,还要设置一下用户的权利,在SQL Plus里面执行如下:
GRANT EXECUTE ON DBMS_AQADM TO user;
GRANT EXECUTE ON DBMS_AQ TO user;
GRANT EXECUTE ON DBMS_AQ TO user;