Oracle8i Enterprise Edition for Windows NT Getting Started
Release 8.1.5 for Windows NT

A68694-01


Library

Product

Contents

Index

PrevNext

4
Multiple Oracle Homes and Optimal Flexible Architecture

This chapter describes the concepts of multiple Oracle homes and Optimal Flexible Architecture (OFA) for Oracle8i Enterprise Edition for Windows NT.

Specific topics discussed:

Introduction to Multiple Oracle Homes and OFA

When you install an Oracle database, you are probably installing one of the largest applications your computer is capable of supporting. Using multiple Oracle homes and OFA provides many advantages when administering large databases. The following advantages are the most important:

Multiple Oracle Homes Overview

This section provides an overview of multiple Oracle homes. It includes the following topics:

What Is an Oracle Home?

An Oracle home corresponds to the environment in which Oracle products run. This environment includes the following:

Oracle homes also have a name associated with them, which you specify along with their location during installation.

Benefits of Using Multiple Oracle Homes

The main benefit of using multiple Oracle homes is that you can run multiple releases of the same products concurrently. For example, you can test an 8.x.x database patch, before you run your production database 8.x.x against it.

Multiple Oracle Home Functionality in Different Releases

Modifications to multiple Oracle home functionality have occurred since it was introduced in release 8.0.4. This table helps you determine the capabilities of your Oracle home depending on the release of Oracle8i Enterprise Edition you are using.


Release Oracle Home Functionality
Before 8.0.4  Releases of Oracle for Windows NT and Windows 95 prior to release 8.0.4 only supported single Oracle homes, allowing you to install and run Oracle products in a single Oracle home. Different releases of Oracle products could be installed in the same Oracle home provided they had different first or second-digit release numbers. For example, you could install release 7.2 products and release 7.3 products and release 7.x and 8.x products in the same Oracle home. However, you could not install multiple third-digit releases of the same products. For example, you could not install release 7.3.2 and release 7.3.3 of the same Oracle products on the same computer; one installation would overwrite the other. 
8.0.4 to 8.0.5  You can install one or more releases of Oracle products in multiple Oracle homes. For example, with multiple Oracle homes, you can install releases 8.0.x and 8.1.3 products or 7.x and 8.0.x products in different Oracle homes on the same computer. 

You can also install different releases of Oracle products in the same Oracle home provided they have different first or second-digit release numbers. For example, you can install release 7.2 products and release 8.0.x products in the same Oracle home. 

8.1.3 to 8.1.5  Releases 8.1.3, 8.1.4, and 8.1.5 have the same multiple Oracle home functionality as release 8.0.4 and later, but with these differences: 
  • You cannot install releases 8.1.3, 8.1.4, or 8.1.5 into an Oracle home that was created using the old Installer. (The old Installer was called Oracle Installer; the new Java-based Installer is called Oracle Universal Installer.)

  •  
  • You cannot install releases of Oracle prior to release 8.1.3 into an Oracle home that was created by release 8.1.3, 8.1.4., or 8.1.5.

  •  
  • Releases 8.1.3, 8.1.4, and 8.1.5 must be installed in separate Oracle homes. You cannot have more than one release per Oracle home.
8.1.5  You can use release 8.1.5 listener to spawn release 8.1., 8.0, or 7.3.x databases. However, in a mixed environment, you cannot enable the use of shared sockets. 

Some restrictions exist in using 8.1.5 listeners to spawn earlier versions of the database. These include: 

  • You should enable process mode external procedures for release 8.1.5 if you want to spawn 8.0.3 databases.

  •  
  • You must install the 8.0.4.0.3 (or later) patch for Net8.

  •  
  • You cannot enable shared sockets. 


WARNING:

Multiple Oracle homes functionality only works with releases 8.0.4 and later. It does not work if you have, for example, release 7.3.3 products already installed on your computer. You cannot install release 7.3.4 products in a separate Oracle home.


One-Listener Support of Multiple Oracle Homes

You can use one listener for spawning databases for multiple Oracle homes. You only need to add all the System Identifiers (SIDs) to the SID_LIST section in the ORACLE_HOME\NETWORK\ADMIN\LISTENER.ORA file.

Because the SID is unique to a system across different Oracle homes, the listener can spawn the database thread for a specific SID in the correct Oracle home, and the ORACLE_HOME parameter (used in UNIX environments only) is not needed in the LISTENER.ORA.

Multiple Oracle Home Environments

This section describes the differences between multiple Oracle home environments since multiple Oracle homes were first introduced in release 8.0.4.

Release 8.0.4 and Later 8.0.x Oracle Home Environments

If you have release 8.0.4 or later 8.0.x Oracle homes on your computer, note these differences between the first Oracle home you installed and more recent Oracle homes you may install:


Element First Oracle Home Each Additional Oracle Home
Service Names  OracleTNSListener80  Includes the Oracle home name in service names. For example: OracleHOME_NAMETNSListener80 
Program Groups  Oracle for Windows NT 

Oracle home name is not appended to the group. 

Appends the Oracle home name to the program group. For example: Oracle for Windows NT - HOME_NAME
Registry Entries  Located in HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE  Subkeys for each Oracle home added below the HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE subkey (HOME0, HOME1, HOME2, and so on). For more information on the registry keys and subkeys, see Appendix C, "Oracle 8i Configuration Parameters and the Registry"
System Identifier (SID) name for starter database  Automatically named ORCL  Only the first starter database on your computer is called ORCL. Additional starter databases use the naming convention ORCx or ORxx where x is a number appended to ensure the SID is unique. 

Release 8.1 Oracle Home Environment

Release 8.1 Oracle homes are slightly different from pre-8.1 Oracle homes.


Element First Oracle Home Each Additional Oracle Home

Service Names 

OracleHOME_NAMETNSListener 

OracleHOME_NAMETNSListener 

Program Groups 

Oracle - HOME_NAME

Oracle - HOME_NAME

Registry Entries 

Located in HKEY_LOCAL_MACHINE\
SOFTWARE\ORACLE\HOME0 

Subkeys for each Oracle home are added in the HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE subkey. For example, the next subkeys after HOME0 are HOME1, HOME2, HOME3, and so on. For more information on the registry keys and subkeys, see Appendix C, "Oracle 8i Configuration Parameters and the Registry"

System Identifier (SID)1 name and DB_NAME 

Automatically named ORCL. 

For 8.1.3 and 8.1.4, the first starter database on your computer was automatically called ORCL. The second database you created on your computer had a SID of ORCL0. For 8.1.5, you must type in the database name and SID name of your choice. 

Note: Use the Custom option of Oracle Database Configuration Assistant to create your own SID name. 

1 For releases 8.1.3 through 8.1.5, the SID can be a maximum of 64 alphanumeric characters in length. For all previous releases, the SID is a maximum of 4 alphanumeric characters.

Which Products Are Multiple Oracle Home-Enabled?

You can install all products on the CD-ROM into your first Oracle home on a "clean" computer (that is, there is no other Oracle software on the computer) without any conflict.

If you create more Oracle homes, and install the same products that you installed into the first Oracle home, conflicts can arise that can break your original database if the products are not multiple Oracle home enabled (multiple Oracle home products.)

To avoid such problems, check the following product classifications before installing multiple versions of the same product on your computer.

Oracle products are classified as follows:

Products Supporting Multiple Oracle Homes

You can install multiple Oracle home products multiple times in different Oracle homes. All products are multiple Oracle home products unless they are listed in:

"Products Supporting a Single Oracle Home" or

"Products Not Supporting Multiple Oracle Homes"

Products Supporting a Single Oracle Home

You can install single Oracle home products into any Oracle home, but only once per computer. When installing groups of products, if any of the products in the following list are included in the group and already exist on the computer, do not install them a second time:

Products Not Supporting Multiple Oracle Homes

All Oracle7 products and all release 8.0.3 products are non-multiple Oracle home products. You can only install these products into an old-style Oracle home (pre-8.0.4 Oracle home).

Products Not Associated with an Oracle Home

Products not associated with an Oracle home have no restrictions on into how many Oracle homes you install them. They include the following:

When you install these products, the Universal Installer requires that you install them into any Oracle home. However, they will actually be located under Start/Program/Oracle.

Working with Multiple Oracle Homes

Unless you specify otherwise at installation time, the Oracle home in which you installed products most recently is the first directory listed in your PATH (primary home). As such, it has priority over the other Oracle home entries in your PATH.

If you invoke a product from the MS-DOS command prompt, the release of the product invoked is the one in the Oracle home listed first in your path, unless you specifically invoke a different release of the product by one of the following methods:

You can change the value of PATH by using one of the following methods:

Changing the Value of PATH, Using Oracle Home Selector

Oracle Home Selector is a graphical user interface (GUI) tool that enables you to edit your environment path to make an appropriate Oracle home directory your primary home. This tool can only be used when you have multiple, active Oracle home directories on a single computer.

To change the value of PATH using Oracle Home Selector:

  1. Choose Start > Programs > Oracle Installation Products > Oracle Home Selector.

  2. The Oracle Home Selector window appears.
     
  3. Select the Oracle home that you want as the primary Oracle home from the drop-down list.

  4.  
  5. Click OK.

Changing the Value of PATH at the System Level

To change the value of PATH at the system level:

On Windows NT

  1. Choose Start > Settings > Control Panel.

  2. The Control Panel window appears.
     
  3. Double-click the System icon.

  4. The System Properties window appears.
     
  5. Click the Environment tab.

  6. The system variables appear.
     
  7. Edit the value of PATH in the Value field and click Set.

  8.  
  9. Click OK.

On Windows 95 and Windows 98

  1. Open the AUTOEXEC.BAT file.

  2.  
  3. Edit the value of the PATH statement.

  4.  
  5. Reboot your computer.

Changing the Value of PATH at the MS-DOS Command Prompt

To change the value of PATH at the MS-DOS command prompt:

At the MS-DOS command prompt, enter:

C:\> SET PATH=PATHNAME;%PATH%

where PATHNAME is the full path to the binary files for the products you want to use. This change is valid for the current session only. If you want to change the value of your PATH more permanently, use Oracle Home Selector or change the value of PATH at the system level. Both methods are described above.

Exiting the Oracle Universal Installer After Entering Name and PATH

If you exit Oracle Universal Installer after you have entered the name and path for an Oracle home (for example, because there is no more disk space in the path you specified), you cannot specify a different path until you delete the HOMEID key and the IDx key corresponding to that Oracle home from the registry. To do this:

  1.  Read the value of the ORACLE_HOME_NAME parameter for each HOMEID subkey in the HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE key until you find the value that matches the name of the Oracle home you need to delete.

  2.  
  3. Delete the HOMEID subkey you just located.

  4.  
  5. Delete the appropriate IDx subkey in the HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\ ALL_HOMES key, where x has the same value as the ID in HOMEID. For example, if the HOMEID subkey for the home name you want to delete is HOME1, then the appropriate IDx subkey is ID1.

For more information on the registry keys and subkeys, see Appendix C, "Oracle 8i Configuration Parameters and the Registry".

Optimal Flexible Architecture Overview

The Oracle Optimal Flexible Architecture (OFA) is a set of file naming and placement guidelines for Oracle software and databases. It can also be thought of as a set of "good habits" to adopt when organizing Oracle directories and files on your computer. All Oracle products on the Oracle8i Enterprise Edition for Windows NT CD-ROM are OFA-compliant; that is, Oracle Universal Installer places Oracle products in directory locations that follow the OFA guidelines. Although using OFA is not a requirement, Oracle Corporation recommends that you use it if your database will grow in size, or if you plan to have multiple databases.

The aim of OFA is to prevent an entire class of problems that can occur when you have different versions of Oracle software and multiple, growing databases on your computer. OFA is designed to provide significant benefits in the following areas:

For example, one of the many benefits of OFA is that Oracle Universal Installer separates Oracle software executables from database files. Previously, database files were placed in ORACLE_HOME\DATABASE, a subdirectory of the Oracle home directory that also contained Oracle software. Using OFA, Oracle Universal Installer puts Oracle software in ORACLE_BASE\ORACLE_HOME and database files in ORACLE_BASE\ORADATA.

Putting database files in a subdirectory of the Oracle home directory that also contained Oracle software made upgrades unnecessarily difficult. Separating software from data is essential, because over time, when you upgrade a database to the latest release of Oracle8i Enterprise Edition, the new Oracle software executables will be placed in a different Oracle home directory. After the upgrade is judged to have been successful, you can easily remove the old Oracle home directory and reclaim space because the database does not reside there.

Benefits of an OFA-Compliant Database

An OFA-compliant database has the following benefits:

You can run multiple versions of application software simultaneously, enabling you to test and use a new release of an application before abandoning the previous version. Transferring to a new version after an upgrade is simple for the database administrator and transparent for the user.

Characteristics of an OFA-Compliant Database

An OFA-compliant database has the following characteristics:

Differences Between Directory Trees by Release

OFA has caused changes to the Oracle database directory tree. This table lists the differences:


Element Pre-8.1.3 non-OFA-Compliant Post-8.1.3 OFA-Compliant

Name of the top-level directory where Oracle is installed. 

When you install Oracle8i Enterprise Edition, all subdirectories are located under a top-level ORACLE_HOME directory that by default is C:\ORANT. 

See the following figure for a depiction of the pre-8.1.3 non-OFA-compliant directory tree. 

When you install Oracle8i Enterprise Edition, all subdirectories are no longer under a top-level ORACLE_HOME directory. There is now a new top-level directory called ORACLE_BASE that is of the form X:\ORACLE where X is any hard drive. If you install an OFA-compliant database using Oracle Universal Installer defaults, ORACLE_BASE is C:\ORACLE. 

\ORACLE_HOME directories are located under ORACLE_BASE. The \ORADATA and \ADMIN directories, which contain the database files and database administration files, are also located under ORACLE_BASE

See the following figure for a depiction of the 8.1.4 and 8.1.5 OFA-compliant directory tree. 

Database file names 

Database files have the SID in the database file name. For example, the first control file is named CTL1SID.ORA. 

Database files no longer have the SID in the database file name. For example, the first control file is named CONTROL01.CTL. There is no need for the presence of the SID in the file name because all the database files for a particular database are placed in \ORADATA under a directory called DB_NAME that is named for that database. 

Database file name extensions 

All database files have the same.ORA extension. 

The convention of having .ORA as the file name extension for database files is no longer used. Database file names now have more meaningful extensions. These are .CTL for control files, .LOG for log files, and .DBF for data files. 

The following figure provides a top-level overview of the old and new database directory trees:
 

Directory Tree of a Sample OFA-Compliant Database

The following is the complete hierarchical directory tree of a sample OFA-compliant database:

 

X:\ORACLE_BASE

 

 

 

C:\ORACLE is the default ORACLE_BASE directory 

 

\ORACLE_HOME1

 

 

\ORA81 is the name of the 1st Oracle home by default 

 

 

\BIN

 

Subtree for Oracle binaries 

 

 

\NETWORK

 

Subtree for Net8 

 

 

\ASSISTANTS

 

Configuration assistants 

 

\ORADATA

 

 

Subtree for Oracle database files 

 

 

\DB_NAME1

 

Subtree for DB_NAME1 database files 

 

 

 

\CONTROL01.CTL

Control file 1 

 

 

 

\CONTROL02.CTL

Control file 2 

 

 

 

\SYSTEM01.DBF

System tablespace data file 

 

 

 

\RBS01.DBF 

Rollback tablespace data file 

 

 

 

\INDX01.DBF

Index tablespace data file 

 

 

 

\TEMP01.DBF

Temporary tablespace data file 

 

 

 

\USERS01.DBF

Users tablespace data file 

 

 

 

\OEMREP01.DBF 

Oracle Enterprise Manager tablespace data file 

 

 

 

\REDO01.LOG 

Redo log file group 1, member 1 

 

 

 

\REDO02.LOG 

Redo log file group 2, member 1 

 

 

 

\REDO03.LOG

Redo log file group 3, member 1 

 

 

 

\REDO04.LOG 

Redo log file group 4, member 1 

 

 

\DB_NAME2

 

Subtree for DB_NAME2 database files 

 

 

 

\CTL \DBF \LOG

Control, data, and redo log files 

 

 

\DB_NAME3

 

Subtree for DB_NAME3 database files 

 

 

 

\CTL \DBF \LOG

Control, data, and redo log files 

 

\ADMIN

 

 

Subtree for database administration files 

 

 

\DB_NAME1

 

Subtree for DB_NAME1 database administration files 

 

 

 

\ADHOC

Ad hoc SQL scripts 

 

 

 

\ADUMP

Audit files 

 

 

 

\ARCH

Archived redo log files 

 

 

 

\BDUMP

Background process trace files 

 

 

 

\CDUMP

Core dump files 

 

 

 

\CREATE

Database creation files 

 

 

 

\EXP

Database export files 

 

 

 

\PFILE

Initialization parameter file 

 

 

 

\UDUMP

User SQL trace files 

 

 

\DB_NAME2

 

Subtree for DB_NAME2 database administration files 

 

 

 

\ . . .

 

 

 

\DB_NAME3

 

Subtree for DB_NAME3 database administration files 

 

 

 

\ . . .

 

 

\ORACLE_HOME2

 

 

2nd Oracle home 

 

 

\ . . .

 

 

 

\ORACLE_HOME3

 

 

3rd Oracle home 

 

 

\ . . .

 

 


Note:

The directory tree for multiple instance databases (Oracle Parallel Server installations) has additional subdirectories and files. See Oracle Parallel Server Getting Started for Windows NT for more information. 


OFA Directory Naming Conventions

OFA uses directory naming conventions that make it easy to identify the precise Oracle home and database name that is associated with a set of files. This section describes the naming conventions used for the top-level directories of an OFA-compliant database directory tree:

ORACLE_BASE Directory

ORACLE_BASE is the root of the Oracle directory tree. If you install an OFA-compliant database using Oracle Universal Installer defaults, ORACLE_BASE is X:\ORACLE where X is any hard drive (for example, C:\ORACLE).

If you are installing Oracle8i Enterprise Edition on a clean computer, you may want to change ORACLE_BASE to an appropriate value before running Oracle Universal Installer. Most users will not need or want to do this.

Before you run Oracle Universal Installer for the first time, change the value of ORACLE_BASE at the system level. Only change the value of ORACLE_BASE before you run Oracle Universal Installer for the first time because if there is already an ORACLE_BASE, and then you change it, there will be a conflict of Oracle base directories. If you create another ORACLE_BASE when the original ORACLE_BASE already exists, certain tools and the database will not be able to find previously created files because they will look for them in the new ORACLE_BASE instead of the original ORACLE_BASE.

To change the value of ORACLE_BASE at the system level:

On Windows NT:

  1. Choose Start > Settings > Control Panel.

  2. The Control Panel window appears.
     
  3. Double-click the System icon.

  4. The System Properties window appears.
     
  5. Click the Environment tab.

  6. The System Variables appear.
     
  7. Type a new value for ORACLE_BASE in the Value text box, then click OK to quit.

On Windows 95 and Windows 98:

  1. Open the AUTOEXEC.BAT file, using a text editor.

  2.  
  3. Edit the value of the ORACLE_BASE statement.

  4.  
  5. Reboot your computer.

Note:

TAn ORACLE_BASE registry key exists for every Oracle home. Ideally, the value of the ORACLE_BASE registry key will be identical for each Oracle home. 


ORACLE_HOME Directory

\ORACLE_HOME is located beneath X:\ORACLE_BASE and contains subdirectories for Oracle software executables and network files.

If you install Oracle8i Enterprise Edition on a clean computer and use the default settings, the first Oracle home directory that you create is called \ORA81.

ADMIN Directory

Database administration files are stored in subdirectories of ORACLE_BASE \ADMIN\DB_NAME.

The following table describes the subdirectories for database administration files:


Subdirectories of \ADMIN\DB_NAME Contain...

\ADHOC 

Ad hoc SQL scripts for a given database 

\ARCH 

Archived redo log files 

\BDUMP 

Background process trace files 

\CDUMP 

Core dump files 

\CREATE 

Database creation files 

\EXP 

Database export files 

\PFILE 

Initialization parameter files 

\UDUMP 

User process trace files 

ORADATA Directory

Database files are stored in ORACLE_BASE\ORADATA\DB_NAME.

The following table describes the database files:


Files in \ORADATA\DB_NAME Description

CONTROL01.CTL 

Control file 1 

CONTROL02.CTL 

Control file 2 

OEMREP01.DBF 

Oracle Enterprise Manager repository tablespace data file 

SYSTEM01.DBF 

SYSTEM tablespace data file 

RBS01.DBF 

RBS tablespace data file 

INDX01.DBF 

INDX tablespace data file 

TEMP01.DBF 

TEMP tablespace data file 

USERS01.DBF 

USERS tablespace data file 

REDO01.LOG 

Redo log file group one, member one 

REDO02.LOG 

Redo log file group two, member one 

REDO03.LOG 

Redo log file group three, member one 

REDO04.LOG 

Redo log file group four, member one 

DB_NAME Directory

\DB_NAME is the unique name for a particular database and has the same value as the DB_NAME parameter in the INIT.ORA file. When you name a database, DB_NAME can be no more than eight characters long and can contain only the following characters:

OFA and Multiple Oracle Home Configurations

The following sections describe various OFA and multiple Oracle home configurations.

Specifying an ORACLE_HOME Directory

To install an OFA-compliant database, you must specify an Oracle home directory in the Path: field of Oracle Universal Installer of the form:

X:\[PATHNAME]\ORACLE\HOME_NAME

where:

X:\ 

is any hard drive. For example, C:\. 

[PATHNAME

is an optional directory pathname. 

\ORACLE

is a mandatory directory pathname unless you have changed the value of the ORACLE_BASE registry key before performing the installation. See "ORACLE_BASE Directory" for information on how to change the ORACLE_BASE from the default value ORACLE. 

HOME_NAME 

is the name of the Oracle home. 

The following are examples of OFA-compliant Oracle home directories:

Default OFA Database

To install a default OFA database:

  1. Install Oracle8i Enterprise Edition release 8.1.5 on a clean computer (one with no other Oracle software on the computer), and accept the default Oracle Universal Installer settings for the first Oracle home (C:\ORACLE\ORA81) in the Path: field.

  2.  
  3. Complete the installation.

  4.  
  5. Run Oracle Universal Installer again and install release 8.2.x. Accept the default Oracle Universal Installer settings for the first Oracle home (C:\ORACLE\ORA82) in the Path: field.

The default OFA database settings consist of the following:

ORACLE_BASE is  C:\ORACLE and is the same for all Oracle homes 
Oracle home 1  is  C:\ORACLE\ORA81 
Oracle home 2  is  C:\ORACLE\ORA82 

This figure below illustrates the directory tree:
 

Non-Default OFA Database, Case 1

To install a non-default OFA database, case 1:

  1. Install Oracle8i Enterprise Edition release 8.1.5 and change the default Oracle Universal Installer settings for the first Oracle home from C:\ORACLE\ORA81 in the Path: field to X:\XYZ.

  2.  
  3. Complete the installation.

  4.  
  5. Run Oracle Universal Installer again and change the default Oracle Universal Installer settings for the second Oracle home from C:\ORACLE\ORA82 in the Path: field to Y:\ABC.

The non-default OFA database: case 1 settings follow:

ORACLE_BASE is  X:\XYZ for the first Oracle home and is Y:\ABC for the second Oracle home 
Oracle home 1  is  X:\XYZ 
Oracle home 2  is  Y:\ABC 

This figure illustrates the resulting directory trees:
 

Non-Default OFA Database, Case 2

To install a non-default OFA database, case 2:

  1. Install Oracle8i Enterprise Edition release 8.1.5 and change the default Oracle Universal Installer settings for the first Oracle home from C:\ORACLE\ORA81 in the Path: field to X:\XYZ\ORACLE\ABC.

  2.  
  3. Complete the installation.

  4.  
  5. Run Oracle Universal Installer again and change the default Oracle Universal Installer settings for the second Oracle home from C:\ORACLE\ORA82 to X:\PQR.
The non-default OFA database, case 2 settings follow:

ORACLE_BASE is  X:\XYZ\ORACLE and is the same for both Oracle homes 
Oracle home 1  is  X:\XYZ\ORACLE\ABC 
Oracle home 2  is  X:\PQR 

This figure illustrates the resulting directory tree:
 

Increasing Reliability and Performance

One of the basic goals of OFA is to increase reliability and performance by distributing I/O load across different physical drives. If you are trying to maximize reliability and performance, Oracle Corporation recommends that you do the following:

Disk Mirroring

Oracle log files and database files can be separated and treated with different levels of hardware reliability.

Generally, Oracle log files are more highly reliable, because of redundancy. Creating reliability based on redundancy may require you to duplicate all of your data, using disk mirrors.

Disk mirroring can be done with the Windows NT Disk Administrator and commonly with hardware controllers. Two identical drives are usually required to construct a mirror, the concept being that if one disk fails, the other disk can be used to recover data that would otherwise be lost. Using one of the disks to recover lost data may involve "breaking" the mirror. If the mirror breaks, you need to build a new mirror.

You can achieve a lesser degree of redundancy by configuring the disks, using a Redundant Array of Inexpensive Disks (RAID) configuration provided by the disk controller. The RAID level determines the amount of redundancy. Some RAID levels may use the "hot swapping" feature. Hot swapping means that you can replace a bad disk with a good one without turning off the computer or losing functionality.

Disk Striping

How you set up disks for use in a database depends on the number of disks and the type of hard disk controllers available. If the hard disk controllers support both striping and mirroring, Oracle Corporation recommends you configure the controllers to support striping.

Some controllers are configured at system startup time by issuing a keyboard sequence that brings up configuration programs written by the controller manufacturer. One goal is to stripe as many drives together as possible by configuring the controllers. Each stripe shows up as one logical device.

Striping provides significant performance advantages. All the space from the striped drives appears as a single logical drive. Furthermore, the space is used by interlacing "stripes" of space from all of the disks in the stripe. This means that a large file uses some space from the first disk, then some from the second disk and so on to the last disk and then starting back at the first disk again. Each file may be spread over all of the striped disks. The data in such a file may be accessed randomly by more than one CPU without contention.

The controllers that support striping usually provide caching as well. This means that data may be written to the controller and cached and saved for a time in storage not on the disk. Data that is read can be cached on the controller in a similar fashion. Read caching is not necessary for Oracle databases since all database reads are cached already in the System Global Area (SGA). The value of the DB_BLOCK_BUFFERS parameter in the initialization parameter file (INIT.ORA) determines the number of buffers that can be used in the SGA. This value also configures the Oracle database on startup.

Using Raw Partitions for Tablespaces

A raw partition is a portion of a physical disk that is accessed at the lowest possible level. The I/O of a raw partition improves performance by approximately 5% to 10% compared to the I/O of a partition containing a file system. Therefore, Oracle Corporation encourages you to use raw partitions for your tablespaces.

Additional Information:

See Appendix F, "Storing Tablespaces on Raw Partitions"

Comparison Between OFA on Windows NT and UNIX

You implement OFA on Windows NT and UNIX in the same way. However, differences exist with regard to the following:

Additional Information:

See your UNIX operating system-specific administrator's reference for information about OFA on UNIX. 

Directory Naming

The top-level names of the OFA directory tree differ between Windows NT and UNIX. However, the main subdirectory and file names are the same on both operating systems.

ORACLE_BASE Directory

On Windows NT, ORACLE_BASE is associated with an Oracle home directory. ORACLE_BASE is defined in the registry (for example, in HKEY_LOCAL_MACHINE \SOFTWARE\ORACLE \HOME0).

On UNIX, ORACLE_BASE is associated with a UNIX user's environment.

Support for Symbolic Links on Windows NT

Windows NT currently does not support symbolic links like those in UNIX, although Microsoft has announced the intention to support them in a near-future release.

The goal of OFA is to place all Oracle software under one ORACLE_BASE directory and to spread the files across different physical drives as your databases increase in size.

On Windows NT 4.0, this implies that everything is on the same hard drive, which may be neither feasible nor desirable.

On UNIX, although everything seems to be in one directory on the same hard drive, files can be on different hard drives if they are symbolically linked or have that directory as a mount point.

Oracle Corporation recommends that you use one logical drive to store your database administration files and that you place other files, as needed, on other logical drives in an ORADATA\DB_NAME directory.

In the following example, there are four logical drives for a database named PROD:

C:\ORACLE 

 

 

 

First logical drive 

 

\ORA81

 

 

Oracle home 

 

 

\BIN

 

Subtree for Oracle binaries 

 

 

\NETWORK

 

Subtree for Net8 

 

 

\ . . . 

 

 

 

\ADMIN

 

 

Subtree for database administration files 

 

 

\PROD 

 

Subtree for PROD database administration files 

 

 

 

\ADHOC

Ad hoc SQL scripts 

 

 

 

\ADUMP

Audit files 

 

 

 

\ARCH

Archived redo log files 

 

 

 

\BDUMP

Background process trace files 

 

 

 

\CDUMP

Core dump files 

 

 

 

\CREATE

Database creation files 

 

 

 

\EXP

Database export files 

 

 

 

\PFILE

Initialization parameter file 

 

 

 

\UDUMP

User SQL trace files 

F:\ORACLE 

 

 

 

Second logical drive (represents two physical drives that have been striped) 

 

\ORADATA 

 

 

Subtree for Oracle database files 

 

 

\PROD 

 

Subtree for PROD database files 

 

 

 

\REDO01.LOG 

Redo log file group one, member one 

 

 

 

\REDO02.LOG 

Redo log file group two, member one 

 

 

 

\REDO03.LOG 

Redo log file group three, member one 

 

 

 

\REDO04.LOG 

Redo-log file group four, member one 

G:\ORACLE 

 

 

 

Third logical drive (uses a RAID Level 5 configuration) 

 

\ORADATA 

 

 

Subtree for Oracle database files 

 

 

\PROD 

 

Subtree for PROD database files 

 

 

 

\CONTROL01.CTL 

Control file 1 

 

 

 

\SYSTEM01.DBF 

System tablespace data file 

 

 

 

\RBS01.DBF 

Rollback tablespace data file 

 

 

 

\INDX01.DBF

Index tablespace data file 

 

 

 

\TEMP01.DBF

Temporary tablespace data file 

 

 

 

\USERS01.DBF

Users tablespace data file 

 

 

 

\OEMREP01.DBF 

Oracle Enterprise Manager tablespace data file 

H:\ORACLE 

 

 

 

Fourth logical drive 

 

\ORADATA 

 

 

Subtree for Oracle database files 

 

 

\PROD 

 

Subtree for PROD database files 

 

 

 

\CONTROL02.CTL 

Control file 2 


 
 




Prev

Next
Oracle
Copyright © 1999 Oracle Corporation.
All Rights Reserved.

Library

Product

Contents

Index