This guide contains information required to install Oracle Database Client 12c. Ensure that you review information related to the platform on which you intend to install Oracle Database Client.
This chapter describes the tasks that you must complete before you start Oracle Universal Installer. It includes information about the following tasks:
Operating System Requirements for IBM AIX on POWER Systems (64-Bit)
Additional Drivers and Software Packages for IBM AIX on POWER Systems (64-Bit)
Before you install the Oracle software, you must complete several tasks as the root
user. To log in as the root
user, complete one of the following procedures:
Note:
Unless you intend to complete a silent-mode installation, you must install the software from an X Window System workstation, an X terminal, or a PC or other system with X server software installed.Following are the steps for installing the software from an X Window System workstation or X terminal:
Start a local terminal session, for example, an X terminal (xterm
).
If you are not installing the software on the local system, then enter the following command to enable the remote host to display X applications on the local X server:
$ xhost fully_qualified_remote_host_name
For example:
$ xhost somehost.us.example.com
If you are not installing the software on the local system, then use the ssh
, rlogin
, or telnet
command to connect to the system where you want to install the software:
$ telnet fully_qualified_remote_host_name
If you are not logged in as the root
user, then enter the following command to switch user to root
:
$ sudo sh password: #
Following are the steps for installing the software from a PC or other system with X server software:
Note:
If necessary, refer to your X server documentation for more information about completing this procedure. Depending on the X server software that you are using, you may have to complete the tasks in a different order.Start the X server software.
Configure the security settings of the X server software to permit remote hosts to display X applications on the local system.
Connect to the remote system where you want to install the software and start a terminal session on that system, for example, an X terminal (xterm
).
If you are not logged in as the root
user on the remote system, then enter the following command to switch user to root
:
$ sudo sh password: #
This section describes the following operating system tasks you must complete before you install Oracle Database:
Run the following commands to check your current system information:
To determine the physical RAM size, enter the following command:
# /usr/sbin/lsattr -E -l sys0 -a realmem
To determine the available RAM and swap space, enter the following command:
# /usr/sbin/lsps -s
Note:
Oracle recommends that you take multiple values for the available RAM and swap space before finalizing a value. This is because the available RAM and swap space keep changing depending on the user interactions with the computer.To determine the size of the configured swap space, enter the following command:
# /usr/sbin/lsps -a
If necessary, see your operating system documentation for information about how to configure additional swap space.
Note:
Contact your operating system vendor for swap space allocation guidance for your server. The vendor guidelines supersede the swap space requirements listed in this guide.To determine the amount of space available in the /tmp
directory, enter the following command:
# df -m /tmp
If the free space available in the /tmp
directory is less than what is required, then complete one of the following steps:
Delete unnecessary files from the /tmp
directory to meet the disk space requirement.
Set the TMP
and TMPDIR
environment variables when setting the oracle
user's environment.
See Also:
"Configuring Oracle Software Owner Environment" for more information about settingTMP
and TMPDIR
Extend the file system that contains the /tmp
directory.
To determine the amount of free disk space on the system, enter one of the following commands:
# df -g # df -m
To determine if the system architecture can run the Oracle software, enter the following command:
# /usr/bin/getconf HARDWARE_BITMODE
The expected output of this command is 64. If you do not see the expected output, then you cannot install the software on this system.
To determine if the system is started in 64-bit mode, enter the following command:
# /usr/sbin/bootinfo -K
The result of this command must be 64, indicating that the 64-bit kernel is enabled.
Verify that the processor architecture matches the Oracle software release to install. If you do not see the expected output, then you cannot install the software on this system.
Note:
For AIX Based Systems, Oracle Database supports 64-bit kernel and does not provide support for 32-bit kernel applicationsTo determine the run level enter the following command:
/usr/bin/who -r
Ensure the following general minimum requirements on your system:
System is started with run level 2.
Display cards provide at least 1024 x 768 display resolution, so that Oracle Universal Installer displays correctly while performing a system console-based installation.
Ensure that your system meets the following minimum storage requirements:
Ensure that your system meets the following minimum disk space requirements:
130 MB of space in the /tmp
directory.
If the free space available in the /tmp
directory is less than what is required, then complete one of the following steps:
Delete unnecessary files from the /tmp
directory to meet the disk space requirement.
Set the TMP
and TMPDIR
environment variables when setting the oracle
user's environment.
See Also:
"Configuring Oracle Software Owner Environment" for more information about settingTMP
and TMPDIR
Extend the file system that contains the /tmp
directory.
Ensure that your system meets the following memory requirements:
At least 256 MB of RAM
Table 2-2 describes the relationship between the installed RAM and the configured swap space recommendation:
Secure operating systems are an important basis for general system security. Ensure that your operating system deployment is in compliance with common security practices as described in your operating system vendor security guide.
Depending on the products that you intend to install, verify that you have the required operating system kernel and packages installed.
Requirements listed in this document are current as of the date listed on the title page. To obtain the most current information about kernel requirements, see the online version on the Oracle Technology Network at the following URL:
http://www.oracle.com/technetwork/indexes/documentation/index.html
Oracle Universal Installer performs checks your system to verify that it meets the listed operating system package requirements. To ensure that these checks complete successfully, verify the requirements before you start Oracle Universal Installer.
The filesets and Authorized Problem Analysis Reports (APARs) listed in this section are supported on IBM AIX on POWER Systems (64-Bit) systems for Oracle Database and Oracle Grid Infrastructure 12c:
Use the following information to check the minimum supported IBM AIX 6.1 on POWER Systems (64-bit) versions:
Table 2-3 IBM AIX 6.1 on POWER Systems (64-Bit) Minimum Operating System Requirements
Item | Minimum Requirements |
---|---|
AIX 6.1 Operating System |
AIX 6.1 Technology Level 7 Service Pack 3 ("6100-07-03-1207") or later, 64-bit kernel Note: You can install on AIX 6.1 Technology Level 7 but Oracle recommends that you install on AIX 6.1 Technology Level 9 Service Pack 3 (6100-09-03-1415) or later. The latter includes all the APARs and operating system fixes listed in this table. |
AIX 6.1 Operating System Filesets |
The following operating system filesets are required:
|
AIX 6.1 APARs and Other Operating System Fixes |
The following, or later, patches are required: If you are using the minimum operating system TL level for AIX 6.1 listed above, then install all the following AIX APAR fixes:
Note:
|
Use the following information to check the minimum supported IBM AIX 7.1 on POWER Systems (64-bit) versions:
Table 2-4 IBM AIX 7.1 on POWER Systems (64-Bit) Minimum Operating System Requirements
Item | Minimum Requirements |
---|---|
AIX 7.1 Operating System |
AIX 7.1 Technology Level 1 Service Pack 3 ("7100-01-03-1207") or later, 64-bit kernel Note: You can install on AIX 7.1 Technology Level 1 but Oracle recommends that you install on AIX 7.1 Technology Level 3 Service Pack 3 (7100-03-03-1415) or later. The latter includes all the APARs and operating system fixes listed in this table. |
AIX 7.1 Operating System Filesets |
The following operating system filesets are required:
|
AIX 7.1 APARs and Other Operating System Fixes |
The following, or later, patches are required: If you are using the minimum operating system TL level for AIX 7.1 listed above, then install all the following AIX APAR fixes:
Note:
|
You are not required to install additional drivers and packages, but you may choose to install or configure drivers and packages in the following list:
See Also:
"Oracle Application Express Installation Requirements" and "Recommended Pre-installation Tasks" in Oracle Application Express Installation GuideReview the following sections if you plan to install Open Database Connectivity (ODBC):
Open Database Connectivity (ODBC) is a set of database access APIs that connect to the database, prepare, and then run SQL statements on the database. An application that uses an ODBC driver can access non-uniform data sources, such as spreadsheets and comma-delimited files.
Oracle ODBC driver on IBM AIX is certified with ODBC Driver Manager 2.3.1. To use ODBC with Oracle Database, you must also install gcc 4.2.1
or later.
You do not require ODBC drivers for Oracle Clusterware or Oracle Database.
Download and install the ODBC Driver from the following website:
Review the following sections to install Oracle Messaging Gateway:
Oracle Messaging Gateway is a feature of the Oracle database. It enables communication between applications based on non-Oracle messaging systems and Oracle Streams Advanced Queuing.
Oracle Messaging Gateway supports the integration of Oracle Streams Advanced Queuing (AQ) with applications based on WebSphere and TIBCO Rendezvous. For information on supported versions see Oracle Database Advanced Queuing User's Guide.
Oracle Messaging Gateway is installed with the Enterprise Edition of Oracle Database.
For AIX7.1, check My Oracle Support Certification for current requirements:
https://support.oracle.com
If you require a CSD for IBM WebSphere MQ, then see the following website for download and installation information:
Review the following sections to install programming environments:
Oracle Database supports multiple programming languages for application development in different environments. Some languages require that you install additional compiler packages for the operating system.
Programming environments are options. They are not required for Oracle Database.
See Also :
Oracle Database Development Guide for an overview of programming environmentsEnsure that your system meets the requirements for the programming environment you want to configure:
Table 2-5 Requirements for Programming Environments for IBM AIX on POWER Systems (64-Bit)
Programming Environments | Support Requirements |
---|---|
Java Database Connectivity (JDBC) / Oracle Call Interface (OCI) |
JDK 6 (Java 6 64-bit 6.0.0.325 SR10 or later ) with the JNDI extension with Oracle Java Database Connectivity and Oracle Call Interface drivers. JDK 7 (Java 7 64-bit 7.0.0.0 or later) with the JNDI extension with Oracle Java Database Connectivity and Oracle Call Interface drivers. JDK 1.6 is installed with this release. Note: These are not mandatory for the database installation. |
Oracle C++ Oracle C++ Call Interface Pro*C/C++ Oracle XML Developer's Kit (XDK) |
IBM XL C/C++ Enterprise Edition for AIX, V11.1 (11.1.0.9) January 2012 PTF. IBM XL C++ Runtime for AIX, V11.1 (11.1.0.4) November 2011. Download this software from the following URL: http://www-01.ibm.com/support/docview.wss?uid=swg24031864 http://www-01.ibm.com/support/docview.wss?uid=swg24031426 Note: Even if you do not install the IBM XL C/C++ compiler, you require the compiler for the AIX Runtime Environment component. The runtime environment file sets can be downloaded with no license requirements. The minimum recommended runtime environment for IBM AIX is IBM XL C/C++ for AIX V11.1.0.4 Runtime Environment. It is available at the following URL: http://www-01.ibm.com/support/docview.wss?uid=swg24031426 |
Pro*COBOL |
IBM COBOL for AIX Version 4.1.1 (March 2012 PTF) Micro Focus Server Express 5.1 |
Pro*FORTRAN |
IBM XL Fortran Runtime for AIX, Version 13.1, January 2012 PTF |
ADA |
OC Systems PowerAda 5.5 For more information about OC Systems and PowerAda, go to: http://www.ocsystems.com/prod_powerada.html |
Web browsers are required only if you intend to use Oracle Enterprise Manager Database Express and Oracle Enterprise Manager Cloud Control. Web browsers must support JavaScript, and the HTML 4.0 and CSS 1.0 standards. For a list of browsers that meet these requirements see the Enterprise Manager certification matrix on My Oracle Support:
https://support.oracle.com
See Also:
Oracle Enterprise Manager Cloud Control Basic Installation Guide for steps on how to access the Enterprise Manager certification matrixTo ensure that the system meets these requirements, follow these steps:
To determine the distribution and version of AIX installed, enter the following command:
# oslevel -s
If the operating system version is lower than what is listed in "Operating System Requirements for IBM AIX on POWER Systems (64-Bit)", then upgrade your operating system accordingly to the currently supported or later version and level.
AIX maintenance packages are available from the following website:
To determine if the required filesets are installed and committed, enter a command similar to the following:
# lslpp -l bos.adt.base bos.adt.lib bos.adt.libm bos.perf.perfstat \ bos.perf.libperfstat bos.perf.proctools
To determine the supported kernel mode, enter a command similar to the following:
# getconf KERNEL_BITMODE
Note:
The expected output of this command is 64. If you do not see the expected output, then you cannot install the software on this system.
Oracle Database supports 64-bit kernel and does not provide support for 32-bit kernel applications.
To determine if an APAR is installed, enter a command similar to the following:
# /usr/sbin/instfix -i -k "IV16716 IV20880 IV21128 IV28319"
If an APAR is not installed, then download it from the following website and install it:
If you require a CSD for WebSphere MQ, then refer to the following website for download and installation information:
In addition to the requirements described in the preceding sections, if you plan to use Instant Client Light, then the applications must use the following languages and character sets:
Language: Any language that is supported by Oracle
Territory: Any territory that is supported by Oracle
Character sets:
Single byte
US7ASCII
WE8DEC
WE8MSWIN1252
WE8ISO8859P1
Unicode
UTF8
AL16UTF16
AL32UTF8
Instant Client Light can connect to databases having one of the following database character sets:
US7ASCII
WE8DEC
WE8MSWIN1252
WE8ISO8859P1
WE8EBCDIC37C
WE8EBCDIC1047
UTF8
AL32UTF8
The language, territory, and character sets are determined by the NLS_LANG
environment variable.
The 64-bit Oracle Database Client software does not contain any 32-bit client binaries. If you require 32-bit client binaries on 64-bit platforms, then install the 32-bit binaries from the respective 32-bit client software into a separate Oracle home.
The 64-bit Oracle Database Client preinstallation requirements apply to 32-bit Oracle Database Client also.
See Also:
My Oracle Support note 883702.1 for more information:https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=883702.1
On IBM AIX on POWER Systems (64-Bit), enable I/O completion ports (IOCP) to ensure successful database, client, and grid infrastructure installation.
To check if the IOCP module is enabled, run the lsdev
command:
$ lsdev | grep iocp
The following sample output shows the IOCP status is set to Defined
and hence not enabled:
iocp0 Defined I/O Completion Ports
By default, IOCP is set to Defined
. To enable IOCP, set IOCP to Available
using the following procedure:
Log in as root
and run the following command:
# smitty iocp
Select Change / Show Characteristics of I/O Completion Ports.
Change configured state at system restart from Defined to Available.
Run the lsdev
command to confirm the IOCP status is set to Available
:
$ lsdev | grep iocp iocp0 Available I/O Completion Ports
Perform a system restart to make the changes permanent.
Depending on whether this is the first time Oracle software is being installed on this system and on the products that you are installing, you may have to create the following operating system group and user:
The Oracle Inventory group (typically, oinstall
)
You must have a group whose members are given access to write to the Oracle Central Inventory (oraInventory
).
Installation logs and trace files from installations of Oracle software. These files are also copied to the respective Oracle homes for future reference.
Other metadata inventory information regarding Oracle installations are stored in the individual Oracle home inventory directories, and are separate from the Central Inventory.
For new installations, Oracle recommends that you allow Oracle Universal Installer to create the Central Inventory directory. By default, if you create an Oracle path in compliance with OFA structure, such as /u01/app
, then the Central Inventory is created in the path u01/app/oraInventory
, using correct permissions to allow all Oracle installation owners to write to this directory.
The Oracle software owner user (typically, oracle
)
You must create this user the first time you install Oracle software on the system. This user owns all of the software installed during the installation. This user must have the Oracle Inventory group as its primary group. It must also have the OSDBA and OSOPER groups as secondary groups.
Note:
In Oracle documentation, the user created to own the Oracle Database installations is referred to as the oracle
user.
An Oracle Database installation must be owned by the Oracle software owner user (oracle)
and the primary group of the Oracle software owner user must be the Oracle Inventory group (oinstall
).
A single Oracle Inventory group is required for all installations of Oracle software on the system. After the first installation of Oracle software, you must use the same Oracle Inventory group for all subsequent Oracle software installations on that system. However, you can choose to create different Oracle software owner users for separate installations.
Note:
The following sections describe how to create local users and groups. As an alternative to creating local users and groups, you could create the appropriate users and groups in a directory service, for example, Network Information Services (NIS). For information about using directory services, contact the system administrator or refer to the operating system documentation.The following sections describe how to create the required operating system users and groups:
You must create the Oracle Inventory group if it does not exist. The following sections describe how to determine the Oracle Inventory group name, if it exists, and how to create it if necessary:
Determining Whether the Oracle Inventory Group Exists
When you install Oracle software on the system for the first time, Oracle Universal Installer creates the oraInst.loc
file. This file identifies the name of the Oracle Inventory group (typically, oinstall
), and the path of the Oracle Inventory directory.
An oraInst.loc
file has content similar to the following:
inventory_loc=central_inventory_location inst_group=group
In the preceding example, central_inventory_location
is the location of the Oracle Central Inventory, and group
is the name of the group that has permissions to write to the central inventory.
If you have an existing Oracle Inventory, then ensure that you use the same Oracle Inventory for all Oracle software installations, and ensure that all Oracle software users you intend to use for installation have permissions to write to this directory.
To determine whether the Oracle Inventory group exists, enter the following command:
# more /etc/oraInst.loc
If the oraInst.loc
file exists, then the output from this command is similar to the following:
inventory_loc=/u01/app/oraInventory inst_group=oinstall
Creating the Oracle Inventory Group
If the oraInst.loc
file does not exist, then create the Oracle Inventory group as follows:
You must create an Oracle software owner user in the following circumstances:
If an Oracle software owner user does not exist; for example, if this is the first installation of Oracle software on the system
If an Oracle software owner user exists but you want to use a different operating system user
To determine if an Oracle software owner user (oracle
) exists, enter the following command:
# id oracle
If the oracle
user exists, then the output from this command is similar to the following:
uid=54321(oracle) gid=54321(oinstall) groups=54322(dba),54323(oper)
If the user exists, then determine whether you want to use the existing user or create another oracle
user. If you want to use the existing user, then ensure that the user's primary group is the Oracle Inventory group. Refer to one of the following sections for more information:
Note:
If necessary, contact the system administrator before using or modifying an existing user.If you want to use the existing Oracle software owner user, and the user's primary group is the Oracle Inventory group, then refer to the "Identifying Required Software Directories" section.
To modify an existing user, refer to the "Modifying an Oracle Database Client Software Owner User" section.
To create a user, refer to the following section.
If the Oracle software owner user does not exist or if you require a new Oracle software owner user, then create it as follows. In the following procedure, use the user name oracle
unless a user with that name exists.
# smit security
Choose the appropriate menu items to create the oracle
user, specifying the following information:
In the Primary GROUP field, specify the Oracle Inventory group, for example oinstall
.
In the Group SET field, specify the OSDBA group and if required, the OSOPER group. For example dba
, asmdba
, or oper
.
Note:
The UID for theoracle
user must be less than 65536.Press F10 to exit.
Set the password of the oracle
user:
# passwd oracle
Refer to the "Identifying Required Software Directories" section to continue.
If the oracle
user exists, but its primary group is not oinstall
, then enter a command similar to the following to modify it:
Enter the following command:
# smit security
Choose the appropriate menu items to modify the oracle
user.
In the Primary GROUP field, specify the Oracle Inventory group, for example oinstall
.
In the Group SET field, specify the required secondary groups, for example dba
.
Press F10 to exit.
Note:
Oracle does not support modifying existing Oracle Database server or other Oracle software installation owners. Oracle only supports modifying an Oracle Database Client software owner.You must identify or create the following directories for the Oracle software:
Note:
Ensure that the paths you select for Oracle software, such as the Oracle home path and the Oracle base path, use only ASCII characters. Because installation owner names are used by default for some paths, this ASCII character restriction applies to user names, file names, and directory names.The Oracle base directory is a top-level directory for Oracle software installations. On UNIX systems, the Optimal Flexible Architecture (OFA) guidelines recommend that you use a path similar to the following for the Oracle base directory:
/mount_point/app/software_owner
In this example:
mount_point
is the mount point directory for the file system that contains the Oracle software.
The examples in this guide use /u01
for the mount point directory.
software_owner
is the operating system user name of the software owner installing the Oracle software, for example oracle
.
You must specify the ORACLE_BASE
folder that contains all Oracle products.
Note:
If you have an existing Oracle base, then you can select it from the Use existing drop down box. By default, the drop down box contains the existing value for Oracle base selected. Refer to "Installing the Oracle Database Client Software" for information.If you do not have an Oracle base, then you can create a new one by editing the text in the list box.
You can use the same Oracle base directory for multiple installations or you can create separate Oracle base directories for different installations. If different operating system users install Oracle software on the same system, then each user must create a separate Oracle base directory. The following example Oracle base directories could all exist on the same system:
/u01/app/oracle /u01/app/orauser
The following sections describe how to identify existing Oracle base directories that may be suitable for the installation and how to create an Oracle base directory if necessary.
Regardless of whether you create an Oracle base directory or decide to use an existing one, you must set the ORACLE_BASE
environment variable to specify the full path to this directory.
The Oracle Inventory directory (oraInventory
) stores an inventory of all software installed on the system. It is required, and shared by all Oracle software installations on a single system. If you have an existing Oracle Inventory path, then Oracle Universal Installer continues to use that Oracle Inventory.
The first time you install Oracle software on a system, Oracle Universal Installer provides an OFA-compliant path in the format u[01-09]/app
, such as /u01/app
. The user running the installation has permissions to write to that path. If this is true, then Oracle Universal Installer creates the Oracle Inventory directory in the path /u[01-09]/app/oraInventory
. For example:
/u01/app/oraInventory
If you have set ORACLE_BASE
for the oracle
user during installation, then Oracle Universal Installer creates the Oracle Inventory directory in the path ORACLE_BASE/../oraInventory
. For example, if ORACLE_BASE
is set to /u01/app/oracle/
, then the Oracle Inventory directory is created in the path /u01/app/oraInventory
.
If you have created neither an OFA-compliant path nor set ORACLE_BASE
, then the Oracle Inventory directory is placed in the home directory of the user that is performing the installation. For example:
/home/oracle/oraInventory
Oracle Universal Installer creates the directory that you specify and sets the correct owner, group, and permissions for it. You do not have to create it.
Note:
All Oracle software installations rely on this directory. Ensure that you back it up regularly.
Do not delete this directory unless you have completely removed all Oracle software from the system.
By default, the Oracle Inventory directory is not installed under the Oracle Base directory. This is because all Oracle software installations share a common Oracle Inventory, so there is only one Oracle Inventory for all users. Whereas, there is a separate Oracle Base for each user.
The Oracle home directory is the directory where you choose to install the software for a particular Oracle product. You must install different Oracle products, or different releases of the same Oracle product, in separate Oracle home directories. When you run Oracle Universal Installer, it prompts you to specify the path to this directory, and a name that identifies it. In accordance with the OFA guidelines, Oracle strongly recommends that the Oracle home directory you specify is a subdirectory of the Oracle base directory for the user account performing the installation. Oracle recommends that you specify a path similar to the following for the Oracle home directory:
$ORACLE_BASE/product/12.1.0/client_1
Oracle Universal Installer creates the directory path that you specify under the Oracle base directory. It also sets the correct owner, group, and permissions on it. You do not have to create this directory.
Caution:
During installation, you must not specify an existing directory that has predefined permissions applied to it as the Oracle home directory. If you do, then you may experience installation failure due to file and group ownership permission errors.Before starting the installation, you must either identify an existing Oracle base directory or if required, create one. This section contains information about the following:
Note:
You can choose to create an Oracle base directory, even if other Oracle base directories exist on the system.Existing Oracle base directories may not have paths that follow OFA guidelines. However, if you identify an existing Oracle Inventory directory or existing Oracle home directories, then you can usually identify the Oracle base directories, as follows:
Identifying an existing Oracle Inventory directory
Enter the following command to view the contents of the oraInst.loc
file:
# more /etc/oraInst.loc
If the oraInst.loc
file exists, then the output from this command is similar to the following:
inventory_loc=/u01/app/oraInventory inst_group=oinstall
The inventory_loc
parameter identifies the Oracle Inventory directory (oraInventory
). The parent directory of the oraInventory
directory is typically an Oracle base directory. In the previous example, /u01/app/oracle
is an Oracle base directory.
Identifying existing Oracle home directories
Enter the following command to view the contents of the oratab
file:
# more /etc/oratab
If the oratab
file exists, then it contains lines similar to the following:
*:/u03/app/oracle/product/12.1.0/dbhome_1:N *:/opt/orauser/infra_904:N *:/oracle/9.2.0:N
The directory paths specified on each line identify Oracle home directories. Directory paths that end with the user name of the Oracle software owner to use are valid choices for an Oracle base directory. If you intend to use the oracle
user to install the software, then you could choose one of the following directories from the previous example:
/u03/app/oracle /oracle
Note:
If possible, choose a directory path similar to the first (/u03/app/oracle
). This path complies with the OFA guidelines.Identifying existing Oracle base directories
After you have located the Oracle home directory, run a similar command to confirm the location of Oracle base:
cat /u01/app/oraInventory/ContentsXML/inventory.xml
To continue:
If an Oracle base directory exists and you want to use it, then refer to the "Configuring Oracle Software Owner Environment" section.
When you configure the oracle
user's environment later in this chapter, set the ORACLE_BASE
environment variable to specify the directory you chose.
If an Oracle base directory does not exist on the system or to create an Oracle base directory, refer to the following section.
Before you create an Oracle base directory, you must identify an appropriate file system with disk space.
To identify an appropriate file system:
To determine the free disk space on each mounted file system use the following command:
# df -k
From the display, identify a file system that has appropriate free space.
Note the name of the mount point directory for the file system that you identified.
To create the Oracle base directory and specify the correct owner, group, and permissions for it:
Enter commands similar to the following to create the recommended subdirectories in the mount point directory that you identified and set the appropriate owner, group, and permissions on them:
# mkdir -p /mount_point/app # chown -R oracle:oinstall /mount_point/app # chmod -R 775 /mount_point/app/
For example:
# mkdir -p /u01/app # chown -R oracle:oinstall /u01/app # chmod -R 775 /u01/app/
When you configure the oracle
user's environment later in this chapter, set the ORACLE_BASE
environment variable to specify the Oracle base directory that you have created.
You run Oracle Universal Installer from the oracle
account. However, before you start Oracle Universal Installer you must configure the environment of the oracle
user. To configure the environment, you must:
Set the default file mode creation mask (umask) to 022 in the shell startup file.
Set the DISPLAY
environment variable.
Caution:
Use shell programs supported by your operating system vendor. If you use a shell program that is not supported by your operating system, then you can encounter errors during installation.To set the oracle
user's environment:
Start a new X terminal session (xterm
).
Enter the following command to ensure that X Window applications can display on this system:
$ xhost + RemoteHost
where RemoteHost
is the fully qualified remote host name. For example:
$ xhost + somehost.example.com
If you are not logged in to the system where you want to install the software, then log in to that system as the oracle
user.
If you are not logged in as the oracle
user, then switch user to oracle
:
$ su - oracle
To determine the default shell for the oracle
user, enter the following command:
$ echo $SHELL
To run the shell startup script, enter one of the following commands:
Bash shell:
$ . ./.bash_profile
Bourne or Korn shell:
$ . ./.profile
C shell:
% source ./.login
If you are not installing the software on the local system, then enter a command similar to the following to direct X applications to display on the local system:
Bourne, Bash, or Korn shell:
$ DISPLAY=local_host:0.0
C shell:
% setenv DISPLAY local_host:0.0
In this example, local_host
is the host name or IP address of the system to use to display Oracle Universal Installer (your workstation or PC).
If you determined that the /tmp
directory has less than 400 MB of free disk space, then identify a file system with at least 400 MB of free space and set the TMP
and TMPDIR
environment variables to specify a temporary directory on this file system:
To determine the free disk space on each mounted file system, use the following command:
# df -k
If necessary, enter commands similar to the following to create a temporary directory on the file system that you identified, and set the appropriate permissions on the directory:
su - root $ mkdir /mount_point/tmp $ chmod a+wr /mount_point/tmp #exit
Enter commands similar to the following to set the TMP
and TMPDIR
environment variables:
Bourne, Bash, or Korn shell:
$ TMP=/mount_point/tmp $ TMPDIR=/mount_point/tmp $ export TMP TMPDIR
C shell:
% setenv TMP /mount_point/tmp % setenv TMPDIR /mount_point/tmp
If you have had an existing installation on your system, and you are using the same user account to install this installation, then unset the ORACLE_HOME
, ORACLE_BASE
, ORACLE_SID
, TNS_ADMIN
environment variables and any other environment variable set for the Oracle installation user that is connected with Oracle software homes.
Enter the following commands to ensure that the ORACLE_HOME
, ORACLE_BASE
, ORACLE_SID
and TNS_ADMIN
environment variables are not set:
Bourne, Bash, or Korn shell:
$ unset ORACLE_HOME $ unset ORACLE_BASE $ unset ORACLE_SID $ unset TNS_ADMIN
C shell:
% unsetenv ORACLE_HOME % unsetenv ORACLE_BASE % unsetenv ORACLE_SID % unsetenv TNS_ADMIN
Use the following command to check the PATH
environment variable:
$ echo $PATH
Ensure that the $ORACLE_HOME/bin
path is removed from your PATH
environment variable.
Note:
If theORACLE_HOME
environment variable is set, then Oracle Universal Installer uses the value that it specifies as the default path for the Oracle home directory. If you set the ORACLE_BASE
environment variable, then Oracle recommends that you unset the ORACLE_HOME
environment variable and choose the default path suggested by Oracle Universal Installer.To verify that the environment has been set correctly, enter the following commands:
$ umask $ env | more
Verify that the umask
command displays a value of 22
, 022
, or 0022
and the environment variables that you set in this section have the correct values.