Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error in procedure

970843Dec 26 2012 — edited Dec 27 2012
Hi,

Below is my procedure to enqueue data in a queue, while running the procedure i am getting compilation errors, i cant find where i went wrong.please help me with solution.

CREATE OR REPLACE PROCEDURE p_enqueue(msg IN VARCHAR2)
AS
PRAGMA AUTONOMOUS_TRANSACTION;
enqueue_options dbms_aq.enqueue_options_t;
message_properties dbms_aq.message_properties_t;
message_handle RAW(16);
BEGIN
dbms_aq.enqueue( queue_name => 'example_queue',
enqueue_options => enqueue_options,
message_properties => message_properties,
payload => message_type(msg),
msgid => message_handle);
COMMIT;
END;





ERRORS:


PLS-00201: identifier 'DBMS_AQ' must be declared

PLS-00320: the declaration of the type of this expression is incomplete or malformed
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 24 2013
Added on Dec 26 2012
4 comments
840 views