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.

Dropping a Queue Table<br />

Usage Notes<br />

When a queue, queue table, or subscriber is created, modified, or dropped, and if<br />

GLOBAL_TOPIC_ENABLED = TRUE, a corresponding LDAP entry is also created or<br />

dropped.<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.DROP_QUEUE_TABLE 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 />

AQQueueTable.drop<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): Dropping a Queue Table on page 9-18<br />

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

Java (JDBC): Dropping a Queue Table on page 9-19<br />

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

/* Drop the queue table (for which all queues have been previously dropped by<br />

the user) */<br />

EXECUTE dbms_aqadm.drop_queue_table (<br />

queue_table => ’aq.Objmsgs_qtab’);<br />

Caution: You may need to set up or drop data structures for<br />

certain examples to work.<br />

/* Drop the queue table and force all queues to be stopped and dropped by the<br />

system */<br />

EXECUTE dbms_aqadm.drop_queue_table (<br />

queue_table => ’aq.Objmsgs_qtab’,<br />

9-18 <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!