There are five basic steps involved in using Oracle AQ:
Install Oracle AQ for use in your database. For this, the underlying database objects must be created and the initialization file for the instance modified.
Authorize administrative and operational privileges on queues.
Set up the message queue tables and corresponding queues.
Enqueue messages to a queue.
Dequeue messages from a queue.
In many organizations, steps 1 through 3 will be performed by a database administrator. They require specific authorization and can be a complex process, depending on the type of queues you want to create. The fourth and fifth steps will be performed from within the PL/SQL programs that you have written to take advantage of this message queuing technology.
Steps 3, 4, and 5 are explained in detail later in this chapter. For now, let’s take a look at the steps you must take to install AQ and to grant the proper privileges to Oracle accounts in order to perform AQ activities.
Oracle Corporation has established the following guidelines for use of Oracle AQ:
If you have a license to the Oracle8 Enterprise Edition with the Objects Option, then you will be able to take advantage of the full functionality of Oracle AQ.
If you have a license to the Oracle8 Enterprise Edition without the Objects option, then you will be able to use Oracle AQ with queues of type RAW only.
If you have a license to Oracle8 without the Enterprise Edition, you are not ...