Edit D:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em\online_help\tdpii\tdpii_messaging016.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <title>Task 1: Creating the Message Type</title> <meta name="generator" content="Oracle DARB XHTML Converter (Mode = ohj/ohw) - Version 5.1.1 Build 005" /> <meta name="date" content="2009-06-04T17:1:3Z" /> <meta name="robots" content="noarchive" /> <meta name="doctitle" content="Task 1: Creating the Message Type" /> <meta name="relnum" content="11g Release 2 (11.2)" /> <meta name="partnum" content="E10703-01" /> <link rel="copyright" href="./dcommon/html/cpyr.htm" title="Copyright" type="text/html" /> <link rel="stylesheet" href="./dcommon/css/blafdoc.css" title="Oracle BLAFDoc" type="text/css" /> <link rel="contents" href="toc.htm" title="Contents" type="text/html" /> <link rel="prev" href="tdpii_messaging015.htm" title="Previous" type="text/html" /> <link rel="next" href="tdpii_messaging017.htm" title="Next" type="text/html" /> <script src="./callback.js" type="text/javascript"></script> <noscript>Your browser does not support JavaScript. This help page requires JavaScript to render correctly.</noscript> </head> <body> <div class="zz-skip-header"><a href="#BEGIN">Skip Headers</a></div> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> <col width="86%" /> <col width="*" /> <tr valign="bottom"> <td align="left"></td> <td align="center"><a href="tdpii_messaging015.htm"><img src="./dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="tdpii_messaging017.htm"><img src="./dcommon/gifs/rightnav.gif" alt="Next" /><br /> <span class="icon">Next</span></a></td> </tr> </table> <p><a id="BABIJEBG" name="BABIJEBG"></a><a id="TDPII096" name="TDPII096"></a></p> <div class="sect2"><!-- infolevel="all" infotype="General" --> <h1>Task 1: Creating the Message Type<a id="sthref623" name="sthref623"></a><a id="sthref624" name="sthref624"></a></h1> <a name="BEGIN" id="BEGIN"></a> <p>Create a user-defined type to define the information that you want to track for the applications. This example creates the <code>strmadmin.app_info</code> type for messages that will contain a parameter and a value.</p> <p class="orderedlisttitle">To create the strmadmin.app_info type: </p> <ol> <li> <p>Prepare your environment for messaging if you have not already done so. See <a href="tdpii_messaging007.htm#CHDGIEEC">"Preparing for Messaging"</a>.</p> </li> <li> <p><a id="sthref626" name="sthref626"></a>In Oracle Enterprise Manager, log in to the database as the Oracle Streams administrator.</p> </li> <li> <p>Go to the Database Home page.</p> </li> <li> <p>Click <span class="bold">Schema</span> to open the Schema subpage.</p> </li> <li> <p>Click <span class="bold">Object Types</span> in the User Defined Types section.</p> </li> <li> <p>On the Object Types page, click <img src="shortcut.png" alt="callback" border="0" /><a href="javascript:void(0);" onclick="redirectEMpage('OBJECT_TYPE_CREATE');"><span class="bold">Create</span></a> to open the Create Object Type page.</p> </li> <li> <p>Enter <code>app_info</code> in the Name field.</p> </li> <li> <p>Ensure that <code>strmadmin</code> is selected in the Schema field.</p> </li> <li> <p>Ensure that <span class="bold">Predefined Type</span> is selected for Datatype in the Attributes section.</p> </li> <li> <p>Click <span class="bold">Add</span> in the Attributes section to open the Add Predefined Type Attributes page.</p> </li> <li> <p>To add the first attribute to the <code>app_info</code> type:</p> <ol> <li> <p>Enter <code>parameter</code> in the Name field.</p> </li> <li> <p>Select <code>VARCHAR2</code> for Type.</p> </li> <li> <p>Enter <code>20</code> in the Length field.</p> </li> <li> <p>Click <span class="bold">OK</span>.</p> </li> </ol> </li> <li> <p>On the Create Object Type page, ensure that <span class="bold">Predefined Type</span> is selected for Datatype in the Attributes section.</p> </li> <li> <p>Click <span class="bold">Add</span> in the Attributes section to open the Add Predefined Type Attributes page.</p> </li> <li> <p>To add the next attribute to the <code>app_info</code> type:</p> <ol> <li> <p>Enter <code>value</code> in the Name field.</p> </li> <li> <p>Select <code>NUMBER</code> for Type.</p> </li> <li> <p>Enter <code>12</code> in the Length field.</p> </li> <li> <p>Click <span class="bold">OK</span>.</p> </li> </ol> </li> <li> <p>On the Create Object Type page, click <span class="bold">OK</span> to create the type.</p> </li> <li> <p>Complete the steps in <a href="tdpii_messaging017.htm#BABGHHDA">"Task 2: Configuring a Queue and a Messaging Client"</a> to continue this extended example.</p> </li> </ol> <div class="helpinfonote"> <p><span class="bold">Note: </span>You can also use the <a href="javascript:open('http://www.oracle.com/pls/db112/lookup?id=SQLRF01506','newWindow').focus()"><code>CREATE</code> <code>TYPE</code></a> SQL statement to create a type.</p> </div> <div class="helpinfonotealso"> <h2>Related Topics</h2> <p><a href="tdpii_messaging015.htm#CHDGEHCF">Tutorial: Configuring Message Notifications</a></p> <p><a href="tdpii_messaging001.htm#CHDIJFHB">About Messaging</a></p> </div> </div> <!-- class="sect2" --> <!-- Start Footer --> <div class="footer"> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> <col width="86%" /> <col width="*" /> <tr> <td align="left"><span class="copyrightlogo">Copyright © 2007, 2009, Oracle and/or its affiliates. All rights reserved.</span><br /> <a href="./dcommon/html/cpyr.htm"><span class="copyrightlogo">Legal Notices</span></a></td> <td align="center"><a href="tdpii_messaging015.htm"><img src="./dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="tdpii_messaging017.htm"><img src="./dcommon/gifs/rightnav.gif" alt="Next" /><br /> <span class="icon">Next</span></a></td> </tr> </table> </div> <!-- class="footer" --> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de