⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ch4_comp.htm

📁 Debian中文参考手册,系统介绍了Debian系统
💻 HTM
📖 第 1 页 / 共 5 页
字号:
<tr align="left" valign="top">
<td id="r4c1" headers="r1c1" align="left" colspan="1" rowspan="1">Pro&#042;COBOL release 1.8.77.0.0 and Pro&#042;FORTRAN release 1.8.77.0.0
</td>
<td headers="r4c1 r1c2" align="left" colspan="1" rowspan="1"><code>&#036;ORACLE&#095;HOME&#047;precomp&#047;doc&#047;pro1x&#047;readme.txt</code>
</td>
</tr></tbody>
</table>
</div class="sect2">
<div class="sect2">
<!--
infolevel=all
infotype=general
--><a id="sthref467" name="sthref467"></a>
<h3>
<font face="arial, helvetica, sans-serif" color="#330099">
Issues Common to All Precompilers
</font>
</h3>
<p>The following issues are common to all precompilers. 
</p>
<div align="center">
<br /><table summary="This is a layout table to format a note" title="This is a layout table to format a note" dir="ltr" border="1" width="80%" frame="hsides" rules="groups" cellpadding="3" cellspacing="0"><tbody>
<tr>
<td align="left" colspan="1" rowspan="1">
<p>
<font face="arial, helvetica, sans-serif">
<strong>Note:</strong>
</font>
</p>To run Oracle Precompiler demonstrations, Oracle9<em>i</em> must already be installed.
</td>
</tr></tbody>
</table><br />
</div>
<div class="sect3">
<!--
infolevel=all
infotype=general
--><a id="sthref468" name="sthref468"></a>
<h4>
<font face="arial, helvetica, sans-serif" color="#330099">
Uppercase to Lowercase Conversion<a id="sthref469" name="sthref469"></a>
</font>
</h4>
<p>In languages other than C, the compiler converts an uppercase function or subprogram name to lowercase. This can cause a <code>&#210;No such user exists&#211;</code> error message. If you receive this error message, verify that the function or subprogram name in your option file matches the case used in the IAPXTB table.
</p>
</div class="sect3">
<div class="sect3">
<!--
infolevel=all
infotype=general
--><a id="sthref470" name="sthref470"></a>
<h4>
<font face="arial, helvetica, sans-serif" color="#330099">
Vendor Debugger Programs<a id="sthref471" name="sthref471"></a><a id="sthref472" name="sthref472"></a>
</font>
</h4>
<p>Precompilers and vendor-supplied debuggers can be incompatible. Oracle Corporation does not guarantee that a program run using a debugger will perform the same way when it is run without the debugger. 
</p>
</div class="sect3">
<div class="sect3">
<!--
infolevel=all
infotype=general
--><a id="sthref473" name="sthref473"></a>
<h4>
<font face="arial, helvetica, sans-serif" color="#330099">
Value of IRECLEN and ORECLEN<a id="sthref474" name="sthref474"></a><a id="sthref475" name="sthref475"></a><a id="sthref476" name="sthref476"></a>
</font>
</h4>
<p>The IRECLEN and ORECLEN parameters do not have maximum values.
</p>
</div class="sect3">
</div class="sect2">
<div class="sect2">
<!--
infolevel=all
infotype=general
--><a id="sthref477" name="sthref477"></a>
<h3>
<font face="arial, helvetica, sans-serif" color="#330099">
Static and Dynamic Linking
</font>
</h3>
<p>You can statically or dynamically link Oracle libraries with precompiler and OCI applications. With static linking, the libraries and objects of the whole application are linked together into a single executable program. As a result, application executables can become very large.
</p>
<p>With dynamic linking, the executing code is partly stored in the executable program and partly stored in libraries that are linked dynamically by the application at runtime. Libraries that are linked at runtime are called dynamic or shared libraries. The benefits of dynamic linking are:
</p>
<ul>
<li type="disc">
<p>Smaller disk requirements&#151;More than one application or invocation of the same application can use the same dynamic library.
</p>
</li>
</ul>
<ul>
<li type="disc">
<p>Smaller main memory requirements&#151;The same dynamic library image is loaded into main memory only once and it can be shared by more than one application.
</p>
</li>
</ul>
</div class="sect2">
<div class="sect2">
<!--
infolevel=all
infotype=general
--><a id="sthref478" name="sthref478"></a>
<h3>
<font face="arial, helvetica, sans-serif" color="#330099">
Client Shared Library
</font>
</h3>
<p>The client shared library is located in the <code>&#036;ORACLE&#095;HOME&#047;lib</code> directory. If you use the Oracle provided <code>demo&#095;</code><em><code>product</code></em><code>.mk</code> make file to link an application, the client shared library is linked by default.
</p>
<p>You might receive one of the following error message when starting an executable:
</p>
<ul>
<li type="disc">
<p>On AIX systems:
</p>
<pre>&#036; sample1
exec(): 0509-036 Cannot load program&#160;.&#047;sample1 because of the following 
errors:
0509-022 Cannot load library libclntsh.a &#091;shr.o&#093;
0509-026 System error: A file or directory in the pathname does not exist.

</pre>
</li>
</ul>
<ul>
<li type="disc">
<p>On HP systems:
</p>
<pre>&#036; sample1
&#047;usr&#047;lib&#047;dld.sl: Can&#039;t open shared library:
&#047;u01&#047;app&#047;oracle&#047;product&#047;9.2.0.1.0&#047;lib&#047;libclntsh.sl.9.0
&#047;usr&#047;lib&#047;dld.sl: No such file or directory
Abort (core dumped)

</pre>
</li>
<li type="disc">
<p>On Solaris and Linux systems:
</p>
<pre>&#036; sample1
ld.so.1: sample1: fatal: libclntsh.so.1.0: can&#039;t open file: errno&#061;2 
Killed

</pre>
</li>
</ul>
<ul>
<li type="disc">
<p>On Tru64 systems:
</p>
<pre>&#036; sample1
&#047;sbin&#047;loader: Fatal Error: Cannot map libclntsh.so
Killed

</pre>
</li>
</ul>
<p>If you receive one of these error messages, set one of the following environment variables, depending on your platform: 
</p>
<ul>
<li type="disc">
<p>On AIX systems:
</p>
<pre>&#036; LIBPATH&#061;&#036;ORACLE&#095;HOME&#047;lib:&#036;&#123;LIBPATH&#125;
&#036; export LIBPATH

</pre>
</li>
</ul>
<ul>
<li type="disc">
<p>On HP systems (64-bit applications), Linux, Solaris, and Tru64 systems:
</p>
<pre>&#036; LD&#095;LIBRARY&#095;PATH&#061;&#036;ORACLE&#095;HOME&#047;lib:&#036;&#123;LD&#095;LIBRARY&#095;PATH&#125;
&#036; export LD&#095;LIBRARY&#095;PATH

</pre>
</li>
</ul>
<ul>
<li type="disc">
<p>On HP systems (32-bit applications)
</p>
<pre>&#036; SHLIB&#095;PATH&#061;&#036;ORACLE&#095;HOME&#047;lib32:&#036;&#123;SHLIB&#095;PATH&#125;&#036; export SHLIB&#095;PATH 

</pre>
</li>
</ul>
<p>
</p>
<p>The client shared library is created automatically during installation. If you must recreate the client shared library:
</p>
<ol type="1" start="1">
<li>
<p>Exit all client applications that use the client shared library, including all Oracle client applications such as SQL&#042;Plus and Recovery Manager. 
</p>
</li>
<li>
<p>Log in as the <code>oracle</code> user and enter:
</p>
<pre>&#036; genclntsh
</pre>
</li>
</ol>
</div class="sect2">
</div class="sect1"><a id="CHDHBDBF" name="CHDHBDBF"></a>
<div class="sect1">
<!--
infolevel=all
infotype=general
--><a id="sthref479" name="sthref479"></a>
<h2>
<font face="arial, helvetica, sans-serif" color="#330099">Support for 32-Bit and 64-Bit Client Applications (AIX, HP, and Solaris 64-Bit Only)
</font>
</h2>
<p>Oracle9<em>i</em> release 2 (9.2.0.1.0) for AIX, HP, and Solaris 64-bit systems provides support for 32-bit and 64-bit client applications. By default, all demonstrations and client applications provided with release 2 (9.2.0.1.0) link and run in 64-bit mode. However, you can build 32-bit and 64-bit client applications in the same ORACLE home directory. You can run both 32-bit and 64-bit applications on Oracle9<em>i</em> release 2 (9.2.0.1.0) for AIX, HP, and Solaris 64-bit systems. The following table lists the 32-bit and 64-bit client shared libraries:
</p>
<table title="32-Bit and 64 Bit Client Shared Libraries" summary="This table lists the 32-bit and 64-bit client shared libraries." dir="ltr" border="1" width="100%" frame="hsides" rules="groups" cellpadding="3" cellspacing="0">
<thead>
<tr align="left" valign="top">
<th id="r1c1" align="left" colspan="1" rowspan="1" valign="bottom">
<font face="Arial, Helvetica, sans-serif">
<strong>Platform
</strong></font></th>
<th id="r1c2" align="left" colspan="1" rowspan="1" valign="bottom">
<font face="Arial, Helvetica, sans-serif">
<strong>32-Bit Client Shared Library
</strong></font></th>
<th id="r1c3" align="left" colspan="1" rowspan="1" valign="bottom">
<font face="Arial, Helvetica, sans-serif">
<strong>64-Bit Client Shared Library
</strong></font></th>
</tr>
</thead><tbody>
<tr align="left" valign="top">
<td id="r2c1" headers="r1c1" align="left" colspan="1" rowspan="1">AIX
</td>
<td headers="r2c1 r1c2" align="left" colspan="1" rowspan="1"><code>&#036;ORACLE&#095;HOME&#047;lib32&#047;libclntsh.a</code>
</td>
<td headers="r2c1 r1c3" align="left" colspan="1" rowspan="1"><code>&#036;ORACLE&#095;HOME&#047;lib&#047;libclntsh.a</code>
</td>
</tr>
<tr align="left" valign="top">
<td id="r3c1" headers="r1c1" align="left" colspan="1" rowspan="1">HP
</td>
<td headers="r3c1 r1c2" align="left" colspan="1" rowspan="1"><code>&#036;ORACLE&#095;HOME&#047;lib32&#047;libclntsh.sl</code>
</td>
<td headers="r3c1 r1c3" align="left" colspan="1" rowspan="1"><code>&#036;ORACLE&#095;HOME&#047;lib&#047;libclntsh.sl</code>
</td>
</tr>
<tr align="left" valign="top">
<td id="r4c1" headers="r1c1" align="left" colspan="1" rowspan="1">Solaris 64-bit
</td>
<td headers="r4c1 r1c2" align="left" colspan="1" rowspan="1"><code>&#036;ORACLE&#095;HOME&#047;lib32&#047;libclntsh.so</code>
</td>
<td headers="r4c1 r1c3" align="left" colspan="1" rowspan="1">&#036;ORACLE&#095;HOME&#047;lib&#047;libclntsh.so
</td>
</tr></tbody>
</table>
<p>To implement a mixed word-size installation:
</p>
<ol type="1" start="1">
<li>
<p>Execute the following command to generate the 32-bit and 64-bit client shared libraries: 
</p>
<pre>&#036;  genclntsh 

</pre>
</li>
<li>
<p>Include the paths of the required 32-bit and 64-bit shared libraries in one of the following environment variables, depending on your platform:
</p>
<table title="Path Environment Variables" summary="This table lists the path environment variables." dir="ltr" border="1" width="100%" frame="hsides" rules="groups" cellpadding="3" cellspacing="0">
<thead>
<tr align="left" valign="top">
<th id="r1c1" align="left" colspan="1" rowspan="1" valign="bottom">
<font face="Arial, Helvetica, sans-serif">
<strong>Platform
</strong></font></th>
<th id="r1c2" align="left" colspan="1" rowspan="1" valign="bottom">
<font face="Arial, Helvetica, sans-serif">
<strong>Environment Variable
</strong></font></th>
</tr>
</thead><tbody>
<tr align="left" valign="top">
<td id="r2c1" headers="r1c1" align="left" colspan="1" rowspan="1">AIX, Solaris 64-bit
</td>
<td headers="r2c1 r1c2" align="left" colspan="1" rowspan="1">LIBPATH
</td>
</tr>
<tr align="left" valign="top">
<td id="r3c1" headers="r1c1" align="left" colspan="1" rowspan="1">HP (32-bit client applications)
</td>
<td headers="r3c1 r1c2" align="left" colspan="1" rowspan="1">SHLIB&#095;PATH
</td>
</tr>
<tr align="left" valign="top">
<td id="r4c1" headers="r1c1" align="left" colspan="1" rowspan="1">HP (64-bit client applications)
</td>
<td headers="r4c1 r1c2" align="left" colspan="1" rowspan="1">LD&#095;LIBRARY&#095;PATH
</td>
</tr></tbody>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -