Oracle8 Installation Guide Release 8.0.4 Part Number A56097-01 |
|
Use this chapter to help you prepare your environment for installing the Oracle8 Server, after you have verified the system meets the requirements described in Chapter 1, "Requirements and Features".
Note:
If you already have an Oracle Server installed on the machine, go to Chapter 5, "Upgrading and Migrating". |
Table 2-1 summarizes the environmental requirements for installing the Oracle8 Server. If your system fails to satisfy any listed requirement, perform the tasks listed on page 2-4 to page 2-8 as necessary to set up your environment to meet these requirements.
Environmental Factor | Requirement for Oracle |
---|---|
UNIX Kernel Parameters |
SHMMAX 4294967295 Note: This setting does not affect how much shared memory is needed or used by Oracle, or the operating system. It is used only to indicate the maximum allowable size. This setting also does not impact operating system kernel resources. SHMMIN 1 SHMMNI 100 SHMSEG 10 SEMMNS 200 SEMMNI 70
SEMMSL Equal to the value of the PROCESSES |
Mount Points (Storage Devices) |
At least four mount points, all at the same level of the directory structure. One is for the software, three are for an OFA-compliant database. |
UNIX Groups for Oracle Roles |
A UNIX group is required for the OSDBA role, and is usually named |
UNIX Accounts |
A UNIX account dedicated solely to installing and upgrading the Oracle system. The account must be a member of the group used by OSDBA. |
Local |
A directory for software shared among Oracle users. The default location for this directory on Solaris 2.x is |
|
Contains information about Oracle instances. |
Permissions for File Creation |
Set |
DISPLAY |
Set to the machine name and monitor of the station from which you are connecting to the server machine. |
LD_LIBRARY_PATH |
Required for Oracle products using shared libraries. Must include |
ORACLE_BASE |
Not required, but recommended as part of an OFA-compliant installation. See page 2-10. |
ORACLE_HOME |
Set to the directory where the Oracle software will be installed. |
ORACLE_SID |
Specifies the instance name, or sid of the Oracle Server. Must be unique for Oracle instances running on same machine. Oracle Corporation recommends using four characters or fewer. |
ORACLE_TERM |
Required by all character mode and Motif mode Oracle products. See Table 2-4 for the range of values. |
ORA_NLS33 |
Required when creating a database with character set other than US7ASCII.
Set to |
PATH |
The search path must include all of the following:
Note: If you require |
SRCHOME |
Should be undefined when running the Installer. If SRCHOME is set, the Installer defaults to the location it specifies as the source of software to install. |
TWO_TASK |
Should be undefined when installing the Oracle8 Server (see page 2-12 for explanation). |
TMPDIR |
A directory with at least 20 MB available space where the oracle account has write permission. The default location on Solaris 2.x is |
Log in as the root
user and perform the following tasks as necessary to set up your environment for the Oracle8 Server:
Configure the UNIX kernel Interprocess Communication (IPC) parameters to accommodate the SGA structure of the Oracle8 Server. You will not be able to start up the database if the system does not have adequate shared memory to accommodate the SGA.
ipcs
command to obtain a list of the system's current shared memory and semaphore segments, and their identification number and owner.
Because the shared memory in Solaris 2.x is dynamically loaded, when you run ipcs
you may receive a message that the shared memory facility is not in the system. The shared memory driver is loaded after the Oracle8 Server is executed. You can check the /etc/system
file to verify that the system has been configured with enough shared memory.
The total allowable shared memory is determined by the formula:
The parameters in Table 2-2 control the allocation of semaphores and shared memory. The recommended values are optimal for one instance and are based on the default init
sid.ora
file. If you plan to install more than one instance, or to modify the init
sid.ora
file extensively, set these parameters higher.
Oracle Corporation recommends you set these parameters as high as possible for the operating system; however, setting these parameters too high for the operating system can prevent the machine from booting up. Refer to the operating system documentation for parameter limits.
Following are lines you would add to the /etc/system
file to configure the UNIX kernel with the minimum recommended values:
set shmsys:shminfo_shmmax=4294967295 set shmsys:shminfo_shmmin=1 set shmsys:shminfo_shmmni=100 set shmsys:shminfo_shmseg=10 set semsys:seminfo_semmns=200 set semsys:seminfo_semmni=70
The Oracle8 Server requires at least four mount points when creating an OFA-compliant installation: one for the software and at least three for database files.
All software and database mount point names used for Oracle should match the pattern /pm where p is a string constant and m is a fixed-length key to distinguish between mount points. Table 2-3 shows a sample naming scheme.
Software Mount Point | Database Mount Points |
---|---|
|
|
|
|
|
|
See Also:
Optimal Flexible Architecture is described in detail in Chapter 1 of the Oracle8 Administrator's Reference for Sun SPARC Solaris 2.x. |
The Installer assigns Oracle DBA and OPERATOR privileges to UNIX groups during Installation. Oracle documentation refers to these UNIX groups as the OSDBA and OSOPER groups. Members of these groups have DBA or OPERATOR privileges on the Oracle system by virtue of their membership in the corresponding UNIX groups. The group(s) you designate for these roles should be created before you start the Installer.
On Solaris 2.x, use the groupadd
utility to create a group named dba
. You can name the group something other than dba
, but the Installer relinks the oracle
executable if you do. If you plan to designate a separate group for the OSOPER group, create that group also.
The Installer offers the group you designate as OSDBA as the default choice for the OSOPER group. If you accept the default, there is effectively no OPERATOR role, because its privileges are simply a subset of the DBA privileges already assigned to the group.
The oracle account is the UNIX account that owns the Oracle distribution. You must run the Installer under this account.
On Solaris 2.x, use the operating system administration utility useradd
to create an oracle account with the following properties:
Sites with multiple Oracle servers may install them under the same oracle account, or separate ones. If multiple installations share an oracle account, the DBAs for each installation have access to the other installations. If this presents security problems, install each Oracle system under a different oracle account.
Having a common environment for Oracle users greatly simplifies system administration. Part of creating a common environment is creating a local bin
directory, outside the ORACLE_HOME directory, for shared software.
bin
directory, such as /opt/bin
.
The Installer places the oraenv
(coraenv
for the C shell) and dbhome
scripts in $ORACLE_HOME/bin
. After installation, the root.sh
script copies the files to the /opt/bin
directory. The Installer cannot place them there directly because you must not run the Installer as the root
user.
Copying oraenv
(coraenv
) and dbhome
to the local bin
directory ensures they continue to provide a common environment, even if the search path is changed to point to a different ORACLE_HOME directory.
You can also place other software that you want accessible to all users in the local bin
directory.
Information about Oracle instances is stored in the oratab
file. This file is owned by the oracle account, but resides in a directory that requires root
privileges when creating the file. Run the cdrom_mount_point/orainst/oratab.sh
script to create or set the permissions of the oratab
file in the /var/opt/oracle
directory.
Log in to the oracle account and perform the following tasks as necessary:
Set umask
to 022
to ensure group
and other
have read and execute permissions, but not write permission, on the files the Installer creates.
umask
command to check the current setting.
umask
command does not return 022
, set it in the .profile
or .login
file of the oracle account:
Set the following environment variables in the .profile
or .login
file of the oracle account before starting the Installer. The syntax for setting environment variables is as follows.
For the Bourne shell:
set variable_name=value; export variable_name
For the C shell:
setenv variable_name value
Note:
You should not define environment variables with names that are identical to those used for Oracle processes, for example: |
Required when using Oracle products that use shared libraries. Set LD_LIBRARY_PATH to include $ORACLE_HOME/lib
, and the directory containing your Motif libraries. The default location for Motif libraries on Solaris 2.x is /usr/openwin/lib
or /usr/dt/lib
.
Oracle Corporation recommends that you do not include /usr/ucblib
in your LD_LIBRARY_PATH
. If you require /usr/ucblib
in LD_LIBRARY_PATH
, make sure it appears after /usr/ccs/lib
in the search order.
Specifies the directory at the top of the Oracle software and administrative file structure. The OFA-recommended value is software_mount_point/app/oracle
. For example: /u01/app/oracle
.
Specifies the directory containing the Oracle software for a given Oracle Server release. The OFA-recommended value is $ORACLE_BASE/product/
release. For example: /u01/app/oracle/product/8.0.4
.
Specifies the Oracle system identifier, or sid, which is the name of the Oracle Server instance. Because the sid is incorporated into many filenames, Oracle Corporation recommends restricting it to no more than four characters, to avoid filename problems on heterogeneous systems.
Specifies the terminal definition resource file to be used with the Installer and other Oracle products. Table 2-4 lists terminal types and corresponding ORACLE_TERM settings.
Required if creating a database with a storage character set other than US7ASCII. Set ORA_NLS33 to $ORACLE_HOME/ocommon/nls/admin/data
before starting the Installer or creating the database.
Verify that the search path includes all of the following:
$ORACLE_HOME/bin
, /bin
, /usr/bin
, and /usr/ccs/bin
bin
directory you created (see page 2-8)
Note:
If you require |
Should be undefined when running the Installer. If SRCHOME is set, the Installer defaults to the location it specifies as the source of software to install.
Must specify a directory with at least 20 MB free space, where the Installer has write permission. On Solaris 2.x the default setting is /var/tmp
.
Should be undefined when installing Server software. If TWO_TASK is defined and you are creating database objects, the Installer attempts to create the objects in the database specified by TWO_TASK.
After setting environment variables in the .profile
or .login
file of the oracle account, update the environment in the current shell session.
For the Bourne or Korn shell:
$ . .profile
For the C shell:
$ source .login
Perform the steps as necessary for your installation. Tables 1-3 through 1-5 list the products included on this server distribution and identify the tasks required for successful installations.
When creating an Oracle Parallel Server system, the Installer installs Oracle products on one node, then copies the required set of files for each installed product to the other nodes in the cluster. After a complete installation, all nodes appear identical.
Observe the following file requirements when setting up for an Oracle Parallel Server installation:
Complete the following steps before installing the Parallel Server Option:
/etc/group
file on all nodes of the cluster. The OSDBA group name and number (and OSOPER group if you plan to designate one during installation) must be identical for all nodes of a UNIX cluster accessing a single database. The default UNIX group name for the OSDBA and OSOPER groups is dba
.
See Also:
Recommended naming conventions for Oracle mount points are discussed on page 2-6. |
All files associated with an Oracle Parallel Server database must reside on raw volumes so they can be accessed by all nodes in the cluster. Control and data files are shared by all instances. Each instance has its own log files, but all instances must have access to all log files during recovery.
ops_patch
directory on your CD-ROM. This patch provides the Oracle Group Membership Service (OGMS) and is required before you attempt to install Oracle Parallel Server.
For information about cluster management software and the pdbadmin
command, see your Sun SPARC Solaris 2.x documentation.
Start the cluster software on each node of the cluster.
.rhosts
file of the oracle account, or the /etc/hosts.equiv
file.
Exit the root
account when you are done.
If the DLM program does not appear in the process listing, the lock manager is not running and you should repeat step 6 on page 2-14.
Check for user equivalence for the oracle account by performing a remote login (rlogin
) to each node in the cluster. If you are prompted for a password, the oracle account has not been given the same attributes on all nodes. The Installer cannot use the rcp
command to copy Oracle products to the remote directories without user equivalence.
If you have not set up user equivalence, you must perform Step 7 in the previous section, "Steps to Perform as the root
User".
Complete the tasks for the following tools and precompilers before installing them.
$ORACLE_HOME/jdbc/lib/classes111.zip
(or classes102.zip
)
$ORACLE_HOME/jdbc/lib
Verify that the C compiler executable is included in the PATH setting.
Verify that the FORTRAN compiler executable is included in the PATH setting.
Verify that the Ada executable is included in the PATH setting, and that the Verdix Ada compiler configuration file has been set up in the /etc/VADS
directory.
Pre-Installation Steps for Legato Storage Manager (LSM)
The LSM installation script modifies the following system files during installation:
Make copies of the original versions of these files before you install Legato Storage Manager. For more information, refer to the Legato Storage Manager Administrator's Guide.
If you want to install LSM from the Oracle distribution, but it is already on your system, you must first remove the installed version.
root
user and shut down the LSM daemons.
# nsr_shutdown
pkgrm
command to remove individual Legato Storage Manager packages, or all of the Legato Storage Manager packages at the same time.
WARNING:
Some LSM software packages depend on each other. Remove packages only in the following order: ORCLserv, ORCLnode, ORCLclnt. |
The man pages, drivers, and documentation have no dependencies and can be removed in any order.
# pkgrm ORCLpackage_name
where package_name is one of the following:
ORCLclnt |
NetWorker Client |
ORCLdrvr |
NetWorker Device Drivers |
ORCLman |
NetWorker Man Pages |
ORCLnode |
NetWorker Storage Node |
ORCLserv |
NetWorker Server |
Network Manager is no longer provided for configuring your Oracle Network. SQL*Net version 2 configuration files are compatible with Oracle Net8, though some restrictions apply. README files for networking products are under the network/doc
directory on the CD-ROM. The files contain detailed information on issues and restrictions for Net8.
If you intend to use any of the supported authentication adapters, use Table 2-5 to verify your system meets the requirements.
Installing ANO on a client-only machine without a database requires that the TWO_TASK environment variable be set prior to installation. The TWO_TASK variable points to an alias representing the database on a server machine, allowing the user to install ANO in client-only mode.
See Also:
Oracle8 Administrator's Guide for more information about the TWO-TASK variable. |
Shut down all SQL*Net and Net8 listeners on the machine before installing Net8.
If you want to use a well-known Names Server, create an alias for the machine hostname to oranamesrvr
[0-4] in the /etc/hosts
file. For example:
128.128.44.123 sun1.eng oranamesrvr0
You must also create the alias for the well-known Names Server on all server and client machines in the network. (A well-known Names Server is one that uses a default name, such that clients can find it on the network, without being individually configured.)
See Also:
Names Servers and well-known Names Servers are discussed in the Oracle Net8 Administrator's Guide. |
Before installing any protocol adapter, verify that the underlying network protocol is functioning and configured properly.
The TCP/IP Protocol Adapter is installed automatically with all Oracle8 Server installations.
ftp
utility.
$ ftp remote_server_name
The machine that hosts OSS should be in a physically secure location.