Your browser does not support JavaScript. This help page requires JavaScript to render correctly.
Skip Headers
Previous
Previous
 
Next
Next

Task 1: Creating the Message Type at Each Database

Create a user-defined type to define the information that you want to send about orders. This example creates the strmadmin.order_id_date type for messages that will contain the order ID and order date.

To create the strmadmin.order_id_date type at each database: 

  1. Prepare your environment for messaging if you have not already done so. See "Preparing for Messaging".

  2. In Oracle Enterprise Manager, log in to the ii1.example.com database as the Oracle Streams administrator.

  3. Go to the Database Home page.

  4. Click Schema to open the Schema subpage.

  5. Click Object Types in the User Defined Types section.

  6. On the Object Types page, click callbackCreate to open the Create Object Type page.

  7. Enter order_id_date in the Name field.

  8. Ensure that strmadmin is selected in the Schema field.

  9. Ensure that Predefined Type is selected for Datatype in the Attributes section.

  10. Click Add in the Attributes section to open the Add Predefined Type Attributes page.

  11. To add an attribute:

    1. Enter order_id in the Name field.

    2. Select NUMBER for Type.

    3. Enter 12 in the Length field.

    4. Click OK.

  12. On the Create Object Type page, ensure that Predefined Type is selected in the Attributes section.

  13. Click Add in the Attributes section to open the Add Predefined Type Attributes page.

  14. To add an attribute:

    1. Enter order_date in the Name field.

    2. Select VARCHAR2 for Type.

    3. Enter 100 in the Length field.

    4. Click OK.

  15. On the Create Object Type page, click OK to create the type.

  16. Log in to the ii2.example.com database as the Oracle Streams administrator in Enterprise Manager.

  17. Complete Steps 3 through 15 at the ii2.example.com database so that both databases have the strmadmin.order_id_date type.

  18. Complete the steps in "Task 2: Configuring the Queues and Propagation Between Them" to continue this extended example.

Note: You can also use the CREATE TYPE SQL statement to create a type.

Related Topics

Tutorial: Sending Messages Between Oracle Databases

About Messaging