+ -
当前位置:首页 → 问答吧 → 安装oracle最后一公里..

安装oracle最后一公里..

时间:2010-09-07

来源:互联网

8 Configuring the oracle User's Environment
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:

Start a new terminal session, for example, an X terminal (xterm).

Enter the following command to ensure that X Window applications can display on this system:

$ xhost fully_qualified_remote_host_name

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

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) on Red Hat:

$ vi .bash_profile

Bourne shell (sh), Bash shell on SUSE (bash), 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

If the ORACLE_SID, ORACLE_HOME, or ORACLE_BASE environment variable is set in the file, then remove the corresponding lines from the file.

Save the file, and exit from the editor.

To run the shell startup script, enter the following command:

Bash shell on Red Hat:

$ . ./.bash_profile

Bourne shell, Bash shell on SUSE, 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 ; export DISPLAY

C shell:

% setenv DISPLAY local_host:0.0

In this example, local_host is the host name or IP address of the system that you want to use to display Oracle Universal Installer (your workstation or PC).

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 -k command 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 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

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.

上面说的是设置oracle用户的环境变量.
谁能把大概意思给我翻译一下.
umask 022 这个怎么设置

If the ORACLE_SID, ORACLE_HOME, or ORACLE_BASE environment variable is set in the file, then remove the corresponding lines from the file.
这个如果有怎么还删除呢?不是应该添加吗?很迷惑.
摘自oracle安装手册.谢谢

作者: happyjk   发布时间: 2010-09-07

楼主应该补习Linux的基础知识了啊。
umask 022是Linux的系统命令。设置目录和文件权限掩码的。

作者: renxiao2003   发布时间: 2010-09-07

相关阅读 更多

热门下载

更多