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.

Altering a Queue Table<br />

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

<br />

Types Reference, DBMS_AQADM.ALTER_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,alterQueue<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): Altering a Queue Table on page 9-15<br />

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

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

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

/* Altering the table to change the primary, secondary instances for queue owner<br />

(only applies to Real Application Clusters environments). The primary instance<br />

is the instance number of the primary owner of the queue table. The secondary<br />

instance is the instance number of the secondary owner of the queue table. */<br />

EXECUTE dbms_aqadm.alter_queue_table (<br />

Queue_table => ’aq.ObjMsgs_qtab’,<br />

Primary_instance => 3,<br />

Secondary_instance => 2);<br />

/* Altering the table to change the comment for a queue table: */<br />

EXECUTE dbms_aqadm.alter_queue_table (<br />

Queue_table => ’aq.ObjMsgs_qtab’,<br />

Comment => ’revised usage for queue table’);<br />

/* Altering the table to change the comment for a queue table and use<br />

nonrepudiation: */<br />

EXECUTE dbms_aqadm.alter_queue_table (<br />

Queue_table => ’aq.ObjMsgs_qtab’,<br />

Comment => ’revised usage for queue table’,<br />

Java (JDBC): Altering a Queue Table<br />

/* Alter a queue table */<br />

public static void example(AQSession aq_sess) throws AQException<br />

{<br />

AQQueueTableProperty qtable_prop;<br />

Administrative Interface 9-15

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

Saved successfully!

Ooh no, something went wrong!