Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 E-mail Us
 Oracle Articles
New Oracle Articles

 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog

 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Oracle Support

 SQL Tuning

 Oracle UNIX
 Oracle Linux
 Remote s
 Remote plans
 Application Server

 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S


 Consulting Staff
 Consulting Prices
 Help Wanted!


 Oracle Posters
 Oracle Books

 Oracle Scripts

Don Burleson Blog 







Oracle Advanced Queuing tips

Oracle Database Tips by Donald BurlesonJune 15, 2015

Advanced Queuing (AQ) is Oracle's implementation of a messaging system which can be used as a replacement for the dbms_pipe package and other bespoke solutions.  The basic unit of the Oracle Advanced Queuing messaging system is a message with the most important element of the message being its contents, or payload. 

The payload of the advanced queuing message can be as simple or complicated as desired.  In this case, the only concern is that the message has been sent.  The particular contents are not important at this time, so the message is extremely simple.

Administration of queues within Oracle Advanced Queuing is done using the dbms_aqadm package and requires the aq_administrator_role to be granted to the administrator.  Alternatively, all administration can be performed by a privileged user such as SYS or SYSTEM.  With the payload object defined, the queue table is created using the create_queue_table procedure.

Once the queue table has been created, the individual queues are created and started using the create_queue and start_queue procedures respectively.  A single queue table can hold many queues as long as each queue uses the same type for its payload.

Messages are queued and de-queued within Oracle Advanced Queuing using the dbms_aq package.  Access to this package can be granted using the aq_user_role role. However, access to it from a stored procedure is achieved by using the job_chain_aq_setup.sql script, which grants the privilege on this object directly to the test user.

See these related notes on Oracle advanced Queuing:



Oracle Training at Sea
oracle dba poster

Follow us on Twitter 
Oracle performance tuning software 
Oracle Linux poster


Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.