Skip to content

Instantly share code, notes, and snippets.

@danielkec
Created December 17, 2020 20:27
Show Gist options
  • Select an option

  • Save danielkec/7c5822b83aecb269fb7ecb59c7bf8b5c to your computer and use it in GitHub Desktop.

Select an option

Save danielkec/7c5822b83aecb269fb7ecb59c7bf8b5c to your computer and use it in GitHub Desktop.
DECLARE
enqueue_options DBMS_AQ.ENQUEUE_OPTIONS_T;
message_properties DBMS_AQ.MESSAGE_PROPERTIES_T;
message_handle RAW(16);
msg SYS.AQ$_JMS_TEXT_MESSAGE;
BEGIN
msg := SYS.AQ$_JMS_TEXT_MESSAGE.construct;
msg.set_text('HELLO PLSQL WORLD ! ' || TO_CHAR(sysdate, 'DD-MM-YY HH24:MI:SS'));
DBMS_AQ.ENQUEUE(
queue_name => 'FRANK.EXAMPLE_QUEUE_1',
enqueue_options => enqueue_options,
message_properties => message_properties,
payload => msg,
msgid => message_handle);
COMMIT;
END;
/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment