📄 ch5_net.htm
字号:
<p>Change the value of the MANAGER parameter to the IP address or hostname of the system where you want SNMP trap messages sent.
</p>
<p>You can also make other changes to the <code>CONFIG.master</code> file as documented within the file.
</p>
</li>
<li>
<p>On AIX systems only, add the following line to the <code>/etc/snmpd.conf</code> file, where <em><code>ip_address</code></em> is the IP address of the Oracle subagent:
</p>
<pre>smux 0.0 " " <em>ip_address</em>
</pre>
</li>
</ol>
</div class="sect2">
<div class="sect2">
<!--
infolevel=all
infotype=general
--><a id="sthref587" name="sthref587"></a>
<h3>
<font face="arial, helvetica, sans-serif" color="#330099">
Configure the Encapsulator<a id="sthref588" name="sthref588"></a><a id="sthref589" name="sthref589"></a><a id="sthref590" name="sthref590"></a>
</font>
</h3>
<p>To configure the encapsulator, perform the following steps:
</p>
<ol type="1" start="1">
<li>
<p>Add the following line to the <code>snmpd.conf</code> file, where <em><code>hostname_or_IP_address</code></em> represents the local system IP address or host name:
</p>
<pre>trap <em>hostname_or_IP_address</em>
</pre>
</li>
<li>
<p>On AIX systems only, modify the port numbers specified for the NEW_SNMPD_PORT and NEW_TRAPD_PORT variables in the <code>start_peer</code> script, if necessary.
</p>
<p>The port number specified for the NEW_SNMPD_PORT variable must be different to the port number specified for the NEW_TRAPD_PORT variable.
</p>
</li>
<li>
<p>On all platforms except AIX, complete the following steps:
</p>
<ol type="a">
<li>
<p>If necessary, modify the port number specified in the <code>CONFIG.encap</code> file. The default port number is 1161.
</p>
</li>
<li>
<p>If you modified the port number in step a, change the value specified for the NEW_SNMPD_PORT variable in the <code>start_peer</code> script to this port number.
</p>
</li>
<li>
<p>If necessary, modify the value specified for the NEW_TRAPD_PORT variable.
</p>
<p>This variable specifies the PEER encapsulator port to which the <code>snmpd</code> agent sends traps. This port number must be different to the port number specified for the NEW_SNMPD_PORT variable.
</p>
</li>
</ol>
</li>
</ol>
</div class="sect2">
<div class="sect2">
<!--
infolevel=all
infotype=general
--><a id="sthref591" name="sthref591"></a>
<h3>
<font face="arial, helvetica, sans-serif" color="#330099">
Verify the Location of the SNMP Daemon in the start_peer Script <a id="sthref592" name="sthref592"></a><a id="sthref593" name="sthref593"></a><a id="sthref594" name="sthref594"></a>
</font>
</h3>
<p>The <code>start_peer</code> script contains a line similar to the following, where <em><code>snmpd_executable_path</code></em> is the path of the <code>snmpd</code> executable:
</p>
<pre>SNMPD=<em>snmpd_executable_path</em>
</pre>
<p>Make sure that <em><code>snmpd_executable_path</code></em> is the location of the <code>snmpd</code> executable on your system.
</p>
</div class="sect2">
<div class="sect2">
<!--
infolevel=all
infotype=general
--><a id="sthref595" name="sthref595"></a>
<h3>
<font face="arial, helvetica, sans-serif" color="#330099">
Start the SNMP Components
</font>
</h3>
<p>To start the SNMP components, perform the following steps:
</p>
<ol type="1" start="1">
<li>
<p>Enter the following commands to verify that the SNMP components (<code>master_peer</code>, <code>encap_peer</code>, and <code>snmpd</code>) are <em>not</em> running:
</p>
<pre>$ ps -aef | grep peer
$ ps -aef | grep snmp
</pre>
<p> If any of the components are running, log in as the <code>root</code> user and use the <code>kill</code> command to terminate the processes before proceeding.
</p>
</li>
<li>
<p>On AIX systems only, enter the following command as the <code>root</code> user to start the native AIX SNMP agent:
</p>
<pre># startsrc -s snmpd "-f /tmp/snmpd.log"
</pre>
<p>This command starts the SNMP daemon and logs information in the <code>/tmp/snmpd.log</code> file.
</p>
</li>
<li>
<p>On all platforms except AIX, complete the following steps:
</p>
<ol type="a">
<li>
<p>As the <code>root</code> user, run the <code>start_peer</code> script to start the PEER master agent, PEER encapsulator, and native UNIX SNMP agent:
</p>
<pre># cd $ORACLE_HOME/network/snmp/peer
# ./start_peer -a
</pre>
<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>If you do not have the native UNIX SNMP agent on your system, yo must <em>not</em> use the PEER encapsulator. To start the master agent only, enter <code>start_peer -m</code>.
</td>
</tr></tbody>
</table><br />
</li>
<li>
<p>Enter the following commands to verify that the SNMP components are running:
</p>
<pre># ps -aef | grep peer
# ps -aef | grep snmp
</pre>
</li>
</ol>
</li>
</ol>
</div class="sect2">
<div class="sect2">
<!--
infolevel=all
infotype=general
--><a id="sthref596" name="sthref596"></a>
<h3>
<font face="arial, helvetica, sans-serif" color="#330099">
Configure and Start the Database Subagent
</font>
</h3>
<p>For information on configuring and starting the database subagent (the Oracle Intelligent Agent), see the <em>Oracle Enterprise Manager Configuration Guide</em>.
</p>
</div class="sect2">
</div class="sect1"><a id="i26528" name="i26528"></a>
<div class="sect1">
<!--
infolevel=all
infotype=general
--><a id="sthref597" name="sthref597"></a>
<h2>
<font face="arial, helvetica, sans-serif" color="#330099">Oracle Advanced Security<a id="sthref598" name="sthref598"></a><a id="sthref599" name="sthref599"></a>
</font>
</h2>
<p>When you install Oracle Advanced Security, three <code>.bak</code> files are created: <code>naeet.o.bak</code>, <code>naect.o.bak</code>, and <code>naedhs.o.bak</code>. These files are located in the <code>$ORACLE_HOME/lib</code> directory. They are required for relinking during deinstallation of Oracle Advanced Security. Do not delete them.
</p>
</div class="sect1"><a id="CHDCDFJF" name="CHDCDFJF"></a>
<div class="sect1"><a id="sthref600" name="sthref600"></a>
<h2>
<font face="arial, helvetica, sans-serif" color="#330099">Calling 32-Bit External Procedures from PL/SQL (AIX, HP, and Solaris 64-Bit Only)
</font>
</h2>
<p>The 64-bit Extproc executable (extproc) and the 32-bit Extproc executable (<code>extproc32)</code> are installed in the <code>$ORACLE_HOME/bin</code> directory. By default, the <code>extproc</code> executable is enabled to run 64-bit external procedures. To enable 32-bit external procedures:
</p>
<ol type="1" start="1">
<li>
<p>Set the value of the PROGRAM parameter in the <code>listener.ora</code> file:
</p>
<pre>(PROGRAM=extproc32)
</pre>
</li>
<li>
<p>Include the <code>$ORACLE_HOME/lib32</code> directory in one of the following environment variables, depending on your platform:
</p>
<table title="Path environment variables." summary="Lists the path environment variables for AIX, HP, and Solaris 64-bit." 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
</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
</td>
<td headers="r3c1 r1c2" align="left" colspan="1" rowspan="1">SHLIB_PATH
</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">LD_LIBRARY_PATH
</td>
</tr></tbody>
</table>
</li>
<li>
<p>Shut down and restart the listener.
</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>You can configure the listener to run either 32-bit or 64-bit external procedures, but not both at the same time.
</td>
</tr></tbody>
</table><br />
</div>
</li>
</ol>
</div class="sect1">
</p>
</div>
<!-- Start Footer -->
<div>
<hr />
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td valign="bottom" width="33%">
<table cellspacing="0" cellpadding="0">
<tr>
<td align="center">
<a href="ch4_comp.htm">
<img src="../Support/gifs/larrow.gif" alt="Previous" border="0" height="30" width="30"></a>
</td>
<td align="center">
<a href="appa_aix.htm">
<img src="../Support/gifs/rarrow.gif" alt="Next" border="0" height="30" width="30"></a>
</td>
</tr>
</table>
</td>
<td align="center" width="34%">
<a href="../Support/html/cpyr.htm">
<img src="../Support/gifs/oracle.gif" alt="Oracle Logo" border="0"><br />
<font size="-2">Copyright © 1996, 2002 Oracle Corporation</font></a>
<br />
<font size="-2">All rights reserved</font>
</td>
<td valign="bottom" align="right" width="33%">
<table cellspacing="0" cellpadding="0" width="144">
</tr>
<td align="center" valign="top" width="25%"><a href="toc.htm"><img src="../Support/gifs/conticon.gif" alt="Go To Table Of Contents" border="0" height="30" width="30"><br /><font size="-2">Contents</font></a></td>
<td align="center" valign="top" width="25%"><a href="index.htm"><img src="../Support/gifs/indxicon.gif" alt="Go To Index" border="0" height="30" width="30"><br /><font size="-2">Index</font></a></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -