Previous |
Next |
Create a queue at each database, and create a propagation to send messages about orders from the queue at the ii1.example.com
database to the queue at the ii2.example.com
database.
To create a propagation:
Create a queue named streams_queue
in the schema of the Oracle Streams administrator at both the ii1.example.com
and ii2.example.com
databases. See "Creating an ANYDATA Queue" for instructions.
Create a database link named ii2.example.com
in the Oracle Streams administrator schema at ii1.example.com
. Configure the database link to connect to the Oracle Streams administrator schema at ii2.example.com
. The service name of the database link must be ii2.example.com
. See "Tutorial: Creating a Database Link" for instructions.
In Oracle Enterprise Manager, log in to the ii1.example.com
database as the Oracle Streams administrator.
Go to the Database Home page.
Click Data Movement to open the Data Movement subpage.
Click Manage Replication in the Streams section.
On the Streams page, click Streams to open the Streams subpage.
Click Setup Propagation to open the Setup Propagation page.
Enter send_orders
in the Propagation Name field.
Enter strmadmin.streams_queue
in the Source Queue field. This queue is the queue at the ii1.example.com
database into which messages about orders will be enqueued.
Enter the name of the database link that you created in Step 2 in the Destination Database Link field. In this example, the database link name is ii2.example.com
.
Enter strmadmin.streams_queue
in the Destination Queue field. This is the queue at the ii2.example.com
database to which messages about orders will be sent.
Leave the Positive Rule Set and Negative Rule Set fields empty. When a propagation does not have a rule set, it sends all of the messages in the source queue to the destination queue.
Enable the Queue to Queue Propagation option.
Click OK to create the propagation.
Complete the steps in "Task 3: Configuring a Message Enqueuing Mechanism" to continue this extended example.
Note: You can also use the DBMS_PROPAGATION_ADM.CREATE_PROPAGATION
procedure to create a propagation.