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.

Stopping a Queue<br />

Usage Notes<br />

By default, this call disables both ENQUEUEs or DEQUEUEs. A queue cannot be<br />

stopped if there are outstanding transactions against the queue. This operation<br />

takes effect when the call completes and does not have any transactional<br />

characteristics.<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.STOP_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.stop<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): Stopping a Queue on page 9-46<br />

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

Java (JDBC): Stopping a Queue on page 9-47<br />

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

/* Stop the queue: */<br />

EXECUTE dbms_aqadm.stop_queue (<br />

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

9-46 <strong>Oracle</strong>9i Application Developer’s Guide - <strong>Advanced</strong> <strong>Queuing</strong>

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

Saved successfully!

Ooh no, something went wrong!