My Oracle Support Banner

Simple OCI Sample to Illustrate OCIAQEnq and OCIAQDeq (Doc ID 1327133.1)

Last updated on JUNE 27, 2023

Applies to:

Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Cloud Service - Version N/A and later
Oracle Database - Enterprise Edition - Version and later
Oracle Database Cloud Schema Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Information in this document applies to any platform.


Currently Oracle provides the following OCI/AQ samples which can be found in the ORACLE_HOME/rdbms/demo directory.

The above samples references a user defined object when working with AQ. 

The sample provided in this Note is very basic and uses the default type of OCIRaw. (No user defined type is used.) The number of lines in this sample is about half the size of the samples listed above. which should make it easier to follow. 

This Note will create a new user, setup an AQ queue then Enqueue and Dequeue a message using the OCI sample provided.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document
 Sample Code 
 Sample Output

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.