Previous |
Next |
Create a user-defined type to define the information that you want to track for the applications. This example creates the strmadmin.app_info
type for messages that will contain a parameter and a value.
To create the strmadmin.app_info type:
Prepare your environment for messaging if you have not already done so. See "Preparing for Messaging".
In Oracle Enterprise Manager, log in to the database as the Oracle Streams administrator.
Go to the Database Home page.
Click Schema to open the Schema subpage.
Click Object Types in the User Defined Types section.
On the Object Types page, click Create to open the Create Object Type page.
Enter app_info
in the Name field.
Ensure that strmadmin
is selected in the Schema field.
Ensure that Predefined Type is selected for Datatype in the Attributes section.
Click Add in the Attributes section to open the Add Predefined Type Attributes page.
To add the first attribute to the app_info
type:
Enter parameter
in the Name field.
Select VARCHAR2
for Type.
Enter 20
in the Length field.
Click OK.
On the Create Object Type page, ensure that Predefined Type is selected for Datatype in the Attributes section.
Click Add in the Attributes section to open the Add Predefined Type Attributes page.
To add the next attribute to the app_info
type:
Enter value
in the Name field.
Select NUMBER
for Type.
Enter 12
in the Length field.
Click OK.
On the Create Object Type page, click OK to create the type.
Complete the steps in "Task 2: Configuring a Queue and a Messaging Client" to continue this extended example.
Note: You can also use the CREATE
TYPE
SQL statement to create a type.