09.12.2012 Views

Advanced Queuing - Oracle

Advanced Queuing - Oracle

Advanced Queuing - Oracle

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Starting a Queue<br />

Syntax<br />

See Chapter 3, "AQ Programmatic Environments" for a list of available functions in<br />

each programmatic environment. Use the following syntax references for each<br />

programmatic environment:<br />

PL/SQL (DBMS_AQADM Package): <strong>Oracle</strong>9i Supplied PL/SQL Packages and<br />

<br />

Types Reference, DBMS_AQADM.START_QUEUE procedure<br />

Visual Basic (OO4O): There is no applicable syntax reference for this use case<br />

Java (JDBC): <strong>Oracle</strong>9i Supplied Java Packages Reference oracle.AQ,<br />

<br />

AQQueueAdmin.start<br />

Examples<br />

See Chapter 3, "AQ Programmatic Environments" for a list of available functions in<br />

each programmatic environment. Examples are provided in the following<br />

programmatic environments:<br />

PL/SQL (DBMS_AQADM Package): Starting a Queue on page 9-43<br />

VB (OO4O): Example not provided.<br />

Java (JDBC): Starting a Queue on page 9-44<br />

PL/SQL (DBMS_AQADM Package): Starting a Queue<br />

/* Start a queue and enable both enqueue and dequeue: */<br />

EXECUTE dbms_aqadm.start_queue (<br />

queue_name => ’Msg_queue’);<br />

/* Start a previously stopped queue for dequeue only */<br />

EXECUTE dbms_aqadm.start_queue (<br />

queue_name => ’aq.msg_queue’,<br />

dequeue => TRUE,<br />

enqueue => FALSE);<br />

Administrative Interface 9-43

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!