Created
December 17, 2020 20:27
-
-
Save danielkec/7c5822b83aecb269fb7ecb59c7bf8b5c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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