Edit D:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em\online_help\tdddg\tdddg_deploying013.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"> <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> <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" /> <meta name="generator" content="Oracle DARB XHTML Converter (Mode = ohj/ohw) - Version 5.1.1 Build 005" /> <meta name="date" content="2009-04-21T9:46:26Z" /> <meta name="robots" content="noarchive" /> <meta name="doctitle" content="Installing the Sample Application" /> <meta name="relnum" content="11g Release 2 (11.2)" /> <meta name="partnum" content="E10766-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="tdddg_deploying012.htm" title="Previous" type="text/html" /> <link rel="next" href="tdddg_deploying014.htm" title="Next" type="text/html" /> <title>Installing the Sample Application</title> </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="tdddg_deploying012.htm"><img width="24" height="24" src="./dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="tdddg_deploying014.htm"><img width="24" height="24" src="./dcommon/gifs/rightnav.gif" alt="Next" /><br /> <span class="icon">Next</span></a></td> </tr> </table> <p><a id="BABBJBEJ" name="BABBJBEJ"></a><a id="TDDDG76000" name="TDDDG76000"></a></p> <div class="sect1"><!-- infolevel="all" infotype="General" --> <h1>Installing the Sample Application</h1> <a name="BEGIN" id="BEGIN"></a> <p><a id="sthref729" name="sthref729"></a><a id="sthref730" name="sthref730"></a><a id="sthref731" name="sthref731"></a>To install the sample application, you run the installation script files that you created in the tutorials in <a href="tdddg_deploying005.htm#BABIIBHE">"Creating Installation Script Files"</a>, in this order:</p> <ol> <li> <p><code>2day_tables.sql</code></p> </li> <li> <p><code>2day_package.sql</code></p> </li> <li> <p><code>2day_other.sql</code></p> </li> <li> <p><code>2day_data.sql</code></p> </li> </ol> <p>You can either run the files one at a time, or you can create and run a master SQL script file that runs them in order.</p> <p>The following master SQL script runs the files in order, commits the changes, and writes server messages to a log file:</p> <pre xml:space="preserve" class="oac_no_warn"> spool C:\my_exports\create_log.txt @C:\my_exports\2day_tables.sql @C:\my_exports\2day_package.sql @C:\my_exports\2day_other.sql @C:\my_exports\2day_data.sql commit; spool off </pre> <p>The SQL*Plus command <code>@</code><code><span class="codeinlineitalic">file_name</span></code>.<code>sql</code> runs a file.</p> <p>Typically, you run the master script file in SQL*Plus. However, if the master script specifies the full path names of the individual files (as in the preceding example), you can run it in SQL Developer.</p> <p>The following procedure uses SQL Developer to install the sample application by running the installation script files one at a time, in order.</p> <div class="helpinfonote"> <p><span class="bold">Note: </span>The deployment environment must be different from the development environment, and is assumed to be another standard <code>HR</code> schema.</p> </div> <a id="TDDDG277" name="TDDDG277"></a> <p class="subhead2">To install the sample application using SQL Developer:</p> <ol> <li><a id="CEGHCCAH" name="CEGHCCAH"></a> <p>Connect to Oracle Database as user <code>HR</code> in the deployment environment.</p> <p>For instructions, see <a href="tdddg_connecting006.htm#BABIAAIA">"Connecting to Oracle Database as User HR from SQL Developer"</a>. For Connection Name, enter a name other than <code>hr_conn</code> (for example, <code>hr_conn_2</code>).</p> </li> <li> <p>In the navigation frame, click the tab <span class="bold">Files</span>.</p> <p>The Files pane appears, showing the directories on your computer.</p> </li> <li> <p>Navigate to the directory <code>C:\my_exports</code>.</p> </li> <li> <p>Expand <span class="bold">my_exports</span>.</p> <p>The list of installation script files appears.</p> </li> <li><a id="CEGJBFIB" name="CEGJBFIB"></a> <p>Right-click <span class="bold">2day_tables.sql</span>.</p> <p>A list of choices appears.</p> </li> <li> <p>Select <span class="bold">Open</span>.</p> <p>In the SQL Worksheet, a new <code>2day_tables.sql</code> pane appears, showing the content of the <code>2day_tables.sql</code> file.</p> </li> <li> <p>Click the icon <span class="bold">Run Script</span>.</p> <p>The Select Connection window opens.</p> </li> <li><a id="CEGCCFJD" name="CEGCCFJD"></a> <p>For Connection, on the drop-down menu, select the connection to the deployment environment (created in step <a href="#CEGHCCAH">1</a>).</p> </li> <li> <p>Click <span class="bold">OK</span>.</p> <p>The result of each statement in <code>2day_tables.sql</code> is displayed in the Script Output pane.</p> </li> <li><a id="CEGCCDCI" name="CEGCCDCI"></a> <p>Click the icon <span class="bold">Clear</span>.</p> <p>The title of the <code>2day_tables.sql</code> pane is now in italic font, indicating that the changes have not been committed, and the SQL Worksheet is blank.</p> </li> <li> <p>Repeat steps <a href="#CEGJBFIB">5</a> through <a href="#CEGCCDCI">10</a> for <code>2day_package.sql</code>.</p> </li> <li> <p>Repeat steps <a href="#CEGJBFIB">5</a> through <a href="#CEGCCDCI">10</a> for <code>2day_other.sql</code>.</p> </li> <li> <p>Repeat steps <a href="#CEGJBFIB">5</a> through <a href="#CEGCCDCI">10</a> for <code>2day_data.sql</code>.</p> </li> <li> <p>Click the icon <span class="bold">Commit</span>.</p> <p>The changes are committed.</p> </li> </ol> <p>When you are sure that the individual installation script files run without errors, you can create a master SQL script (.<code>sql</code>) file that runs them in order, commits the changes, and writes the results to a log file. For example:</p> <pre xml:space="preserve" class="oac_no_warn"> spool C:\my_exports\create_log.txt @C:\my_exports\2day_tables.sql @C:\my_exports\2day_package.sql @C:\my_exports\2day_other.sql @C:\my_exports\2day_data.sql commit; spool off </pre> <p>Typically, you run the master file in SQL*Plus. However, if the master file specifies the full path names of the individual files (as in the preceding example), you can open and run it in SQL Developer.</p> <div class="helpinfonotealso"> <h2>Related Topics</h2> <p><a href="javascript:open('http://www.oracle.com/pls/db112/lookup?id=RPTUG10720','newWindow').focus()"><span class="italic">Oracle Database SQL Developer User's Guide</span></a></p> <p><a href="javascript:open('http://www.oracle.com/pls/db112/lookup?id=SQPUG015','newWindow').focus()"><span class="italic">SQL*Plus User's Guide and Reference</span></a></p> <p><a href="tdddg_deploying.htm#CIHIGEDF">Deploying an Oracle Database Application</a></p> </div> </div> <!-- class="sect1" --> <!-- 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 © 1996, 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="tdddg_deploying012.htm"><img width="24" height="24" src="./dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="tdddg_deploying014.htm"><img width="24" height="24" 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