| Oracle8i Installation Guide Release 8.1.5 for Sun SPARC Solaris A67457-01 |
|
Use this chapter to help you prepare your environment for installing Oracle8i, after you have verified the system meets the requirements described in Chapter 1, "System Requirements".
Table 2-1 summarizes the requirements for installing the Oracle8i Server. If your system fails to satisfy any listed requirement, perform the tasks listed as necessary to set up your environment to meet these requirements.
| Environmental Factor | Requirement for Oracle8i |
|---|---|
|
Shared Memory |
SHMMAX 0.5 *(physical memory present in machine) This setting does not affect how much shared memory is needed or used by Oracle8i or the operating system. It is used only to indicate the maximum allowable size. This setting also does not impact operating system kernel resources. SHMSEG 10 |
|
Semaphores |
SEMMSL Set to 10 plus the largest
The PROCESSES parameter can be found in each SEMMNS Set to the sum of the PROCESSES parameter for each Oracle database except the largest one, plus 2 times the largest PROCESSES value, plus 10 times the number of Oracle databases. See "Configure the UNIX Kernel for Oracle8i" for an example of this formula. SEMVMX 32767 |
|
Note: If any of the kernel parameters above are less than your current values, continue to use the current value. These are the requirements for Oracle8i only. If you have other programs which use shared memory and semaphores, you will need to adjust the values accordingly. Take into account that a system reboot is necessary for kernel changes to take affect when planning for current and future database requirements. |
|
|
Mount Points (Storage Devices)
|
The Oracle Universal Installer requires only two mount points: one for the software, and one for the database files. An OFA-compliant database requires at least four mount points, all at the same level of the directory structure. One is for the software, three are for database files. |
|
UNIX Groups for Oracle Roles |
A UNIX group is required for the OSDBA role. This book assumes that the group is named |
|
Special UNIX Group for the OUI |
All users installing Oracle in any ORACLE_HOME must belong to the same UNIX group. The OUI inventory is shared by all ORACLE_HOMEs on a machine, and is group writable. Oracle recommends installing with |
|
|
A UNIX account that is dedicated solely to installing and upgrading the Oracle8i system. The account must be a member of |
|
Permissions for File Creation |
Set |
|
ORACLE_BASE |
Not required, but recommended as part of an OFA-compliant installation. See "ORACLE_BASE" for further information. |
root User
Log in as the root user and perform the following tasks set up your environment for Oracle8i:
Configure the UNIX kernel Interprocess Communication (IPC) parameters to accommodate the Shared Global Area (SGA) structure of the Oracle8i 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 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 Oracle8i instance is started. You can check the /etc/system file to verify that the system has been configured with enough shared memory.
semop call (SEMOPM)
The total allowable shared memory is determined by the formula:
SHMMAX * SHMSEG
Table 2-1 shows the recommended settings. The recommended values are optimal for one instance and are based on the default initsid.ora file. If you plan to install more than one instance, or to modify the initsid.ora file extensively, set these parameters higher.
To set the kernel parameter for SEMMNS, use the formula in Table 2-1. For example, consider a system that has three Oracle instances with the PROCESSES parameter in their initsid.ora files set to the following values:
ORACLE_SID=A, PROCESSES=100 ORACLE_SID=B, PROCESSES=100 ORACLE_SID=C, PROCESSES=200
The value of SEMMNS is calculated as follows:
SEMMNS = ((A=100) + (B=100)) + ((C=200) * 2) + ((# of instances=3) * 10) = 630
Setting parameters too high for the operating system can prevent the machine from booting up. Refer to your Solaris documentation for parameter limits.
The following lines are an examples of additions 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_semmni=100 set semsys:seminfo_semmsl=100 set semsys:seminfo_semmns=200 set semsys:seminfo_semopm=100 set semsys:seminfo_semvmx=32767
Oracle8i requires at least two mount points: one for the software and at least one for the database files. It requires at least four mount points when creating an Optimal Flexible Architecture (OFA)-compliant installation: one for the software and at least three for database files.
All software and database mount point names used for Oracle8i 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-2 shows a sample naming scheme.
| Software Mount Point | Database Mount Points |
|---|---|
|
|
|
|
|
|
|
|
|
|
See Also:
Optimal Flexible Architecture is described in detail in Appendix A, "Optimal Flexible Architecture" of the Oracle8i Administrator's Reference for Sun SPARC Solaris. |
During installation, two Oracle roles are created: DBA and OPERATOR. Database administrators are granted these roles by virtue of their membership in corresponding UNIX groups. You must create the group(s) for these roles before you log in as the oracle user and start the Oracle Universal Installer. You may assign the roles to two separate UNIX groups, or to a single group.
On Solaris, use the groupadd utility to create a group named dba. You can name the group something other than dba. If you plan to assign the OPERATOR role to a separate group, create that group also.
The OUI assigns both Oracle DBA and OPERATOR privileges to the UNIX group, dba, by default. If you have not created a dba group, you will be prompted to enter the name(s) you have chosen.
(Oracle8i documentation refers to these UNIX groups as the OSDBA and OSOPER groups.)
On Solaris, use the groupadd utility to create a group named oinstall. The oinstall group will own the OUI oraInventory. The user account that runs the installation must be a member of this group.
The oracle account is the UNIX account that owns the Oracle8i software after installation. You must run the OUI from this account.
On Solaris, 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. All oracle accounts must belong to the oinstall group which owns the oraInventory directory. For security purposes, it is possible to use different OSDBA groups for different systems. You can do this as long as the oracle user is not a member of the DBA group. You will be prompted to enter a non-default value for OSDBA and OSPER groups.
oracle User
Log in to the oracle account and perform the following tasks as necessary:
Set umask to 022 for the oracle account to ensure group and other have read and execute permissions, but not write permission, on the files the OUI 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:
umask 022
Set the environment variables listed in this section before starting the OUI.
|
Note: If an Oracle Server already exists on your system, its settings may have a bearing on the settings that you choose for the new environment. |
Set to the machine name or IP address, X server, and screen being used by your workstation to connect to the system where the software will be installed. Do not use the machine name or IP address of the system where the software is being installed. Use the machine name or IP of your own workstation. If you are not sure what the X server and screen should be set to, use 0 (zero) for both. If you get an Xlib error similar to "Failed to connect to server" or "Connection refused by server" or "Can't open display" when starting the OUI, run the Bourne/Korn shell or C shell commands below:
On the server where the Oracle database will be installed, enter the following:
$ DISPLAY=workstation_name:0.0 $ export DISPLAY
In the session on your workstation:
$ xhost +server_machine_name
On the server where the Oracle database will be installed, enter the following:
$ setenv DISPLAY workstation_name:0.0
In the session on your workstation:
$ xhost +server_machine_name
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. If you are not using an OFA-compliant system, you do not have to set ORACLE_BASE.
Specifies the directory containing the Oracle software for a given release. The OFA-recommended value is: $ORACLE_BASE/product/release. For example: /u01/app/oracle/product/8.1.5.
Ensure that the value of ORACLE_HOME points to a directory that does not already contain any Oracle software.
Required to be set if installing or creating a database that uses a character set other than US7ASCII (the default). A complete list of valid character sets is available in Appendix A, "National Language Support".
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 OUI or creating the database.
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
Complete the following steps before installing the Parallel Server Option:
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.
|
See Also:
Information and examples on creating ASCII files are described in the Oracle8i Parallel Server guide. |
root User/etc/group file on all nodes of the cluster that will serve as the OSDBA group. 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.
ops_patch directory on your CD-ROM. This patch provides the Cluster Membership Monitor (CMM) and is required before you attempt to install Oracle Parallel Server.
# cd /opt/SUNWcluster/bin # scadmin startnode cluster_name
For information about cluster management software and the scadmin command, see your Solaris 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.
$ ps -ef | grep clustd
If the CMM program does not appear in the process listing, repeat step 8.
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 OUI 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 9 .
Complete the tasks for the following tools and precompilers before installing them.
|
See Also:
To determine what to set the COBDIR and COBLIB environment variables please refer to your product specific COBOL documentation. |
Verify that the C compiler executable is included in the PATH setting.
Pre-Installation Steps for Pro*FORTRAN Precompiler
Verify that the FORTRAN compiler executable is included in the PATH setting.
Pre-Installation Steps for the SQL*Module Ada
Verify that the Ada executable is included in the PATH setting, and that the Sun Ada 2.1 compiler configuration file has been set up.
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.
If you want to install LSM from the Oracle8i 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.
# 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 |
If the Net8 Server or Net8 Client is installed, the OUI automatically launches the Net8 Configuration Assistant for initial configuration of the network.
Shut down all Net8 listeners specific to the current ORACLE_HOME before installing Net8. To determine if any listeners are running, enter:
% ps -ef | grep tns
Shut down a running listener with the listener control utility:
% lsnrctl listener_name stop
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 mach1.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, verify that the underlying network is functioning and configured properly.
The TCP/IP protocol is installed automatically with all Oracle8i Server installations.
Verify that the network is functioning properly by transferring a test file using the ftp utility.
$ ftp remote_server_name ftp> put test_filename ftp> get test_filename
|
|
Copyright © 1999 Oracle Corporation. All Rights Reserved. |
|