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.

Migrating To and From 8.0<br />

<strong>Oracle</strong> 8.0-Style Queues<br />

To upgrade a 8.0-style queue table to an 8.1-style queue table or to downgrade a<br />

8.1-style queue table to an 8.0-style queue table, use DBMS_AQADM.MIGRATE_<br />

QUEUE_TABLE. Table 4–3 lists the parameters for DBMS_AQADM.MIGRATE_QUEUE_<br />

TABLE.<br />

Syntax<br />

For more information, see:<br />

"Security Required for Propagation" on page 4-5<br />

<strong>Oracle</strong>9i Database Migration<br />

DBMS_AQADM.MIGRATE_QUEUE_TABLE(<br />

queue_table IN VARCHAR2,<br />

compatible IN VARCHAR2)<br />

Table 4–3 DBMS_AQADM_MIGRATE_QUEUE_TABLE Parameters<br />

Parameter Description<br />

queue_table<br />

(IN VARCHAR2)<br />

Specifies name of the queue table that is to be migrated.<br />

compatible Set to 8.1 to upgrade an 8.0 queue table to 8.1 compatibility. Set to 8.0 to<br />

downgrade an 8.1 queue table to 8.0 compatibility.<br />

Example: Upgrading an 8.0 Queue Table to an 8.1-Compatible Queue<br />

Table<br />

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

certain examples to work:<br />

EXECUTE DBMS_AQADM.CREATE_QUEUE_TABLE (<br />

queue_table => ’qtable1’,<br />

multiple_consumers => TRUE,<br />

queue_payload_type => ’aq.message_typ’,<br />

compatible =>’8.0’);<br />

EXECUTE DBMS_AQADM.MIGRATE_QUEUE_TABLE(<br />

Managing AQ 4-15

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

Saved successfully!

Ooh no, something went wrong!