 |
|
Oracle Tips by Burleson |
Oracle 10g Advance Queue Enhancements
Next is an example showing the array dequeue with
a PL/SQL block:
DECLARE
deq_cnt
PLS_INTEGER;
deq_opt
DBMS_AQ.dequeue_options_t;
mesg_props
DBMS_AQ.message_properties_array_t;
parray
OE.addr_nest_tab_typ;
msgidarray
DBMS_AQ.msgid_array_t;
BEGIN
deq_cnt :=
DBMS_AQ.DEQUEUE_ARRAY (
queue_name
=> 'IX.ORDERS_QUEUE',
dequeue_options => deq_opt,
array_size
=> 20,
message_properties_array => mesg_props,
payload_array
=> parray,
msgid_array
=> msgidarray);
-- Process
parray here ---
END;
In the above example, the message properties
are returned into an array of type
dbms_aq.message_properties_array_t.
Get the complete Oracle10g story:
To get the code instantly, click here:
Need an Oracle Mentor?
BEI is now offering personal mentors for Oracle DBAs where you can have an
Oracle expert right at your fingertips, anytime day or night. We work with
hundreds of Oracle databases every year, so we know exactly how to quickly
assist you with any Oracle question.
Why risk an unplanned outage? You can now get telephone access to Don
Burleson or any of his Oracle Certified DBAs with more than 20 years of
full-time IT experience. Click here for details:
http://www.dba-oracle.com/service_oracle_backup.htm

|