Oracle® Database Client Quick Installation Guide
10g Release 1 (10.1.0.3) for Apple Mac OS X Part No. B13956-01 |
|
Copyright © 1996, 2004, Oracle. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Client Quick Installation Guide
10g Release 1 (10.1.0.3) for Apple Mac OS X
Part No. B13956-01
December 2004
This guide describes how to quickly install Oracle Client on Mac OS X systems. It includes information about the following:
Note: This guide describes how to install Oracle Client on a system that does not have any Oracle software installed on it. If there is an existing Oracle software installation on this system, see the Oracle Database Client Installation Guide for Apple Mac OS X for more detailed installation instructions. |
This guide describes how to complete a default installation of Oracle Client in a new Oracle home directory. It describes how to perform one of the following installation types:
Administrator: Enables applications to connect to an Oracle database on the local system or on a remote system. It also provides tools that allow you to administer an Oracle database.
Runtime: Enables applications to connect to an Oracle database on the local system or on a remote system.
Instant Client: Enables you to install only the shared libraries required by Oracle Call Interface applications that use the Instant Client feature. This installation type requires much less disk space than the other Oracle Client installation types.
See Also: For more information about the Instant Client feature, see the Oracle Call Interface Programmer's Guide. |
Where to Get Additional Installation Information
For more detailed information about installing Oracle Client, see the Oracle Database Client Installation Guide for Apple Mac OS X.
This guide is available on the product disc. To access it, use a Web browser to open the welcome.htm
file, either in the top-level directory of the CD-ROM or in the client
directory on the DVD-ROM, then select the Documentation tab.
Before you install the Oracle software, you must complete several tasks as the root
user. To log in as the root
user, follow these steps:
Log into the Mac OS X desktop as a user that is a member of the admin
group.
To complete the installation described in this guide, you must be logged in to the Mac OS X desktop. If you want to install the software from a remote system, or install it on a system without graphics hardware, you must use Apple Remote Desktop to display the Mac OS X desktop for the system where you want to install the software.
Start a local terminal session (/Applications/Utilities/Terminal
).
If you are not logged in as the root
user, enter the following command to start a shell session with root
privileges:
$ sudo sh
When prompted, enter your password.
Note: Alternatively, if you are logged in as a user who is a member of theadmin group, you can use the sudo command to run commands as the root user. For example:
$ sudo /usr/sbin/sysctl -a |
The system must meet the following minimum hardware requirements:
Requirement | Minimum Value |
---|---|
Physical memory (RAM) | 256 MB |
Swap space | 512 MB or twice the size of RAM
On systems with 2 GB or more of RAM, the swap space can be between one and two times the size of RAM |
Disk space in /tmp
|
400 MB |
Disk space for software files | Between 75 MB and 420 MB of disk space, depending on the installation type that you choose |
To ensure that the system meets these requirements, follow these steps:
To determine the physical RAM size, use System Profiler (/Applications/Utilities/System Profiler
) or enter the following command:
# /usr/sbin/system_profiler SPHardwareDataType | grep Memory
If the size of the physical RAM installed in the system is less than 256 MB, you must install more memory before continuing.
To ensure that the system has enough swap space, enter the following command:
# df -h /
Note: Mac OS X dynamically creates swap files as required in the/private/var/vm directory. Make sure that you have at least 512 MB of available disk space on the root (/ ) file system to accommodate newly created swap files.
|
To determine the amount of free disk space available in the /tmp
directory, enter the following command:
# df -h /tmp
If there is less than 400 MB of disk space available in the /tmp
directory, complete one of the following steps:
Delete unnecessary files from the /tmp
directory to achieve the required disk space.
Set the TEMP and TMPDIR environment variables when setting the oracle
user's environment (described later).
Extend the file system that contains the /tmp
directory. If necessary, contact your system administrator for information about extending file systems.
To determine the amount of free disk space available on the system, enter the following command:
# df -h
This command displays the disk space usage on all mounted file systems. To complete the installation, identify a file system with sufficient disk space.
The system must meet the following minimum software requirements:
The operating system version must be Apple Mac OS X Server 10.3.6
The following software (or a higher version) must be installed:
Xcode Tools v1.1
GNU C compiler (gcc
) version 3.3 20030304 (Apple Computer, Inc. build 1635)
This version of gcc
is included in Xcode Tools 1.2 or higher or in the Dec 2003 gccLongBranch Tools update.
To ensure that the system meets these requirements, follow these steps:
To determine the version of the operating system, enter the following command:
# sw_vers
This command returns output similar to the following:
ProductName: Mac OS X Server ProductVersion: 10.3.6 BuildVersion: 7R28
Note: Only Mac OS X Server is supported. |
To determine whether the required version of gcc
is installed, enter the following command:
# gcc -v
This command returns output similar to the following:
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs Thread model: posix gcc version 3.3 20030304 (Apple Computer, Inc. build 1635) (-mlongcall)
If the required version (including the date and build number) or a later version is not installed, download and install either of the following:
The Dec 2003 gccLongBranch Tools update
Xcode Tools 1.2 or higher, which includes the correct version of gcc
You can download this software from the Apple Developer Connection Web site:
http://connect.apple.com
After you log in, choose Download Software, then Developer Tools to display the download page.
The following local UNIX groups and user must exist on the system:
The oinstall
group (the Oracle Inventory group)
The dba
group (the OSDBA group)
The oracle
user (the Oracle software owner)
To create this user and these groups, follow these steps:
Note: For information about using command-line utilities to create the required user and groups, see the Oracle Database Client Installation Guide for Apple Mac OS X. |
Start Workgroup Manager (/Applications/Server/Workgroup Manager
)
Create the oinstall
and dba
groups.
Create the oracle
user, specifying the following information:
For the Primary group, specify oinstall
.
For the Other groups, specify dba
.
Set the password of the oracle
user.
Create an Oracle base directory with a name similar to the following and specify the correct owner, group, and permissions for it:
/Volumes/u01/app/oracle
The Oracle base directory must have between 75 MB and 420 MB of free space depending on the installation type you choose:
Installation Type | Requirement for Software Files (MB) |
---|---|
Instant Client | 75 |
Administrator | 420 |
Runtime | 200 |
To determine where to create this directory, follow these steps:
Enter the following command to display information about all mounted file systems:
# df -h
This command displays information about all of the file systems mounted on the system, including:
The physical device name
The total amount, used amount, and available amount of disk space
The mount point directory for that file system
From the display, identify a file system that has sufficient disk space.
Note the name of the mount point directory for the file system that you identified.
In the following examples, /Volumes
/u01
is the mount point directory used for the software. You must specify the appropriate mount point directory for the file system on your system.
To create the required directory and specify the correct owner, group, and permissions for it, follow these steps:
Note: In the following procedure, replace/Volumes /u01 with the appropriate mount point directory that you identified in Step 3 previously.
|
Enter the following command to create subdirectories in the mount point directory that you identified for the Oracle base directory:
# mkdir -p /Volumes/u01/app/oracle
Change the owner and group of the directory that you created to the oracle
user and the oinstall
group:
# chown -R oracle:oinstall /Volumes/u01/app/oracle
Change the permissions on the directory that you created to 775:
# chmod -R 775 /Volumes/u01/app/oracle
You run the Installer from the oracle
account. However, before you start the 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 ORACLE_BASE environment variable.
To set the oracle
user's environment, follow these steps:
Start another terminal session and log in as the oracle
user.
To determine the default shell for the oracle
user, enter the following command:
$ echo $SHELL
Open the oracle
user's shell startup file in any text editor:
Bash shell (bash
):
$ vi .bash_profile
Bourne shell (sh
) or Korn shell (ksh
):
$ vi .profile
C shell (csh
or tcsh
):
% vi .login
Enter or edit the following line in the shell startup file, specifying a value of 022 for the default file mode creation mask:
umask 022
Save the file and exit from the editor.
To run the shell startup script, enter the following command:
Bash shell:
$ . ./.bash_profile
Bourne shell or Korn shell:
$ . ./.profile
C shell:
% source ./.login
If you determined that the /tmp
directory had insufficient free disk space when checking the hardware requirements, enter the following commands to set the TEMP and TMPDIR environment variables. Specify a directory on a file system with sufficient free disk space.
Bourne, Bash, or Korn shell:
$ TEMP=/directory $ TMPDIR=/directory $ export TEMP TMPDIR
C shell:
% setenv TEMP /directory % setenv TMPDIR /directory
Enter commands similar to the following to set the ORACLE_BASE environment variable:
Bourne, Bash, or Korn shell:
$ ORACLE_BASE=/Volumes/u01/app/oracle $ export ORACLE_BASE
C shell:
% setenv ORACLE_BASE /Volumes/u01/app/oracle
In these examples, /Volumes
/u01/app/oracle
is the Oracle base directory that you created earlier.
Enter the following commands to ensure that the ORACLE_HOME and TNS_ADMIN environment variables are not set:
Bourne, Bash, or Korn shell:
$ unset ORACLE_HOME $ unset TNS_ADMIN
C shell:
% unsetenv ORACLE_HOME % unsetenv TNS_ADMIN
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 022
and that the environment variables you set in this section have the correct values.
After configuring the oracle
user's environment, start the Installer and install the Oracle software, as follows:
Insert the Oracle Client 10g CD-ROM or Oracle Database 10g DVD-ROM into the disc drive.
To start the Installer, enter the following command, where directory_path
is the CD-ROM mount point directory or the client
directory on the DVD-ROM:
$ /directory_path/runInstaller
Use the following guidelines to complete the installation:
The following table describes the recommended action for each Installer screen.
Note: If you have completed the tasks listed previously, you can complete the installation by choosing the default values on most screens. |
If you need more assistance, or if you want to choose an option that is not a default, click Help for additional information.
If you are prompted to run a script with root
privileges, enter a command similar to the following in a terminal where you are logged in as the root
user, then click Continue or OK:
# /script_path/script_name
Alternatively, enter a command similar to the following to run the script in a terminal where you are logged in as a user that is a member of the admin
group:
$ sudo /script_path/script_name
If you encounter errors while installing or linking the software, see the Oracle Database Client Installation Guide for Apple Mac OS X for information about troubleshooting.
Screen | Recommended Action |
---|---|
Welcome | Click Next. |
Specify Inventory Directory and Credentials | Note: This screen appears only during the first installation of Oracle products on a system.
Specify the following information, then click Next: Enter the full path of the inventory directory Verify that the path is similar to the following, where oracle_base/oraInventory
Specify operating system group name Verify that the group specified is the Oracle Inventory group: oinstall |
Run orainstRoot.sh | If prompted, run the following script in a separate terminal window as the root user:
oracle_base/oraInventory/orainstRoot.sh
|
Specify File Locations | In the Destination section, verify that the Path value for the Oracle home directory is similar to the following, then click Next:
oracle_base/product/10.1.0/client_1
|
Select Installation Type | Select InstantClient, Administrator, or Runtime, then click Next. |
Summary | Review the information displayed, then click Install. |
Install | The Install screen displays status information while the product is being installed. |
Configuration Assistants | Note: This screen appears only during an Administrator or Runtime installation.
The Configuration Assistants screen displays status information for the Oracle Net Configuration Assistant that configures Oracle Net. |
Oracle Net Configuration Assistant: Welcome | Review the information on the screen, then click Next.
The Oracle Net Configuration Assistant configures the easy connect naming method. For more information about this naming method, click Help. |
Oracle Net Configuration Assistant: Done | Click Finish to continue. |
Setup Privileges | Note: This screen appears only during an Administrator or Runtime installation.
If prompted, run the following script in a separate terminal window as the oracle_home/root.sh
In this example, Press Return to accept the default values for each prompt displayed by the script. When the script finishes, click OK. |
End of Installation | To exit from the Installer, click Exit, then click Yes. |
After you have successfully installed Oracle Client, see Chapter 4 in the Oracle Database Client Installation Guide for Apple Mac OS X for information about required and optional post-installation steps.
Our goal is to make Oracle products, services, and supporting documentation accessible, with good usability, to the disabled community. To that end, our documentation includes features that make information available to users of assistive technology. This documentation is available in HTML format, and contains markup to facilitate access by the disabled community. Standards will continue to evolve over time, and Oracle is actively engaged with other market-leading technology vendors to address technical obstacles so that our documentation can be accessible to all of our customers. For additional information, visit the Oracle Accessibility Program Web site at
http://www.oracle.com/accessibility/
Accessibility of Code Examples in Documentation
JAWS, a Windows screen reader, may not always correctly read the code examples in this document. The conventions for writing code require that closing braces should appear on an otherwise empty line; however, JAWS may not always read a line of text that consists solely of a bracket or brace.
Accessibility of Links to External Web Sites in Documentation
This documentation may contain links to Web sites of other companies or organizations that Oracle does not own or control. Oracle neither evaluates nor makes any representations regarding the accessibility of these Web sites.