没有合适的资源?快使用搜索试试~ 我知道了~
首页Oracle-AQ Oracle-AQ
资源详情
资源评论
资源推荐

Oracle9
i
Application Developer’s Guide - Advanced Queuing
Release 2 (9.2)
March 2002
Part No. A96587-01

Oracle9i Application Developer’s Guide - Advanced Queuing, Release 2 (9.2)
Part No. A96587-01
Copyright © 1996, 2002 Oracle Corporation. All rights reserved.
Primary Authors: D.K. Bradshaw, Bhagat Nainani, Kevin MacDowell, Den Raphaely
Contributing Authors: Neerja Bhatt, Brajesh Goyal, Shelley Higgins, Rajit Kambo, Anish Karmarkar,
Krishna Kunchithapadam, Vivek Maganty, Krishnan Meiyyappan, Shengsong Ni, Wei Wang
Contributors: Sashi Chandrasekaran, Dieter Gawlick, Mohan Kamath, Goran Olsson, Hilkka Outinen,
Madhu Reddy, Mary Rhodes, Ashok Saxena, Ekrem Soylemez, Alvin To, Rahim Yaseen
Graphics Production Specialist: Valarie Moore
The Programs (which include both the software and documentation) contain proprietary information of
Oracle Corporation; they are provided under a license agreement containing restrictions on use and
disclosure and are also protected by copyright, patent and other intellectual and industrial property
laws. Reverse engineering, disassembly or decompilation of the Programs, except to the extent required
to obtain interoperability with other independently created software or as specified by law, is prohibited.
The information contained in this document is subject to change without notice. If you find any problems
in the documentation, please report them to us in writing. Oracle Corporation does not warrant that this
document is error-free. Except as may be expressly permitted in your license agreement for these
Programs, no part of these Programs may be reproduced or transmitted in any form or by any means,
electronic or mechanical, for any purpose, without the express written permission of Oracle Corporation.
If the Programs are delivered to the U.S. Government or anyone licensing or using the programs on
behalf of the U.S. Government, the following notice is applicable:
Restricted Rights Notice Programs delivered subject to the DOD FAR Supplement are "commercial
computer software" and use, duplication, and disclosure of the Programs, including documentation,
shall be subject to the licensing restrictions set forth in the applicable Oracle license agreement.
Otherwise, Programs delivered subject to the Federal Acquisition Regulations are "restricted computer
software" and use, duplication, and disclosure of the Programs shall be subject to the restrictions in FAR
52.227-19, Commercial Computer Software - Restricted Rights (June, 1987). Oracle Corporation, 500
Oracle Parkway, Redwood City, CA 94065.
The Programs are not intended for use in any nuclear, aviation, mass transit, medical, or other inherently
dangerous applications. It shall be the licensee's responsibility to take all appropriate fail-safe, backup,
redundancy, and other measures to ensure the safe use of such applications if the Programs are used for
such purposes, and Oracle Corporation disclaims liability for any damages caused by such use of the
Programs.
Oracle is a registered trademark, and Oracle8i, Oracle9i, Oracle Store, PL/SQL, Pro*C/C++, and
SQL*Plus are trademarks or registered trademarks of Oracle Corporation. Other names may be
trademarks of their respective owners.

iii
Contents
Send Us Your Comments ................................................................................................................ xxiii
Preface......................................................................................................................................................... xxv
Audience............................................................................................................................................. xxvi
Organization....................................................................................................................................... xxvi
Related Documentation ................................................................................................................... xxviii
Conventions........................................................................................................................................ xxix
Documentation Accessibility ......................................................................................................... xxxiv
What’s New in Advanced Queuing? ..................................................................................... xxxvii
Oracle9i Release 2 (9.2.0) New Features...................................................................................... xxxviii
Oracle9i (9.0.1) New Features in Advanced Queuing............................................................... xxxviii
Oracle8i New Features in Advanced Queuing................................................................................. xli
1 Introduction to Oracle Advanced Queuing
What Is Advanced Queuing?............................................................................................................ 1-2
Advanced Queuing in Integrated Application Environments .............................................. 1-2
Interfaces to Advanced Queuing................................................................................................ 1-3
Queuing System Requirements.................................................................................................. 1-4
General Features of Advanced Queuing........................................................................................ 1-5
Point-to-Point and Publish-Subscribe Messaging.................................................................... 1-6
Oracle Internet Directory............................................................................................................. 1-7
Oracle Enterprise Manager Integration..................................................................................... 1-7
Message Format Transformation ............................................................................................... 1-7

iv
SQL Access .................................................................................................................................... 1-8
Support for Statistics Views ........................................................................................................ 1-9
Structured Payloads ..................................................................................................................... 1-9
Retention and Message History.................................................................................................. 1-9
Tracking and Event Journals....................................................................................................... 1-9
Queue-Level Access Control..................................................................................................... 1-10
Nonpersistent Queues................................................................................................................ 1-10
Support for Oracle9i Real Application Clusters..................................................................... 1-10
XMLType Payloads .................................................................................................................... 1-11
Internet Integration and Internet Data Access Presentation ................................................ 1-11
Nonrepudiation and the AQ$<QueueTableName> View.................................................... 1-14
Enqueue Features.............................................................................................................................. 1-14
Correlation Identifiers................................................................................................................ 1-15
Subscription and Recipient Lists.............................................................................................. 1-15
Priority and Ordering of Messages in Enqueuing................................................................. 1-16
Message Grouping...................................................................................................................... 1-16
Propagation ................................................................................................................................. 1-16
Sender Identification.................................................................................................................. 1-17
Time Specification and Scheduling.......................................................................................... 1-17
Rule-Based Subscribers.............................................................................................................. 1-17
Asynchronous Notification....................................................................................................... 1-17
Dequeue Features ............................................................................................................................. 1-18
Recipients..................................................................................................................................... 1-18
Navigation of Messages in Dequeuing.................................................................................... 1-18
Modes of Dequeuing.................................................................................................................. 1-18
Optimization of Waiting for the Arrival of Messages........................................................... 1-18
Retries with Delays..................................................................................................................... 1-19
Optional Transaction Protection............................................................................................... 1-19
Exception Handling.................................................................................................................... 1-19
Listen Capability (Wait on Multiple Queues)......................................................................... 1-19
Dequeue Message Header with No Payload.......................................................................... 1-19
Propagation Features........................................................................................................................ 1-20
Automated Coordination of Enqueuing and Dequeuing..................................................... 1-20
Propagation of Messages with LOBs....................................................................................... 1-20
Propagation Scheduling............................................................................................................. 1-20

v
Enhanced Propagation Scheduling Capabilities.................................................................... 1-20
Third-Party Support................................................................................................................... 1-21
Elements of Advanced Queuing.................................................................................................... 1-21
Message........................................................................................................................................ 1-21
Queue ........................................................................................................................................... 1-22
Queue Table................................................................................................................................. 1-22
Agent............................................................................................................................................ 1-22
Recipient ...................................................................................................................................... 1-23
Recipient and Subscription Lists.............................................................................................. 1-23
Rule............................................................................................................................................... 1-24
Rule-Based Subscribers.............................................................................................................. 1-24
Transformation ........................................................................................................................... 1-24
Queue Monitor............................................................................................................................ 1-24
Java Message Service Terminology............................................................................................... 1-25
Demos ................................................................................................................................................. 1-25
2 Basic Components
Data Structures.................................................................................................................................... 2-2
Object Name (object_name)........................................................................................................ 2-2
Type Name (type_name)............................................................................................................. 2-2
Agent Type (aq$_agent)............................................................................................................... 2-3
AQ Recipient List Type (aq$_recipient_list_t) ......................................................................... 2-4
AQ Agent List Type (aq$_agent_list_t)..................................................................................... 2-4
AQ Subscriber List Type (aq$_subscriber_list_t)..................................................................... 2-4
AQ Registration Info List Type (aq$_reg_info_list)................................................................. 2-5
AQ Post Info List Type (aq$_post_info_list)............................................................................. 2-5
AQ Registration Info Type.......................................................................................................... 2-5
AQ Notification Descriptor Type............................................................................................... 2-7
AQ Post Info Type........................................................................................................................ 2-8
Enumerated Constants in the Administrative Interface............................................................. 2-8
Enumerated Constants in the Operational Interface................................................................... 2-9
INIT.ORA Parameter File Considerations..................................................................................... 2-9
AQ_TM_PROCESSES Parameter............................................................................................. 2-10
JOB_QUEUE_PROCESSES Parameter .................................................................................... 2-10
剩余1209页未读,继续阅读














安全验证
文档复制为VIP权益,开通VIP直接复制

评论1