appg_ofa.htm
来自「Debian中文参考手册,系统介绍了Debian系统」· HTM 代码 · 共 1,446 行 · 第 1/5 页
HTM
1,446 行
Naming Mount Points for Very Large Databases (VLDBs)
</font>
</h4>
<p>If each disk drive contains database files from one application and there are enough drives for each database to prevent I/O bottlenecks, use the syntax <code>/</code><em><code>pm</code></em><code>/</code><em><code>q</code></em><code>/</code><em><code>dm</code></em> for naming mount points. <a href="#BABFAGGA">Table G-1</a> describes the variables used in this syntax.
</p><a id="sthref797" name="sthref797"></a><a id="BABFAGGA" name="BABFAGGA"></a>
<p><strong><em><font face="arial, helvetica, sans-serif">Table G-1 Syntax for Naming Mount Points
</font></em></strong></p>
<table title="Syntax for Naming Mount Points" summary="This table describes the syntax for naming mount points." 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>Variable
</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"><em><code>pm</code></em>
</td>
<td headers="r2c1 r1c2" align="left" colspan="1" rowspan="1">A mount point name
</td>
</tr>
<tr align="left" valign="top">
<td id="r3c1" headers="r1c1" align="left" colspan="1" rowspan="1"><em><code>q</code></em>
</td>
<td headers="r3c1 r1c2" align="left" colspan="1" rowspan="1">A string denoting that Oracle data is stored in this directory
</td>
</tr>
<tr align="left" valign="top">
<td id="r4c1" headers="r1c1" align="left" colspan="1" rowspan="1"><em><code>dm</code></em>
</td>
<td headers="r4c1 r1c2" align="left" colspan="1" rowspan="1">The value of the initialization parameter DB_NAME (synonymous with the instance <em>sid</em> for single-instance databases)
</td>
</tr></tbody>
</table>
<p>For example, mount points named <code>/u01/oradata/test</code> and <code>/u02/oradata/test</code><em> </em>allocate two drives for the Oracle test database.
</p>
</div class="sect3">
</div class="sect2">
<div class="sect2">
<!--
infolevel=all
infotype=general
--><a id="sthref798" name="sthref798"></a>
<h3>
<font face="arial, helvetica, sans-serif" color="#330099">
Naming Directories
</font>
</h3>
<p>This section describes the naming conventions for OFA compliant directories.
</p>
<div class="sect3">
<!--
infolevel=all
infotype=general
--><a id="sthref799" name="sthref799"></a>
<h4>
<font face="arial, helvetica, sans-serif" color="#330099">
Home Directory Syntax
</font>
</h4>
<p>Name home directories using the syntax <code>/</code><em><code>pm</code></em><code>/</code><em><code>h</code></em><code>/</code><em><code>u. </code></em><a href="#g641068">Table G-2</a> describes the variables used in this syntax.
</p><a id="sthref800" name="sthref800"></a><a id="g641068" name="g641068"></a>
<p><strong><em><font face="arial, helvetica, sans-serif">Table G-2 Syntax for Naming Home Directories
</font></em></strong></p>
<table title="Syntax for Naming Home Directories " summary="This table lists the syntax for naming home directories." 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>Variable
</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"><em><code>pm</code></em>
</td>
<td headers="r2c1 r1c2" align="left" colspan="1" rowspan="1">A mount point name
</td>
</tr>
<tr align="left" valign="top">
<td id="r3c1" headers="r1c1" align="left" colspan="1" rowspan="1"><em><code>h</code></em>
</td>
<td headers="r3c1 r1c2" align="left" colspan="1" rowspan="1">A standard directory name
</td>
</tr>
<tr align="left" valign="top">
<td id="r4c1" headers="r1c1" align="left" colspan="1" rowspan="1"><em><code>u</code></em>
</td>
<td headers="r4c1 r1c2" align="left" colspan="1" rowspan="1">The name of the owner of the directory
</td>
</tr></tbody>
</table>
<p>For example,<em> </em><code>/u01/app/oracle</code> is the Oracle software owner home directory (also referred to as the Oracle base directory, the default directory used by the installer) and <code>/u01/app/applmgr</code> is an Oracle applications software owner home directory.
</p>
<p>Placing home directories at the same level in the UNIX file system is advantageous because it allows the collection of applications owner login home directories on different mount points to be referred to using the single pattern matching string, <code>/*/app/*</code>.
</p>
</div class="sect3">
<div class="sect3">
<!--
infolevel=all
infotype=general
--><a id="sthref801" name="sthref801"></a>
<h4>
<font face="arial, helvetica, sans-serif" color="#330099">
Referring to Pathnames
</font>
</h4>
<p>Refer to explicit pathnames only in files designed specifically to store them, such as the password file, <code>/etc/passwd</code>, and the Oracle <code>oratab</code> file.<em> </em>Refer to group memberships only in the <code>/etc/group</code> file.
</p>
</div class="sect3">
<div class="sect3">
<!--
infolevel=all
infotype=general
--><a id="sthref802" name="sthref802"></a>
<h4>
<font face="arial, helvetica, sans-serif" color="#330099">
Software Directories
</font>
</h4>
<p>To help fulfill the OFA feature of simultaneously executing multiple versions of application software, store each version of the Oracle9<em>i</em> Server software in a directory matching the pattern<em> </em><code>/</code><em><code>pm</code></em><code>/</code><em><code>h</code></em><code>/</code><em><code>u</code></em><code>/product/</code><em><code>v</code></em><em>.</em>
</p>
<p><a href="#g641084">Table G-3</a> describes the variables used in this syntax.
</p><a id="sthref803" name="sthref803"></a><a id="g641084" name="g641084"></a>
<p><strong><em><font face="arial, helvetica, sans-serif">Table G-3 Syntax for Naming Oracle9<em>i</em> Server Software Directories
</font></em></strong></p>
<table title="Syntax for Naming Oracle9<em>i</em> Server Software Directories " summary="This table describes the syntax for Naming Oracle9i Server Software Directories." 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>Variable
</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"><em><code>pm</code></em>
</td>
<td headers="r2c1 r1c2" align="left" colspan="1" rowspan="1">A mount point name
</td>
</tr>
<tr align="left" valign="top">
<td id="r3c1" headers="r1c1" align="left" colspan="1" rowspan="1"><em><code>h</code></em>
</td>
<td headers="r3c1 r1c2" align="left" colspan="1" rowspan="1">A standard directory name
</td>
</tr>
<tr align="left" valign="top">
<td id="r4c1" headers="r1c1" align="left" colspan="1" rowspan="1"><em><code>u</code></em>
</td>
<td headers="r4c1 r1c2" align="left" colspan="1" rowspan="1">The name of the owner of the directory
</td>
</tr>
<tr align="left" valign="top">
<td id="r5c1" headers="r1c1" align="left" colspan="1" rowspan="1"><em><code>v</code></em>
</td>
<td headers="r5c1 r1c2" align="left" colspan="1" rowspan="1">The version of the software
</td>
</tr></tbody>
</table>
<p>For example, <code>/u01/app/oracle/product/9.2.0.1.0</code><em> </em>indicates the Oracle9<em>i</em> parent directory. Set the ORACLE_HOME environment variable to this directory.
</p>
</div class="sect3">
<div class="sect3">
<!--
infolevel=all
infotype=general
--><a id="sthref804" name="sthref804"></a>
<h4>
<font face="arial, helvetica, sans-serif" color="#330099">
Naming Subdirectories
</font>
</h4>
<p>To facilitate the organization of administrative data, Oracle Corporation recommends that you store database-specific administration files in subdirectories matching the pattern<em> </em><code>/</code><em><code>h</code></em><code>/admin/</code><em><code>d</code></em><code>/</code><em><code>a</code></em><code>/</code>, where <em><code>h</code></em> is the Oracle software owner's home directory, <em><code>d</code></em> is the database name (DB_NAME), and <em><code>a</code></em> is a subdirectory for each of the database administration files. <a href="#g641103">Table G-4</a> describes the database administration file subdirectories.
</p><a id="sthref805" name="sthref805"></a><a id="g641103" name="g641103"></a>
<p><strong><em><font face="arial, helvetica, sans-serif">Table G-4 Subdirectories for Database Administration Files
</font></em></strong></p>
<table title="Subdirectories for Database Administration Files " summary="This table describes the database admintration file subdirectories." 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>Subdirectory
</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"><code>adhoc</code>
</td>
<td headers="r2c1 r1c2" align="left" colspan="1" rowspan="1">Ad hoc SQL scripts for a particular database
</td>
</tr>
<tr align="left" valign="top">
<td id="r3c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>arch</code>
</td>
<td headers="r3c1 r1c2" align="left" colspan="1" rowspan="1">Archived redo log files
</td>
</tr>
<tr align="left" valign="top">
<td id="r4c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>adump</code>
</td>
<td headers="r4c1 r1c2" align="left" colspan="1" rowspan="1">Audit files<br />(Set the AUDIT_FILE_DEST initialization parameter to the <code>adump</code> directory. Clean out this subdirectory periodically.)
</td>
</tr>
<tr align="left" valign="top">
<td id="r5c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>bdump</code>
</td>
<td headers="r5c1 r1c2" align="left" colspan="1" rowspan="1">Background process trace files
</td>
</tr>
<tr align="left" valign="top">
<td id="r6c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>cdump</code>
</td>
<td headers="r6c1 r1c2" align="left" colspan="1" rowspan="1">Core dump files
</td>
</tr>
<tr align="left" valign="top">
<td id="r7c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>create</code>
</td>
<td headers="r7c1 r1c2" align="left" colspan="1" rowspan="1">Programs used to create the database
</td>
</tr>
<tr align="left" valign="top">
<td id="r8c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>exp</code>
</td>
<td headers="r8c1 r1c2" align="left" colspan="1" rowspan="1">Database export files
</td>
</tr>
<tr align="left" valign="top">
<td id="r9c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>logbook</code>
</td>
<td headers="r9c1 r1c2" align="left" colspan="1" rowspan="1">Files recording the status and history of the database
</td>
</tr>
<tr align="left" valign="top">
<td id="r10c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>pfile</code>
</td>
<td headers="r10c1 r1c2" align="left" colspan="1" rowspan="1">Instance parameter files
</td>
</tr>
<tr align="left" valign="top">
<td id="r11c1" headers="r1c1" align="left" colspan="1" rowspan="1"><code>udump</code>
</td>
<td headers="r11c1 r1c2" align="left" colspan="1" rowspan="1">User SQL trace files
</td>
</tr></tbody>
</table>
<p>For example, the <code>adhoc</code> subdirectory has the pathname <code>/u01/app/oracle/admin/sab/adhoc/</code> if the <code>adhoc</code> subdirectory is part of the database named sab.
</p>
</div class="sect3">
</div class="sect2">
<div class="sect2">
<!--
infolevel=all
infotype=general
--><a id="sthref806" name="sthref806"></a>
<h3>
<font face="arial, helvetica, sans-serif" color="#330099">
Naming Database Files
</font>
</h3>
<p>The following naming convention for database files ensures that they are easily identifiable:
</p>
<table title="Naming Database Files" summary="This table lists the naming convention for database files." 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>File Type
</strong></font></th>
<th id="r1c2" align="left" colspan="1" rowspan="1" valign="bottom">
<font face="Arial, Helvetica, sans-serif">
<strong>File Naming Convention
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?