📄 ch5_net.htm
字号:
</td>
</tr></tbody>
</table><br />
</div class="sect1"><a id="i38627" name="i38627"></a>
<div class="sect1">
<!--
infolevel=all
infotype=general
--><a id="sthref563" name="sthref563"></a>
<h2>
<font face="arial, helvetica, sans-serif" color="#330099">Oracle Protocol Support<a id="sthref564" name="sthref564"></a><a id="sthref565" name="sthref565"></a><a id="sthref566" name="sthref566"></a>
</font>
</h2>
<p>Oracle protocol support is a component of Oracle Net. It includes the following:
</p>
<ul>
<li type="disc">
<p> IPC protocol support
</p>
</li>
</ul>
<ul>
<li type="disc">
<p> TCP/IP protocol support
</p>
</li>
</ul>
<ul>
<li type="disc">
<p> TCP/IP with SSL protocol support
</p>
</li>
</ul>
<p>The IPC, TCP/IP, and TCP/IP with SSL protocol supports each have an address specification that is used in Oracle Net Services configuration files and in the DISPATCHER initialization parameter in the <code>init</code><em><code>sid</code></em><code>.ora</code> file. The following sections describe the address specifications for each of the protocol supports.
</p>
<div align="center">
<br /><table summary="This is a layout table to format a tip" title="This is a layout table to format a tip" 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><strong>See Also</strong>:</strong>
</font>
</p><em>Oracle9i Net Services Administrator's Guide</em> for more information on Oracle protocol support.
</td>
</tr></tbody>
</table><br />
</div><a id="i37905" name="i37905"></a>
<div class="sect2">
<!--
infolevel=all
infotype=general
--><a id="sthref567" name="sthref567"></a>
<h3>
<font face="arial, helvetica, sans-serif" color="#330099">
IPC Protocol <a id="sthref568" name="sthref568"></a><a id="sthref569" name="sthref569"></a>Support
</font>
</h3>
<p>The IPC protocol support can be used only when the client program and the Oracle9<em>i</em> server are installed on the same system. This protocol support requires a listener for its operation. It is installed and linked to all client tools and to Oracle9<em>i</em>.
</p>
<p>The IPC protocol support requires an address specification in the following format:
</p>
<pre>(ADDRESS = (PROTOCOL=IPC) (KEY=<em>key</em>))
</pre>
<p>The following table describes the parameters used in this address specification:
</p>
<table title="IPC Address Parameter Description" summary="This table sescribes the parameters used in the preceeding address specification." 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>Parameter
</strong></font></th>
<th id="r1c2" align="left" colspan="1" rowspan="1" valign="bottom">
<font face="Arial, Helvetica, sans-serif">
<strong>Description
</strong></font></th>
</tr>
</thead><tbody>
<tr align="left" valign="top">
<td id="r2c1" headers="r1c1" align="left" colspan="1" rowspan="1">PROTOCOL
</td>
<td headers="r2c1 r1c2" align="left" colspan="1" rowspan="1">The protocol to be used. The value is IPC. It is not case sensitive.
</td>
</tr>
<tr align="left" valign="top">
<td id="r3c1" headers="r1c1" align="left" colspan="1" rowspan="1">KEY
</td>
<td headers="r3c1 r1c2" align="left" colspan="1" rowspan="1">Any name unique from any other name used for an IPC KEY on the same system.
</td>
</tr></tbody>
</table>
<p>The following shows a sample IPC protocol address:
</p>
<pre>(ADDRESS= (PROTOCOL=IPC) (KEY=PROD))
</pre>
</div class="sect2">
<div class="sect2"><a id="sthref570" name="sthref570"></a>
<h3>
<font face="arial, helvetica, sans-serif" color="#330099">
TCP/IP Protocol Support
</font>
</h3>
<p>TCP/IP is the standard communication protocol used for client/server communication over a network. The TCP/IP protocol support enables communication between client programs and the Oracle9<em>i</em> server, whether they are installed on the same or different systems. If the TCP/IP protocol is installed on your system, the TCP/IP protocol support is installed and linked to all client tools and to Oracle9<em>i</em>.
</p>
<p>The TCP/IP protocol support requires an address specification in the following format:
</p>
<pre>(ADDRESS = (PROTOCOL=TCP) (HOST=<em>hostname</em>) (PORT=<em>port</em>))
</pre>
<p>The following table describes the parameters used in this address specification:
</p>
<table title="TCP/IP Address Parameter Description" summary="This table sescribes the parameters used in the preceeding address specification." 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>Parameter
</strong></font></th>
<th id="r1c2" align="left" colspan="1" rowspan="1" valign="bottom">
<font face="Arial, Helvetica, sans-serif">
<strong>Description
</strong></font></th>
</tr>
</thead><tbody>
<tr align="left" valign="top">
<td id="r2c1" headers="r1c1" align="left" colspan="1" rowspan="1">PROTOCOL
</td>
<td headers="r2c1 r1c2" align="left" colspan="1" rowspan="1">The protocol support to be used. The value is TCP. It is not case sensitive.
</td>
</tr>
<tr align="left" valign="top">
<td id="r3c1" headers="r1c1" align="left" colspan="1" rowspan="1">HOST
</td>
<td headers="r3c1 r1c2" align="left" colspan="1" rowspan="1">The host name or the host IP address.
</td>
</tr>
<tr align="left" valign="top">
<td id="r4c1" headers="r1c1" align="left" colspan="1" rowspan="1">PORT
</td>
<td headers="r4c1 r1c2" align="left" colspan="1" rowspan="1">The TCP/IP port. Specify the port as either a number or the alias name mapped to the port in the <code>/etc/services</code> file. Oracle Corporation recommends a value of 1521.
</td>
</tr></tbody>
</table>
<p>The following shows a sample TCP/IP protocol address:
</p>
<pre>(ADDRESS= (PROTOCOL=TCP)
(HOST=MADRID)
(PORT=1521))
</pre>
</div class="sect2"><a id="BIIGJFGD" name="BIIGJFGD"></a>
<div class="sect2">
<!--
infolevel=all
infotype=general
--><a id="sthref571" name="sthref571"></a>
<h3>
<font face="arial, helvetica, sans-serif" color="#330099">
TCP/IP with SSL Protocol Support<a id="sthref572" name="sthref572"></a><a id="sthref573" name="sthref573"></a>
</font>
</h3>
<p>The TCP/IP with SSL protocol support enables an Oracle application on a client to communicate with remote Oracle databases through TCP/IP and SSL. To use TCP/IP with SSL, Oracle Advanced Security must be installed.
</p>
<p>The TCP/IP with SSL protocol support requires an address specification in the following format:
</p>
<pre>(ADDRESS = (PROTOCOL=TCPS) (HOST=<em>hostname</em>) (PORT=<em>port</em>))
</pre>
<p>The following table describes the parameters used in this address specification:
</p>
<table title="TCP/IP with SSL Address Parameter Description" summary="This table sescribes the parameters used in the preceeding address specification." 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>Parameter
</strong></font></th>
<th id="r1c2" align="left" colspan="1" rowspan="1" valign="bottom">
<font face="Arial, Helvetica, sans-serif">
<strong>Description
</strong></font></th>
</tr>
</thead><tbody>
<tr align="left" valign="top">
<td id="r2c1" headers="r1c1" align="left" colspan="1" rowspan="1">PROTOCOL
</td>
<td headers="r2c1 r1c2" align="left" colspan="1" rowspan="1">The protocol to be used. The value is TCPS. It is not case sensitive.
</td>
</tr>
<tr align="left" valign="top">
<td id="r3c1" headers="r1c1" align="left" colspan="1" rowspan="1">HOST
</td>
<td headers="r3c1 r1c2" align="left" colspan="1" rowspan="1">The host name or the host IP address.
</td>
</tr>
<tr align="left" valign="top">
<td id="r4c1" headers="r1c1" align="left" colspan="1" rowspan="1">PORT
</td>
<td headers="r4c1 r1c2" align="left" colspan="1" rowspan="1">The TCP/IP with SSL port. Specify the port as either a number or the alias name mapped to the port in the <code>/etc/services</code> file. Oracle Corporation recommends a value of 2484.
</td>
</tr></tbody>
</table>
<p>The following shows a sample TCP/IP with SSL protocol address:
</p>
<pre>(ADDRESS= (PROTOCOL=TCPS)
(HOST=MADRID)
(PORT=2484))
</pre>
</div class="sect2">
</div class="sect1"><a id="BIICGDGC" name="BIICGDGC"></a>
<div class="sect1"><a id="sthref574" name="sthref574"></a>
<h2>
<font face="arial, helvetica, sans-serif" color="#330099">Setting Up the Listener for TCP/IP or TCP/IP with SSL
</font>
</h2>
<p>Oracle Corporation recommends that you reserve a port for the listener in the <code>/etc/services</code> file of each Oracle Net Services node on the network. The default port is 1521. The entry lists the listener name and the port number, for example:
</p>
<pre><em><code>oraclelistener</code></em> 1521/tcp
</pre>
<p>In this example <em><code>oraclelistener</code></em> is the name of the listener, as defined in the <code>listener.ora</code> file. Reserve more than one port if you intend to start more than one listener.
</p>
<p>If you use intend to use SSL, you should define a port for TCP/IP with SSL in the <code>/etc/services</code> file. Oracle Corporation recommends a value of 2484. For example:
</p>
<pre><em>oraclelistenerssl</em> 2484/tcps
</pre>
<p>In this example <em><code>oraclelistenerssl</code></em> is the name of the listener, as defined in the <code>listener.ora</code> file. Reserve more than one port if you intend to start more than one listener.
</p>
</div class="sect1"><a id="i34594" name="i34594"></a>
<div class="sect1">
<!--
infolevel=all
infotype=general
--><a id="sthref575" name="sthref575"></a>
<h2>
<font face="arial, helvetica, sans-serif" color="#330099">Oracle Enterprise Manager<a id="sthref576" name="sthref576"></a><a id="sthref577" name="sthref577"></a>
</font>
</h2>
<p>Use the <code>oratclsh</code> executable to debug your Tcl scripts. Before executing <code>oratclsh</code>, set the TCL_LIBRARY environment variable to specify the <code>$ORACLE_HOME/network/agent/tcl</code> directory.
</p>
<div align="center">
<br /><table summary="This is a layout table to format a tip" title="This is a layout table to format a tip" 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>See Also:</strong>
</font>
</p><em>Intelligent Agent User's Guide </em>for more information on debugging Tcl scripts.
</td>
</tr></tbody>
</table><br />
</div>
</div class="sect1"><a id="i35246" name="i35246"></a>
<div class="sect1">
<!--
infolevel=all
infotype=general
--><a id="sthref578" name="sthref578"></a>
<h2>
<font face="arial, helvetica, sans-serif" color="#330099">Configuring Oracle Intelligent Agent for Oracle SNMP
</font>
</h2>
<p>Although Oracle Intelligent Agent does not require Simple Network Management Protocol (SNMP) to work, you can configure Oracle SNMP support before starting the Intelligent Agent. Note that all of the configuration files for the following steps are located in the <code>$ORACLE_HOME/network/snmp/peer</code> directory. <a id="sthref579" name="sthref579"></a><a id="sthref580" name="sthref580"></a><a id="sthref581" name="sthref581"></a><a id="sthref582" name="sthref582"></a><a id="sthref583" name="sthref583"></a>
</p>
<div class="sect2">
<!--
infolevel=all
infotype=general
--><a id="sthref584" name="sthref584"></a>
<h3>
<font face="arial, helvetica, sans-serif" color="#330099">
Configure the Master Agent <a id="sthref585" name="sthref585"></a><a id="sthref586" name="sthref586"></a>
</font>
</h3>
<p>In the <code>CONFIG.master</code> file, make the following change:
</p>
<ol type="1" start="1">
<li>
<p>Search for the line beginning with MANAGER.
</p>
</li>
<li>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -