If you determined that the /tmp directory had insufficient free disk space when checking the hardware requirements, then identify a file system with the required amount of free space and set the TEMP and TMPDIR environment variables as follows:
-
Use the
df -kcommand to identify a suitable file system with sufficient free space. -
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
TEMPandTMPDIRenvironment variables:Bourne, Bash, or Korn shell:
$ TEMP=/directory $ TMPDIR=/directory $ export TEMP TMPDIR
C shell:
% setenv TEMP /directory % setenv TMPDIR /directory
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 0022, 022, or 22 and the environment variables that you set in this section have the correct values.
9 Mounting the Product Disc
On most Linux systems, the product disc mounts automatically when you insert it into the drive. If the disc does not mount automatically, then follow these steps to mount it:
-
Switch user to
root:$ su - root
-
If necessary, enter a command similar to the following to eject the currently mounted disc, then remove it from the drive:
-
Red Hat:
# eject /mnt/dvd
-
SUSE:
# eject /media/dvd
In these examples,
/mnt/dvdand/media/dvdare the mount point directories for the disc drive. -
-
Insert the disc into the disc drive.
-
To verify that the disc mounted automatically, enter a command similar to the following:
-
Red Hat:
$ ls /mnt/dvd
-
SUSE:
$ ls /media/dvd
-
-
If this command fails to display the contents of the disc, then enter a command similar to the following:
-
Red Hat:
# mount -t iso9660 /dev/dvd /mnt/dvd
-
SUSE:
# mount -t iso9660 /dev/dvd /media/dvd
In these examples,
/mnt/dvdand/media/dvdare the mount point directories for the disc drive. -
10 Installing Oracle Database
After configuring the oracle user's environment, start Oracle Universal Installer and install Oracle Database as follows:
-
To start Oracle Universal Installer, enter the following command:
$ /mount_point/db/runInstaller
If Oracle Universal Installer does not start, then refer to Oracle Database Installation Guide for Linux x86 for information about how to troubleshoot X Window display problems.
-
The following table describes the recommended action for each Oracle Universal Installer screen. Use the following guidelines to complete the installation:
-
If you need more assistance, or if you want to choose an option that is not a default, then click Help for additional information.
-
If you encounter errors while installing or linking the software, then refer to Oracle Database Installation Guide for Linux x86 for information about troubleshooting.
Note:
If you have completed the tasks listed previously, then you can complete the installation by choosing the default values on most screens.
ScreenRecommended Action
Select Installation Method- 上一篇教程: SQL 的高级应用
- 下一篇教程: 集合和成员函数
-






