Oracle8i Application Developer's Guide - Advanced Queuing Release 2 (8.1.6) Part Number A76938-01 |
|
Basic Components, 2 of 6
The following chapters data structures are used in both the operational and administrative interfaces:
The naming of database objects. This naming convention applies to queues, queue tables and object types.
object_name := VARCHAR2 object_name := [<schema_name>.]<name>
Names for objects are specified by an optional schema name and a name. If the schema name is not specified then the current schema is assumed. The name must follow object name guidelines in the Oracle8i SQL Reference with regard to reserved characters.The schema name, agent name and the object type name can each be up to 30 bytes long. However, queue names and queue table names can be a maximum of 24 bytes.
Defining queue types.
type_name := VARCHAR2 type_name := <object_type> | "RAW"
To identify a producer or a consumer of a message.
TYPE aq$_agent IS OBJECT ( name VARCHAR2(30), address VARCHAR2(1024), protocol NUMBER)
Parameter | Description |
---|---|
|
Name of a producer or consumer of a message.The name must follow object name guidelines in the Oracle8i SQL Reference with regard to reserved characters. |
|
Protocol specific address of the recipient. If the protocol is 0 (default) the address is of the form [schema.]queue[@dblink] |
|
Protocol to interpret the address and propagate the message. The default value is 0. |
All consumers that are added as subscribers to a multi-consumer queue must have unique values for the AQ$_AGENT
parameter. This means that two subscribers cannot have the same values for the NAME
, ADDRESS
and PROTOCOL
attributes for the AQ$_AGENT
type. At least one of the three attributes must be different for two subscribers.
To identify the list of agents that will receive the message.
TYPE aq$_recipient_list_t IS TABLE OF aq$_agent INDEX BY BINARY_INTEGER;
To identify the list of agents for DBMS_AQ.LISTEN to listen for.
TYPE aq$_agent_list_t IS TABLE OF aq$_agent INDEX BY BINARY INTEGER;
To identify the list of subscribers that subscribe to this queue.
TYPE aq$_subscriber_list_t IS TABLE OF aq$_agent INDEX BY BINARY INTEGER;
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|