appb_hp.htm

来自「Debian中文参考手册,系统介绍了Debian系统」· HTM 代码 · 共 472 行 · 第 1/2 页

HTM
472
字号
<!DOCTYPE html
   PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//en"
   "http://www.w3c.org/TR/1999/PR-xhtml1-19991210/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" sml:lang="en" lang="en">
<head>

<!-- Run date = May 1, 2002 19:19:1 -->
<meta name="XHTML Generator" content="Oracle SGML to XHTML converter - Version 3.1.2">
<title> Tuning for Oracle9i on HP</title>
<link rel="next" href="appc_ln.htm" title="Next">
</head>
<body bgcolor="#ffffff">
<a id="top" name="top"></a>
<a href="#BEGIN">Skip Headers</a><br><br>
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td align="left" valign="top"><font face="helvetica, arial, sans-serif">
<b>Oracle9<em>i</em> Administrator's Reference  </b>
<br />
<b>Release 2 (9.2.0.1.0) for UNIX Systems: AIX-Based Systems, Compaq Tru64 UNIX, HP 9000 Series HP-UX, Linux Intel, and Sun Solaris</b>
<br />
Part No. A97297-01
</font>
</td>
<td valign="bottom" align="right" width="144">
<table cellspacing="0" cellpadding="0" width="100%">
</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>
<hr />
<p>
<a href="appa_aix.htm">
<img src="../Support/gifs/larrow.gif" alt="Previous" border="0" height="30" width="30"></a>
<a href="appc_ln.htm">
<img src="../Support/gifs/rarrow.gif" alt="Next" border="0" height="30" width="30"></a>
</p>
<a name="BEGIN"></a>
<div class="IND">
<!-- End Header --><a id="g639540" name="g639540"></a><a id="i637463" name="i637463"></a>
<h1>
<font face="arial, helvetica, sans-serif" color="#330099">B
<br /> Tuning for Oracle9<em>i</em> on HP
</font>
</h1>
<p>This appendix contains the following tuning information for Oracle9<em>i</em> on HP:
</p>
<ul>
<li type="disc">
<p><a href="#CHDGJCIB">HP-UX Shared Memory Segments for a 64-Bit Oracle Instance </a>
</p>
</li>
<li type="disc">
<p><a href="#i636964">HP SCHED&#095;NOAGE Scheduling Policy</a>
</p>
</li>
<li type="disc">
<p><a href="#i637009">Lightweight Timer Implementation</a>
</p>
</li>
<li type="disc">
<p><a href="#i637036">Asynchronous I&#047;O</a>
</p>
</li>
</ul><a id="CHDGJCIB" name="CHDGJCIB"></a>
<div class="sect1"><a id="sthref667" name="sthref667"></a>
<h2>
<font face="arial, helvetica, sans-serif" color="#330099">HP-UX Shared Memory Segments for a 64-Bit Oracle Instance 
</font>
</h2>
<p>When a 64-bit Oracle server creates a database instance, the server creates memory segments by dividing the available shared memory by the value of the HP-UX SHMMAX kernel parameter. For example, if 64 GB of shared memory is available for a single Oracle instance and the value of the SHMMAX parameter is 1 GB, the Oracle server creates 64 shared memory segments for that instance.
</p>
<p>In laboratory tests, performance degradation occurs when an Oracle instance creates more than six shared memory segments. This is because each shared memory segment receives a unique protection key when the Oracle server creates the instance. There are six protection keys available for shared memory segments on the PA-RISC processor. If your system has more than six shared memory segments, the HP-UX operating system displays protection key faults.Oracle Corporation recommends that you set the SHMMAX parameter value to the amount of available physical memory on the system. Doing this ensures that the entire shared memory for a single Oracle instance is assigned to one shared memory segment and your instance needs only one protection key. To display the list of active shared memory segments on the system, enter the following command: 
</p>
<pre>&#036; ipcs -m

</pre>
<p>If the Oracle server creates more than six segments for the instance, increase the value of the SHMMAX kernel parameter. 
</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>See Also:</strong>
</font>
</p><em>Oracle9i Installation Guide Release 2 (9.2.0.1.0) for UNIX Systems</em> for more information on recommended kernel parameter settings.
</td>
</tr></tbody>
</table><br />
</div>
</div class="sect1"><a id="i636964" name="i636964"></a>
<div class="sect1">
<!--
infolevel=all
infotype=general
--><a id="sthref668" name="sthref668"></a>
<h2>
<font face="arial, helvetica, sans-serif" color="#330099"><a id="sthref669" name="sthref669"></a><a id="sthref670" name="sthref670"></a>HP SCHED&#095;NOAGE Scheduling Policy
</font>
</h2>
<p>On HP, most processes use a time sharing scheduling policy. Time sharing can have detrimental effects on Oracle performance by descheduling an Oracle process during critical operations, for example, holding a latch. HP has a modified scheduling policy, referred to as SCHED&#095;NOAGE, that specifically addresses this issue. Unlike the normal time sharing policy, a process scheduled using SCHED&#095;NOAGE does not increase or decrease in priority, nor is it preempted.
</p>
<p>This feature is suited to online transaction processing (OLTP) environments because OLTP environments can cause competition for critical resources. In laboratory tests, the use of the SCHED&#095;NOAGE policy with Oracle9<em>i</em> increased performance by up to 10 percent in OLTP environments. 
</p>
<p>The SCHED&#095;NOAGE policy creates little or no gains in decision support (DSS) environments because there is little resource competition in these environments. Because each application and server environment is different, you should test and verify whether your environment benefits from the SCHED&#095;NOAGE policy.
</p>
<div class="sect2">
<!--
infolevel=all
infotype=general
--><a id="sthref671" name="sthref671"></a>
<h3>
<font face="arial, helvetica, sans-serif" color="#330099">
Enabling SCHED&#095;NOAGE for Oracle9<em>i</em>
</font>
</h3>
<p>To allow Oracle9<em>i</em> to use the SCHED&#095;NOAGE scheduling policy, the group that the Oracle software owner belongs to (<a id="i636981" name="i636981"></a><code>dba</code>), must have the RTSCHED and RTPRIO privileges to change the scheduling policy and set the priority level for Oracle processes. To give the <code>dba</code> group these privileges, as the <code>root</code> user enter the following command:
</p>
<pre>&#035; setprivgrp dba RTSCHED RTPRIO 

</pre>
<p>To retain these privileges after rebooting, create the <code>&#047;etc&#047;privgroup</code> file, if it does not exist on your system, and add the following line to it: 
</p>
<pre>dba RTSCHED RTPRIO

</pre>
<p>Add the HPUX&#095;SCHED&#095;NOAGE parameter to the initialization file for each instance, setting the parameter to an integer value to specify process priority levels. On HP-UX 11.0, the range is 153 to 255 and on HP-UX 11i, the range is 178 to 255. If the parameter setting is out of range, Oracle9<em>i</em> sets the parameter to a permissible value and continues with the SCHED&#095;NOAGE policy with the new value. It also generates a message in the <code>alert&#095;</code><em><code>sid</code></em><code>.log</code> file about the new setting. Oracle Corporation recommends that you set the parameter to the required priority level for Oracle processes. If the parameter setting is out of range, Oracle9<em>i</em> release 2 (9.2.0.1) sets it to a permissible value. It also generates a message about the new setting in the alert file. You should set the parameter value to achieve the process priority level that you want.
</p>
<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>The HP documentation, the <code>rtsched</code>(<code>1)</code>man page, and the <code>rtsched(2)</code> man page for more information on priority policies and priority ranges.
</td>
</tr></tbody>
</table><br />
</div class="sect2">
</div class="sect1"><a id="i637009" name="i637009"></a>
<div class="sect1">
<!--
infolevel=all
infotype=general
--><a id="sthref672" name="sthref672"></a>
<h2>
<font face="arial, helvetica, sans-serif" color="#330099"><a id="sthref673" name="sthref673"></a>Lightweight Timer Implementation
</font>
</h2>
<p>Unlike Oracle9<em>i</em> release 1 (9.0.1), Oracle9<em>i</em> release 2 (9.2.0.1.0) on HP-UX systems uses the <code>gethrtime()</code> system library call whether the TIMED&#095;STATISTICS initialization parameter is set to TRUE or FALSE. This enables you to collect run-time statistics at any time while running an Oracle instance. When the TIMED&#095;STATISTICS initialization parameter is set to TRUE, Oracle9<em>i</em> release 1 (9.0.1.0) on HP-UX systems uses the  system library call to calculate elapsed time.
</p>
<p>In laboratory tests, this library call provides a performance improvement of up to 10 percent over an Oracle system not using the gethrtime() system library call when the TIMED&#095;STATISTICS initialization parameter is set to TRUE. In addition, there is no negative impact on Oracle9<em>i</em> release 2 (9.2.0.1.0) OLTP performance while using the gethrtime() system library call when the TIMED&#095;STATISTICS initialization parameter is set to FALSE. 
</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>Oracle9i Installation Guide Release 2 (9.2.0.1.0) for UNIX Systems for information on HP patches required for Oracle9<em>i</em>.
</td>
</tr></tbody>
</table><br />
</div>
</div class="sect1"><a id="i637036" name="i637036"></a>
<div class="sect1">
<!--
infolevel=all
infotype=general
--><a id="sthref674" name="sthref674"></a>
<h2>
<font face="arial, helvetica, sans-serif" color="#330099"><a id="sthref675" name="sthref675"></a>Asynchronous I&#047;O
</font>
</h2>
<p>The asynchronous I&#047;O pseudo-driver on HP allows the Oracle server to perform I&#047;O to raw disk partitions using an asynchronous method, resulting in less I&#047;O overhead and higher throughput. You can use the asynchronous I&#047;O pseudo-driver on both HP-UX 9000 servers and workstations.
</p>
<div class="sect2">
<!--
infolevel=all
infotype=general
--><a id="sthref676" name="sthref676"></a>
<h3>
<font face="arial, helvetica, sans-serif" color="#330099">
<a id="sthref677" name="sthref677"></a>MLOCK Privilege
</font>
</h3>
<p>To allow Oracle9<em>i</em> to execute asynchronous I&#047;O operations, the group that the Oracle software owner belongs to (<code>dba</code>) must have the MLOCK privilege. To give the <code>dba</code> group the MLOCK privilege:
</p>
<ol type="1" start="1">
<li>
<p>As the <code>root</code> user, enter the following command:
</p>
<pre>&#035; setprivgrp dba MLOCK 

</pre>
</li>
<li>
<p>To retain the MLOCK privilege after rebooting, create the <code>&#047;etc&#047;privgroup</code> file, if it does not exist on your system, and add the following line to it: 
</p>
<pre>dba MLOCK 

</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 the Oracle software owner does not have the MLOCK privilege, Oracle9<em>i</em> on HP-UX generates trace files that include the following error:
<p><code>Ioctl ASYNC&#095;CONFIG error, errno &#061; 1</code>
</p>
</td>
</tr></tbody>
</table><br />
</li>
</ol>
</div class="sect2">
<div class="sect2">
<!--
infolevel=all
infotype=general
--><a id="sthref678" name="sthref678"></a>
<h3>
<font face="arial, helvetica, sans-serif" color="#330099">

⌨️ 快捷键说明

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