Edit D:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em\online_help\tdpii\tdpii_messaging009.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 at Each Database</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:2Z" /> <meta name="robots" content="noarchive" /> <meta name="doctitle" content="Task 1: Creating the Message Type at Each Database" /> <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_messaging008.htm" title="Previous" type="text/html" /> <link rel="next" href="tdpii_messaging010.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_messaging008.htm"><img src="./dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="tdpii_messaging010.htm"><img src="./dcommon/gifs/rightnav.gif" alt="Next" /><br /> <span class="icon">Next</span></a></td> </tr> </table> <p><a id="CHDEFIBH" name="CHDEFIBH"></a><a id="TDPII035" name="TDPII035"></a></p> <div class="sect2"><!-- infolevel="all" infotype="General" --> <h1>Task 1: Creating the Message Type at Each Database<a id="sthref592" name="sthref592"></a><a id="sthref593" name="sthref593"></a></h1> <a name="BEGIN" id="BEGIN"></a> <p>Create a user-defined type to define the information that you want to send about orders. This example creates the <code>strmadmin.order_id_date</code> type for messages that will contain the order ID and order date.</p> <p class="orderedlisttitle">To create the strmadmin.order_id_date type at each database: </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="sthref595" name="sthref595"></a>In Oracle Enterprise Manager, log in to the <code>ii1.example.com</code> database as the Oracle Streams administrator.</p> </li> <li><a id="BABBCJBH" name="BABBCJBH"></a> <p>Go to the Database Home page.</p> </li> <li><a id="BABIGJJE" name="BABIGJJE"></a> <p>Click <span class="bold">Schema</span> to open the Schema subpage.</p> </li> <li><a id="CHDIFEDC" name="CHDIFEDC"></a> <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>order_id_date</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 an attribute:</p> <ol> <li> <p>Enter <code>order_id</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, ensure that <span class="bold">Predefined Type</span> is selected 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 an attribute:</p> <ol> <li> <p>Enter <code>order_date</code> in the Name field.</p> </li> <li> <p>Select <code>VARCHAR2</code> for Type.</p> </li> <li> <p>Enter <code>100</code> in the Length field.</p> </li> <li> <p>Click <span class="bold">OK</span>.</p> </li> </ol> </li> <li><a id="CHDDBDAD" name="CHDDBDAD"></a> <p>On the Create Object Type page, click <span class="bold">OK</span> to create the type.</p> </li> <li> <p>Log in to the <code>ii2.example.com</code> database as the Oracle Streams administrator in Enterprise Manager.</p> </li> <li> <p>Complete Steps <a href="#BABBCJBH">3</a> through <a href="#CHDDBDAD">15</a> at the <code>ii2.example.com</code> database so that both databases have the <code>strmadmin.order_id_date</code> type.</p> </li> <li> <p>Complete the steps in <a href="tdpii_messaging010.htm#CHDHBBDJ">"Task 2: Configuring the Queues and Propagation Between Them"</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_messaging008.htm#CHDBACBE">Tutorial: Sending Messages Between Oracle Databases</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_messaging008.htm"><img src="./dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="tdpii_messaging010.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