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.

Propagation Features<br />

Java (JDBC): Example Code<br />

No example is provided with this release.<br />

Enhanced Propagation Scheduling Capabilities<br />

Detailed information about the schedules can be obtained from the catalog views<br />

defined for propagation. Information about active schedules—such as the name of<br />

the background process handling that schedule, the SID (session, serial number) for<br />

the session handling the propagation and the <strong>Oracle</strong> instance handling a schedule<br />

(relevant if Real Application Clusters are being used)—can be obtained from the<br />

catalog views. The same catalog views also provide information about the previous<br />

successful execution of a schedule (last successful propagation of message) and the<br />

next execution of the schedule.<br />

For each schedule, detailed propagation statistics are maintained:<br />

The total number of messages propagated in a schedule<br />

<br />

Total number of bytes propagated in a schedule<br />

Maximum number of messages propagated in a window<br />

Maximum number of bytes propagated in a window<br />

Average number of messages propagated in a window<br />

Average size of propagated messages<br />

Average time to propagated a message<br />

<br />

This includes the total number of messages propagated in a schedule, total number<br />

of bytes propagated in a schedule, maximum number of messages propagated in a<br />

window, maximum number of bytes propagated in a window, average number of<br />

messages propagated in a window, average size of propagated messages and the<br />

average time to propagated a message. These statistics have been designed to<br />

provide useful information to the queue administrators for tuning the schedules<br />

such that maximum efficiency can be achieved.<br />

Propagation has built-in support for handling failures and reporting errors. For<br />

example, if the specified database link is invalid, the remote database is unavailable,<br />

or if the remote queue is not enabled for enqueuing, then the appropriate error<br />

message is reported. Propagation uses an exponential backoff scheme for retrying<br />

propagation from a schedule that encountered a failure.<br />

If a schedule continuously encounters failures, the first retry happens after 30<br />

seconds, the second after 60 seconds, the third after 120 seconds and so forth. If the<br />

8-114 <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!