Академический Документы
Профессиональный Документы
Культура Документы
This appendix contains information on the Optimal Flexible Architecture (OFA) standard. The OFA
standard is a set of configuration guidelines created to ensure fast, reliable Oracle databases that
require little maintenance. This appendix contains the following sections:
• Optimal Flexible Architecture
• Optimal Flexible Architecture Implemented on UNIX
Hardware Support
In most cases, investment in new hardware is not required to take advantage of the OFA standard.
Mount Points
This section describes the naming conventions for mount points.
Naming Directories
This section describes the naming conventions for OFA compliant directories.
Referring to Pathnames
Refer to explicit pathnames only in files designed specifically to store them, such as the password
file, /etc/passwd, and the Oracle oratab file. Refer to group memberships only in the
/etc/group file.
Software Directories
To help fulfill the OFA feature of simultaneously executing multiple versions of application
software, store each version of the Oracle9i Server software in a directory matching the pattern
/pm/h/u/product/v.
Table G-3 describes the variables used in this syntax.
Table G-3 Syntax for Naming Oracle9i Server Software Directories
Variable Description
pm A mount point name
h A standard directory name
u The name of the owner of the directory
v The version of the software
For example, /u01/app/oracle/product/9.2.0.1.0 indicates the Oracle9i parent
directory. Set the ORACLE_HOME environment variable to this directory.
Naming Subdirectories
To facilitate the organization of administrative data, Oracle Corporation recommends that you store
database-specific administration files in subdirectories matching the pattern /h/admin/d/a/,
where h is the Oracle software owner's home directory, d is the database name (DB_NAME), and a
is a subdirectory for each of the database administration files. Table G-4 describes the database
administration file subdirectories.
Table G-4 Subdirectories for Database Administration Files
Subdirectory Description
adhoc Ad hoc SQL scripts for a particular database
arch Archived redo log files
Subdirectory Description
adump Audit files
(Set the AUDIT_FILE_DEST initialization parameter to the adump directory.
Clean out this subdirectory periodically.)
bdump Background process trace files
cdump Core dump files
create Programs used to create the database
exp Database export files
logbook Files recording the status and history of the database
pfile Instance parameter files
udump User SQL trace files
For example, the adhoc subdirectory has the pathname
/u01/app/oracle/admin/sab/adhoc/ if the adhoc subdirectory is part of the database
named sab.
Note:
Do not store files other than control files, redo log files, or datafiles associated
with database d in the path /pm/q/d.
Following this convention, you could produce, for example, a datafile with the name
/u03/oradata/sab/system01.dbf, making it easy to see the database to which the file
belongs.
See Also:
Naming Tablespaces
Name tablespaces descriptively using a maximum of eight characters. Although Oracle9i tablespace
names can be 30 characters long, portable UNIX filenames are restricted to 14 characters. The
recommended standard for a datafile basename is tn.dbf, where t is a descriptive tablespace
name and n is a two-digit string. Because the extension plus the two-digit string occupy a total of
six characters, only eight characters remain for the tablespace name.
Descriptive names enable the datafile to be associated with the tablespace that uses it. For example,
the names GLD and GLX might be used for the tablespaces storing General Ledger data and
indices, respectively.
Note:
Directory Structure
The following sections describe the directory structure for OFA compliant installations.
The catproc.sql file in turn runs the scripts for creating the standard PL/SQL
packages, such as DBMS_SQL and DBMS_OUTPUT.
Filename Extensions
Table G-14 describes filename extensions.
Table G-14 Filename Extensions
Extension Description
Extension Description
.aud Oracle audit file
.bdf X11 font description file
.bmp X11 bitmap file
.c C source file
.ctl SQL*Loader control file; Oracle Server control file
.dat SQL*Loader datafile
.dbf Oracle Server tablespace file
.dmp Export file
.doc ASCII text file
.env Shell script file for setting environment
.h C header file; also, sr.h is a SQL*Report Writer help file
.jar Java class archive
.l UNIX manual page
.lis Output of SQL*Plus script
.log Installation log files; Oracle Server redo log file
.mk Make file
.msb Multilingual Option message file (binary)
.msg Multilingual Option message file (text)
.o Object module
.ora Oracle configuration file
.orc Installation prototype file
.pc Pro*C source file
.pco Pro*COBOL source file
.ppd Printer driver file
.sh Bourne shell script file
.sql SQL script file
.sys Bourne shell script file
.tab SQL script file
.trc Trace file
.utd Uniform Terminal Definition file
.zip Zip file