Setting Shared Memory; Examining Temporary(/Tmp) Space; Sizing Oracle Disk Space - Red Hat ENTERPRISE LINUX 5.1 - LINUX ORACLE Tuning Manual

Oracle 9i and 10g tuning guide
Table of Contents

Advertisement

Chapter 30. Preparing Red Hat Enterprise Linux for an Oracle Database Installation

30.3. Setting Shared Memory

For Oracle9i installations, the maximum shared memory size must be increased. If it is too small, the
Oracle Database Configuration Assistant will display the following error message:
ORA-27123: unable to attach to shared memory segment.
To increase the shmmax setting, execute the following command:
$ su - root
# cat /proc/sys/kernel/shmmax
33554432
# echo `expr 1024 \* 1024 \* 1024` > /proc/sys/kernel/shmmax
# cat /proc/sys/kernel/shmmax
1073741824
It is recommended to increase the shmmax setting permanently for Oracle. For more information on
Chapter 7, Setting Shared
optimizing shared memory settings for Oracle databases on Linux, see
Memory. These parameters apply to all Red Hat Enterprise Linux versions.

30.4. Examining Temporary(/tmp) Space

The Oracle Universal Installer requires up to 400 MB of free space in the /tmp directory.
To find out the space in /tmp, run:
$ df /tmp
If you do not have enough space in the /tmp directory, you can temporarily create a tmp directory in
another file system. Here are the steps for doing it:
su - root
mkdir /<AnotherFilesystem>/tmp
chown root.root /<AnotherFilesystem>/tmp
chmod 1777 /<AnotherFilesystem>/tmp
export TEMP=/<AnotherFilesystem>
export TMPDIR=/<AnotherFilesystem>
The TEMP=/<AnotherFilesystem> file is used by Oracle. The TMPDIR=/<AnotherFilesystem> file
is used by Linux programs like the linker "ld".
When you are done with your Oracle installation, shut down Oracle and remove the temporary
directory:
su - root
rmdir /<AnotherFilesystem>/tmp
unset TEMP
unset TMPDIR

30.5. Sizing Oracle Disk Space

You will need about 2.5 GB for the database software. If you perform a typical database installation
and not a customized database installation, then you will need about 3.5 GB of disk space.
118

Advertisement

Table of Contents
loading

Table of Contents