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.

Altering a Propagation Schedule<br />

Purpose<br />

To alter parameters for a propagation schedule.<br />

Usage Notes<br />

Not applicable.<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.ALTER_PROPAGATION_SCHEDULE 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 />

alterPropagationSchedule<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): Altering a Propagation Schedule on page 9-82<br />

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

PL/SQL (DBMS_AQADM): Altering a Propagation Schedule on page 9-83<br />

PL/SQL (DBMS_AQADM): Altering a Propagation Schedule<br />

Altering a Schedule from a Queue to Other Queues in the Same Database<br />

/* Alter schedule from queue aq.q1def to other queues in the same database */<br />

EXECUTE DBMS_AQADM.ALTER_PROPAGATION_SCHEDULE(<br />

Queue_name => ’aq.q1def’,<br />

Duration => ’2000’,<br />

Next_time => ’SYSDATE + 3600/86400’,<br />

Latency => ’32’);<br />

Altering a Schedule from a Queue to Other Queues in Another Database<br />

/* Alter schedule from queue aq.q1def to other queues in another database<br />

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