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 laterOracle Database Cloud Service - Version N/A and later
Oracle Database - Enterprise Edition - Version 10.2.0.5 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.
Goal
Currently Oracle provides the following OCI/AQ samples which can be found in the ORACLE_HOME/rdbms/demo directory.
- ociaqarraydeq.c
- ociaqarrayenq.c
- ociaqdemo00.c
- ociaqdemo01.c
- ociaqdemo02.c
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.
Solution
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
Goal |
Solution |
Requirements |
Configuring |
Instructions |
Sample Code |
Sample Output |