Oracle8 Enterprise Edition Getting Started Release 8.0.4 for Windows NT A55928-01 |
|
This chapter describes how you work with multiple Oracle homes.
Specific topics discussed are:
WARNING: If you quit Oracle installer after you have entered the name and location for an Oracle home (for example, you need to quit the installer because you have insufficient disk space in the location specified) you will not be able to specify a different location for that home until you identify and delete the HOMEID key and the IDx key that corresponds to that Oracle home from the registry. To do this:
For more information on the registry keys and subkeys, see Appendix C, "Configuration Parameters and the Registry". |
An Oracle home corresponds to the environment in which Oracle products run. This environment includes:
Oracle homes also have a name, and a language associated with them. You specify the name, location, and language of an Oracle home at installation.
Releases of Oracle for Windows NT and Windows 95 prior to release 8.0.4 supported single Oracle homes, allowing you to install and run Oracle products in a single Oracle home. Different versions of Oracle products could be installed in the same Oracle home provided they had different second-digit release numbers. For example, you could install version 7.2 products and version 7.3 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 versions of the same Oracle products on the same machine; one installation would overwrite the other.
This release includes the new multiple Oracle homes feature, which enables you to install one or more releases of Oracle products on the same machine in multiple Oracle homes. For example, with multiple Oracle homes, you can install version 8.0.3 products and 8.0.4 products in different Oracle homes on the same machine. You can still install different versions of Oracle products in the same Oracle home provided they have different second-digit release numbers.
The main benefit of using multiple Oracle homes is that you can run multiple third-digit versions 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.
When using third-party tools on your machine, if one tool is certified against release 8.x.1.x while another tool is certified against release 8.x.2.x, you may want to use the multiple Oracle homes feature so that you can install each third-party tool in a separate home.
If you have previously installed release 8.0.x software and have no reason to keep the old version, overwrite the existing version by installing the 8.0.4 products in the home used for the previous release.
If you decide to use multiple (versus single) Oracle homes, note these differences:
Element | First Oracle Home | Each Additional Oracle Home |
---|---|---|
Service Names |
OracleTNSListener80 |
Includes the Oracle home name in service names, for example: |
Program Groups |
Oracle for Windows NT |
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\ |
SID for starter database |
ORCL |
Only the first starter database on your machine 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 |
The products included on your CD-ROM are either:
You can install products multiple times in multiple Oracle homes. Products are multiple Oracle home enabled unless they are listed in the "Multiple Oracle Home Compliant Products" or "Non-Multiple Oracle Home Products" sections below.
You can install products into any Oracle home, but only once per machine. When installing any of these products, if other versions are detected on your machine, you are prompted to:
You can only install these products into an old-style Oracle home (pre-8.0.4 Oracle home).
When installing groups of products, if any of the products listed above are included in the group and already exist on the machine, they will not be installed. You must first deinstall pre-existing copies of these products (which may break other applications) before you can install them in a different home.
All Oracle release 8.0.3 products and all Oracle7 Products are non-multiple Oracle home products.
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, the version of the product invoked will be that stored in the Oracle Home listed first in your path, unless you specifically invoke a different version of the product by:
You can change the value of PATH:
To change the value of PATH using Oracle Home Selector:
Oracle Home Selector is a graphical user interface (GUI) 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.
The Oracle Home Selector window appears.
To change the value of PATH at the system level:
On Windows NT:
The System Properties window appears.
The System Variables appear.
On Windows 95:
To change the value of PATH at the command line:
At the command prompt enter:
C:\> 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, you should use the Oracle Home Selector or change the value of PATH at the system level. Both methods are described above.