create or replace type AQSEC.CT_MESSAGE_TYPE as OBJECT (
PAYLOAD
)
/
begin
DBMS_AQADM.CREATE_QUEUE_TABLE (queue_table => '"Username"."HR_Q"',
queue_payload_type => 'Username.CT_MESSAGE_TYPE',
storage_clause => '',
sort_list => 'enq_time',
multiple_consumers => false,
message_grouping => DBMS_AQADM.TRANSACTIONAL,
comment => '',compatible => '10.0');
end;
/
begin DBMS_AQADM.CREATE_QUEUE (queue_name => '"HR_Q"',
queue_table => '"Username"."HR_Q"',
queue_type => DBMS_AQADM.NORMAL_QUEUE,
max_retries => 5,
retry_delay => 0,
retention_time => 0,
comment => '');
end;
/
begin DBMS_AQADM.START_QUEUE (queue_name => '"Username"."HR_Q"',enqueue => true, dequeue => true);
end;
/
Article By:
Prasanna Jayaraman
Please post your Ideas and Comments
No comments :
Post a Comment