09.12.2012 Views

Advanced Queuing - Oracle

Advanced Queuing - Oracle

Advanced Queuing - Oracle

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Note: The sys.aq$_message_types table can have multiple<br />

entries for the same source queue, destination queue, and dblink,<br />

but with different transformations.<br />

Verifying a Queue Type<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.VERIFY_QUEUE_TYPES procedure<br />

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

Java (JDBC): There is no applicable syntax reference for this use case<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): Verifying a Queue Type on page 9-79<br />

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

Java (JDBC): none<br />

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

Note: You may need to set up the following data structures for<br />

certain examples to work:<br />

EXECUTE DBMS_AQADM.CREATE_QUEUE (<br />

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

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

/* Verify if the source and destination queues have the same type. The<br />

function has the side effect of inserting/updating the entry for the source<br />

and destination queues in the dictionary table AQ$_MESSAGE_TYPES */<br />

DECLARE<br />

rc BINARY_INTEGER;<br />

Administrative Interface 9-79

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

Saved successfully!

Ooh no, something went wrong!