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.

Purpose<br />

Remove a default subscriber from a queue.<br />

Removing a Subscriber<br />

Usage Notes<br />

This operation takes effect immediately and the containing transaction is<br />

committed. All references to the subscriber in existing messages are removed as<br />

part of the operation.<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.<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.REMOVE_SUBSCRIBER 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 />

removeSubscriber<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 />

Examples in the following programmatic environments are provided:<br />

PL/SQL (DBMS_AQADM): Removing Subscriber on page 9-69<br />

<br />

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

Java (JDBC): Removing a Subscriber on page 9-70<br />

PL/SQL (DBMS_AQADM): Removing Subscriber<br />

DECLARE<br />

subscriber sys.aq$_agent;<br />

BEGIN<br />

subscriber := sys.aq$_agent(’subscriber1’,’aq2.msg_queue2’, NULL);<br />

DBMS_AQADM.REMOVE_SUBSCRIBER(<br />

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

Administrative Interface 9-69

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

Saved successfully!

Ooh no, something went wrong!