This document describes how to install and configure Oracle on a local AIX machine. The
instructions assume the following:
- Ensure that you are logged into the machine with superuser (root) privileges.
- Ensure that the DISPLAY and TERM environment variables are set correctly for
your environment.
- Create a file system, logical volume, or directory to hold the Oracle software.
Ensure that the location you choose has approximately 1400 MB of free disk space to
accommodate a Typical installation. This file system, logical volume, or directory
represents the the value for the ORACLE_BASE environment variable and the home directory
of the user named oracle.
- If you plan to use Oracle in a production environment, it is recommended that you
create a file system on a separate partition to store the database files. Refer to
the Oracle8i Installation Guide and your AIX documentation for information
about creating and mounting a file system.
- If the groups named dba and oinstall do not already exist, use the AIX
System Management Interface Tool (SMIT) to create them. Perform the following steps
for each group you are creating:
- Invoke SMIT for creating a group by entering the following command:
# smitty mkgroup
The Add a Group screen displays.
- In the Group NAME field, type the name of the group you are creating.
- In the USER list field, type
root
.
- In the ADMINISTRATOR list field, type
root
.
- Press Return to create the group. When the group creation process is complete,
press F3 to exit from SMIT.
- Use SMIT to create the operating system user named oracle:
- Invoke SMIT for creating a user by entering the command
# smitty mkuser
The Add a User screen displays.
- In the User NAME field, type
oracle
.
- In the Primary GROUP field, type
oinstall
.
- In the Group SET field, type
dba
.
- In the HOME directory field, specify the home directory for the user
oracle. The value of this field represents the full pathname of the
file system, logical volume, or directory you created to contain the Oracle software.
-
- In the Initial PROGRAM field, specify the initial shell for the user
oracle. The steps in this article use the Korn shell
(
/usr/bin/ksh
).
- Press Return to create the user. When the user creation process is complete,
press F3 to exit from SMIT.
- Create a .profile file in the home directory of the user named oracle
and ensure that the file contains the following information. Note that your Oracle
SID may differ. If you are using a different shell, edit the appropriate file accordingly.
#-----------------------------------
# Oracle environment setup
#-----------------------------------
#
ORACLE_BASE=oracle_home_directory
export ORACLE_BASE
ORACLE_SID=ORA817
export ORACLE_SID
ORACLE_HOME=$ORACLE_BASE/$ORACLE_SID
export ORACLE_HOME
PATH=$PATH:$ORACLE_HOME/bin
export PATH
LIBPATH=$LIBPATH:$ORACLE_HOME/lib
export LIBPATH
ORA_CLIENT_LIB=shared
export ORA_CLIENT_LIB
echo 'The Oracle 8.1.7 environment is set'
In the example text above, the variable oracle_home_directory
represent file system, logical volume, or directory you created to contain the Oracle
software and the home directory for the user oracle.
- Ensure that the /tmp directory has at least 200 MB of free disk space.
- Ensure that the Oracle directory structure you created has the correct permissions.
If necessary, change to the directory structure you plan to use for Oracle installation
and enter the following chmod command:
# chmod 777 .
- Insert the Oracle8i product CD-ROM into the CD-ROM drive and mount it using
the steps below. Note that the steps assume that you have already created and properly
configured a CD-ROM mount point (for example, /cdrom). Refer to your AIX operating
system documentation for more information about mounting a CD-ROM drive.
- Invoke SMIT for mounting a file system:
# smitty mountfs
- With the cursor in the FILE SYSTEM name field, press F4, and then choose
the appropriate CD-ROM file system that you want to mount.
- In the DIRECTORY over which to mount field, type the name of the mount point
for the CD-ROM. (These steps assume you are using the /cdrom mount point.)
- With the cursor in the TYPE of file system field, press F4, and then choose
the cdrfs option.
- Verify or change the entries in the remaining fields, depending on how you want to
mount the CD, and then press Return. SMIT mounts the CD as a file system. When the
process is complete, exit from SMIT by pressing F3.
- Run the rootpre.sh script to install the Oracle post-wait kernel extension:
# cd /cdrom
# ./rootpre.sh
- Authenticate as the user oracle:
# su - oracle
- Ensure that the TERM and DISPLAY environment variables are still set correctly.
- Enter the following command to launch the Oracle Universal Installer:
$ ./runInstaller
When you are asked if you have run the rootpre.sh script, press y. The
Oracle Universal Installer opens, displaying the Welcome screen.
- Click Next. The File Locations screen displays.
- Verify the values in the Source and Destination fields. The value of
the Source field must be /cdrom/stage/products.jar, and the value of the
Destination field must be the same as the value you set for the ORACLE_HOME
environment variable.
- Click Next. If this is the first Oracle installation on the machine, the
Inventory Location screen opens, prompting you to specify the base directory for
installation files.
- Accept the default value ($ORACLE_BASE/oraInventory) or specify a different base
directory, and then click OK. The UNIX Group Name screen displays.
- Type
oinstall
in the UNIX Group Name field, and then click Next.
Note: If the /var/opt/oracle directory does not exist or cannot be written to
by the user oracle, you are prompted to run the /tmp/OraInstRoot.sh
script. Open another terminal, log in as root, and run the script. After
the script runs, return to the Oracle Universal Installer to continue the installation
process.
- In the Available Products screen, verify that the Oracle8i Enterprise Edition
8.1.7.0.0 option is selected, and click Next.
- In the Installation Types screen, choose the Typical option and click
Next.
- In the Component Locations screen, accept the default values, and click
Next.
- In the Choose JDK Home Directory screen, accept the default location or specify a
different directory, and click Next.
- In the Database Identification screen, type a global database name in the
Global Database Name field (for example,
ORA817.
machine_name)
and verify that the value in the SID field is the same as the value you set for
the ORACLE_SID environment variable. Then click Next.
- In the Database File Location screen, specify the installation location for the
Oracle database files in the Directory for Database Files field, and then click
Next. The Summary screen opens, summarizing the installation choices that
you have made so far.
- Verify the information on the Summary screen. After you determine that it is correct,
click Install. The Install screen displays; it tracks the status of the Oracle
installation.
- When prompted to run the root.sh configuration script to set necessary
file permissions for Oracle products, open another terminal, log in as root,
and run the script. After the script runs, return to the Oracle Universal Installer
to finish the installation process.
- After the installation and linking processes finish, the Configuration Tools screen
displays. The Net8 Configuration Assistant and Oracle Database Configuration Assistant
are automatically configured, along with an Oracle database.
After the configuration process is complete, click Next. The End of Install
screen displays, enabling you to exit from the Oracle Universal Installer.
- Proceed to "Configuring Oracle8i Release 3 (8.1.7) for
use with WebSphere Application Server."