Oracle9i Application Developer's Guide - Advanced Queuing Release 1 (9.0.1) Part Number A88890-02 |
|
Basic Components, 2 of 5
The following chapters discuss the Advanced Queuing administrative and operational interfaces in which data structures are used:
To name 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 the reserved character guidelines in the Oracle9i SQL Reference. 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.
To define queue types.
type_name := VARCHAR2 type_name := <object_type> | "RAW"
Table 2-1 lists usage information for type_name
.
Parameter | Description |
---|---|
<object_types> |
For details on creating object types please refer to Oracle9i Database Concepts. The maximum number of attributes in the object type is limited to 900. |
" |
To store payload of type |
To identify a producer or a consumer of a message.
TYPE aq$_agent IS OBJECT ( name VARCHAR2(30), address VARCHAR2(1024), protocol NUMBER)
All consumers that are added as subscribers to a multiconsumer queue must have unique values for the AQ$_AGENT
parameters. You can add more subscribers by repeatedly using the DBMS_AQADM.ADD_SUBSCRIBER
procedure up to a maximum of 1024 subscribers for a multiconsumer queue. 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.
Table 2-2 lists usage information for aq$_agent
.
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;
To identify the list of registrations to a queue.
TYPE aq$_reg_info_list AS VARRAY(1024) OF sys.aq$_reg_info
To identify the list of anonymous subscriptions to which messages are posted.
TYPE aq$_post_info_list AS VARRAY(1024) OF sys.aq$_post_info
The aq$_reg_info
data structure identifies a producer or a consumer of a message.
TYPE sys.aq$_reg_info IS OBJECT ( name VARCHAR2(128), namespace NUMBER, callback VARCHAR2(4000), context RAW(2000));
Table 2-4 shows the actions performed when different notification mechanisms/presentations are specified for nonpersistent queues.
The aq$_descriptor
data structure specifies the AQ Descriptor received by the AQ PL/SQL callbacks upon notification.
TYPE sys.aq$_descriptor IS OBJECT ( queue_name VARCHAR2(30), consumer_name VARCHAR2(30), msg_id RAW(16), msg_prop msg_prop_t);
The aq$_post_info
data structure specifies anonymous subscriptions to which you want to post messages.
TYPE sys.aq$_post_info IS OBJECT ( name VARCHAR2(128), namespace NUMBER, payload RAW(2000));
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|