📄 readme.html
字号:
</td>
<td width="96%" valign="top">
<p><font face="Arial,Helvetica">Edit ociCallJSP.c file available in
<tt><your_directory_structure>\RoomsInformationOCISample</tt>.</font>
<font face="Arial,Helvetica">You will find the "HOST" variable defined
as "ora9idb" as shown below.</font> <br>
<font face="Arial,Helvetica"> <tt>#define HOST "ora9idb"
</tt></font> <br>
<font face="Arial,Helvetica">The value in the HOST variable is the
Connect String connecting to database.</font> <font face="Arial,Helvetica">Please
change the value in HOST variable according to your own Connect
String.</font> </p>
</td>
</tr>
<tr>
<td width="4%" valign="top">
<p>5.</p>
</td>
<td width="96%">
<p><font face="Arial,Helvetica">Edit ociCallJSP.bat file <tt><your_directory_structure>\RoomsInformationOCISample</tt></font><br>
<font face="Arial,Helvetica">a) Substitute the value in INCLUDE_PATH_STANDARD
variable with the path on your system where standard header files
like <tt>stdio.h </tt> can be found. Generally it is available in
<your_C_compiler_installation> directory. </font></p>
<p><font face="Arial,Helvetica">b) Substitute the value in INCLUDE_PATH_OCI
variable with the path on your system where OCI Header Files can
be found. Generally they are f</font><font face="Arial,Helvetica">ound
at <tt><ORACLE_HOME>\oci\include </tt>directory</font> </p>
<p><font face="Arial,Helvetica">c) Substitute the value in LIBRARY_PATH_OCI
with the Library Path on your system where <tt>oci.lib</tt> can
be found. Generally oci.lib can be found at</font> <font face="Arial,Helvetica"><tt><ORACLE_HOME>\oci\lib\msvc\oci.lib</tt></font>
</p>
<p><font face="Arial,Helvetica">d) Substitute the value in LIB with
library path on your System where standard C libraries can be found.</font>
<font face="Arial,Helvetica">G</font><font face="Arial,Helvetica">enerally
these are available in <your_C_compiler_installation> directory.
</font> </p>
</td>
</tr>
<tr>
<td width="4%" valign="top" height="68">
<p>6. </p>
</td>
<td width="96%" height="68">
<p>Ensure that "cl.exe" available in <font face="Arial,Helvetica"><your_C_compiler_installation>
directory</font>, is present in your system path.<font face="Arial, Helvetica, sans-serif">Navigate
to <tt><your_installation_directory>\RoomsInformationOCISample
</tt> directory. Compile and link ociCallJSP.c file by executing
the batch file</font> <br>
<font face="Arial, Helvetica, sans-serif"> <tt>your_installation_directory\RoomsInformationOCISample>
@ociCallJSP.bat</tt></font> </p>
</td>
</tr>
<tr>
<td width="4%" valign="top">
<p>7.</p>
</td>
<td width="96%">
<p>Execute the ociCallJSP.exe as shown below <br>
<tt>your_installation_directory\RoomsInformationOCISample> ociCallJSP</tt></p>
</td>
</tr>
</table>
<br>
<br>
<table BORDER=0 WIDTH="770" >
<tr>
<td WIDTH="580">
<h2> <a NAME="steps"></a><b>Steps
in the Sample</b></h2>
</td>
<td WIDTH="176">
<center>
<a href="#header">Back
To Top</a>
</center>
</td>
</tr>
</table>
<table width="84%" class="TableText" >
<tr>
<td width="8%" valign="top">
<p>Step 1.</p>
</td>
<td width="92%">
<p><font face="Arial, Helvetica, sans-serif">The user invokes the
application, and the sample attempts to connect to the Database</font></p>
</td>
</tr>
<tr>
<td width="8%" valign="top" height="34">
<p>Step 2.</p>
</td>
<td width="92%" height="34" valign="top">
<p><font face="Arial, Helvetica, sans-serif">If the connection was
successful, the sample displays ten different HOTEL_ID and ROOM_TYPE
combinations. User is prompted to choose any of the combination.</font></p>
</td>
</tr>
<tr>
<td width="8%" valign="top">
<p>Step 3.</p>
</td>
<td width="92%" valign="top">
<p><font face="Arial, Helvetica, sans-serif">After user select the
HOTEL_ID and ROOM_TYPE combination, the application invokes the
Java Stored Procedure "GET_ROOM_DETAILS".</font></p>
</td>
</tr>
<tr>
<td width="8%" valign="top">
<p>Step 4.</p>
</td>
<td width="92%">
<p><font face="Arial, Helvetica, sans-serif">After the JSP returns,
the results are displayed on the console.User can press "1" to continue
or "0" to exit the application.</font></p>
</td>
</tr>
</table>
<p>
<table BORDER=0 WIDTH="770" >
<tr>
<td WIDTH="580">
<h2> <a NAME="description"></a><b>Description
of Sample Files </b></h2>
</td>
<td WIDTH="176">
<center>
<a href="#header">Back
To Top</a>
</center>
</td>
</tr>
</table>
<table BORDER width="85%" >
<tr valign=TOP>
<td width="181">
<p><b>Directory</b></p>
</td>
<td width="114">
<p><b>File Name</b></p>
</td>
<td width="515">
<p><b>Description</b></p>
</td>
</tr>
<tr valign=TOP>
<td rowspan="3" height="145" width="181">
<p> RoomsInformationOCISample\ </p>
</td>
<td width="114" height="41">
<p>RoomsInformationProcedure.java</p>
</td>
<td width="515" height="41">
<p>This file contains the Java Stored Procedure implementation.</p>
</td>
</tr>
<tr valign=TOP>
<td width="114" height="21">
<p>ociCallJSP.bat</p>
</td>
<td width="515" height="21">
<p><font face="Arial, Helvetica, sans-serif">Batch file for running
the Sample in Windows NT environment.</font></p>
</td>
</tr>
<tr valign=TOP>
<td width="114" height="13">
<p>ociCallJSP.C</p>
</td>
<td width="515" height="13">
<p><font face="Arial, Helvetica, sans-serif">The OCI source file for
sample.</font></p>
</td>
</tr>
<tr>
<td height="26" width="181">
<p>RoomsInformationOCISample\config</p>
</td>
<td width="114" height="26">
<p>DatabaseSetup.sql</p>
</td>
<td width="515" height="26">
<p>This file creates the database stored procedure. </p>
</td>
</tr>
<tr>
<td height="29" width="181">
<p>RoomsInformationOCISample\doc</p>
</td>
<td width="114" height="29">
<p>Readme.html</p>
</td>
<td width="515" height="29">
<p>This file</p>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td VALIGN=TOP height="49">
<hr SIZE=0 WIDTH="100%">
<p><b>Please enter your
comments about this sample in the <a href="http://otn.oracle.com/forums/sample_code.html">OTN
Sample Code Discussion Forum</a>.</b><br></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -