Oracle10g快速安装向导(Linux平台)
Oracle Database Quick Installation Guide
10g Release 2 (10.2) for Linux x86
Oracle10g快速安装向导(Linux平台)-下
七:创建目录
创建类似于下列名称的目录,为它们指定正确的Owner、Group和Permission:
· The Oracle base directory
· An optional Oracle data file directory (optional)
The Oracle base directory must have 3 GB of free disk space, or 4 GB of free disk space if you choose not to create a separate Oracle data file directory.
Note: If you do not want to create a separate Oracle data file directory, then you can install the data files in a subdirectory of the Oracle base directory. However, this is not recommended for production databases. |
创建Oracle base directory:
1. 输入以下命令显示所有已挂载的文件系统的信息:
# df –k
这个命令显示了系统上所有已经挂载的文件系统信息,包括:
The physical device name
The total amount, used amount, and available amount of disk space
The mount point directory for that file system
2. 依据显示的结果,找出哪一个或两个文件系统满足之前部分提到过的磁盘空间需求
3. Note the name of the mount point directory for each file system that you identified.
4. 在一个挂载点目录上输入以下类似目录创建推荐的子目录,同时在其上识别和设置正确的owner, group, and permissions:
# mkdir –p /mount_point/app/oracle_sw_ower
# chown –R oralce:oinstall /mount_point/app/oracle_sw_ower
# chmod –R 775 /mount_point/app/oracle_sw_ower
例如,如果挂载点是u01,oracle是数据库软件的所有者,那么推荐的Oracle base directory path如下所示:
u01/app/oracle
八:创建oracle用户环境
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.
To set the oracle user's environment:
1. Start a new terminal session, for example, an X terminal (xterm).
2. 输入以下命令以确保在系统X Window applications 可以在系统上显示:
$ xhost fully_qualified_remote_host_name
3. Complete one of the following steps:
· If the terminal session is not connected to the system where you want to install the software, then log in to that system as the oracle user.
· If the terminal session is connected to the system where you want to install the software, then switch user to oracle:
$ su - oracle
4. To determine the default shell for the oracle user, enter the following command:
$ echo $SHELL
5. Open the oracle user's shell startup file in any text editor:
(1)Bash shell (bash) on Red Hat:
$ vi .bash_profile
(2)Bourne shell (sh), Bash shell on SUSE (bash), or Korn shell (ksh):
$ vi .profile
(3)C shell (csh or tcsh):
% vi .login
6. 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
7. If the ORACLE_SID, ORACLE_HOME, or ORACLE_BASE environment variable is set in the file, then remove the corresponding lines from the file.
8. Save the file, and exit from the editor.
9. To run the shell startup script, enter the following command:
(1)Bash shell on Red Hat:
$ . ./.bash_profile
(2)Bourne shell, Bash shell on SUSE, or Korn shell:
$ . ./.profile
(3)C shell:
% source ./.login
11. 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:
a. Use the df -k command to identify a suitable file system with sufficient free space.
b. 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
c. Enter commands similar to the following to set the TEMP and TMPDIR environment variables:
Bourne, Bash, or Korn shell:
$ TEMP=/directory
$ TMPDIR=/directory
$ export TEMP TMPDIR
C shell:
% setenv TEMP /directory
% setenv TMPDIR /directory
12. Enter the following commands to ensure that the ORACLE_HOME and TNS_ADMIN environment variables are not set:
(1)Bourne, Bash, or Korn shell:
$ unset ORACLE_HOME
$ unset TNS_ADMIN
(2)C shell:
% unsetenv ORACLE_HOME
% unsetenv TNS_ADMIN
13. 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.
九:挂载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:
1. Switch user to root:
$ su - root
2. 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/dvd and /media/dvd are the mount point directories for the disc drive.
1. Insert the disc into the disc drive.
2. To verify that the disc mounted automatically, enter a command similar to the following:
· Red Hat:
$ ls /mnt/dvd
· SUSE:
$ ls /media/dvd
3. 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/dvd and /media/dvd are the mount point directories for the disc drive.
十:安装oracle数据库
After configuring the oracle user's environment, start Oracle Universal Installer and install Oracle Database as follows:
1. 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.
2. 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. |
1.
Screen | Recommended Action |
Select Installation Method | The Basic Installation option is selected by default. Specify the directory path of the Oracle home. Ensure that the oinstall group is selected. If you want to create a starter database, then specify a name and password for it. Then, click Next. |
Specify Inventory Directory and Credentials | This screen is displayed only during the first installation of Oracle products on a system. Specify the full path of the Oracle Inventory directory. Ensure that the operating system group selected is oinstall. Then, click Next. |
Product-Specific Prerequisite Checks | Verify that all of the prerequisite checks succeed, and then click Next. Oracle Universal Installer checks the system to verify that it is configured correctly to run Oracle software. If you have completed all of the preinstallation steps in this guide, all of the checks should pass. If a check fails, then review the cause of the failure listed for that check on the screen. If possible, rectify the problem and rerun the check. Alternatively, if you are satisfied that your system meets the requirements, then you can select the check box for the failed check to manually verify the requirement. |
Summary | Review the information displayed on this screen, and then click Install. |
Install | This screen displays status information while the product is installed. |
Configuration Assistants | This screen displays status information for the configuration assistants that configure the software and create a database. When the message is displayed at the end of this process, click OK to continue. |
Execute Configuration Scripts | When prompted, read the instructions and then run the scripts mentioned on this screen. Click OK to continue. |
End of Installation | The configuration assistants configure several Web-based applications, including Oracle Enterprise Manager Database Control. This screen displays the URLs configured for these applications. Make a note of the URLs used. The port numbers used in these URLs are also recorded in the following file: $ORACLE_HOME/install/portlist.ini To exit from Oracle Universal Installer, click Exit and then click Yes. |
十一:Installing Products from the Oracle Database 10g Companion CD
The Oracle Database 10g Companion CD contains additional products that you can install. Whether you need to install these products depends on which Oracle Database products or features you plan to use. If you plan to use the following products or features, then you must complete the Oracle Database 10g Products installation from the Companion CD:
· JPublisher
· Oracle JVM
· Oracle interMedia
· Oracle JDBC development drivers
· Oracle SQLJ
· Oracle Database Examples
· Oracle Text supplied knowledge bases
· Oracle Ultra Search
· Oracle HTML DB
· Oracle Workflow server and middle-tier components
For information about installing software from the Companion CD, refer to Oracle Database Companion CD Quick Installation Guide for Linux x86.
十二:What to Do Next?
To become familiar with this release of Oracle Database, it is recommended that you complete the following tasks:
· Log in to Oracle Enterprise Manager Database Control using a Web browser.
Oracle Enterprise Manager Database Control is a Web-based application that you can use to manage a single Oracle Database installation. The default URL for Database Control is similar to the following:
http://host.domain:1158/em/
To log in, use the user name SYS and connect as SYSDBA. Use the password that you specified for this user during the Oracle Database 10g installation.
· Refer to Oracle Database Installation Guide for Linux x86 for information about required and optional postinstallation tasks, depending on the products that you want to use.
· Refer to Oracle Database Installation Guide for Linux x86 for information about how to use Database Control to learn about the configuration of your installed database.
· To learn more about using Oracle Enterprise Manager Database Control to administer a database, refer to Oracle Database 2 Day DBA.
This guide, designed for new Oracle DBAs, describes how to use Database Control to manage all aspects of an Oracle Database installation. It also provides information about how to enable e-mail notifications and automated backups, which you might not have configured during the installation.