Oracle 的文档,总是自相矛盾~

[复制链接]
查看11 | 回复0 | 2011-5-7 01:45:08 | 显示全部楼层 |阅读模式
online doc B19075-02
Oracle® Database Installation Guide
10g Release 2 (10.2) for AIX 5L Based Systems (64-Bit)
有一段关于ORACLE_HOME的内容,如下(红色部分):
2.7.3 Oracle Home Directory
The Oracle home directory is the directory where you choose to install the software for a particular Oracle product. You must install different Oracle products, or different releases of the same Oracle product, in separate Oracle home directories. When you run Oracle Universal Installer, it prompts you to specify the path to this directory, as well as a name that identifies it. The directory that you specify must be a subdirectory of the Oracle base directory. Oracle recommends that you specify a path similar to the following for the Oracle home directory:
oracle_base/product/10.2.0/db_1
Oracle Universal Installer creates the directory path that you specify under the Oracle base directory. It also sets the correct owner, group, and permissions on it. You do not need to create this directory.
Caution:
During installation, you must not specify an existing directory that has predefined permissions applied to it as the Oracle home directory. If you do, then you may experience installation failure due to file and group ownership permission errors.
严重声明在安装oracle之前,不要建立ORACLE_HOME目录。
可是在oracle metalink中的Note:334562.1 Pre-Install checks for 10gR2 RDBMS (10.2.x) - AIX Platforms中说使用RDA捆绑的HVCE来做预安装检查
Note:250262.1 RDA HVCE(Health Check / Validation Engine)Guide中提到
如果用HVCE检查:
Rule A00040: Input ORACLE_HOME
Variable to store ORACLE_HOME entered during the execution.
Prompt Planned ORACLE_HOME location or if set
Default Value $ORACLE_HOME

It stores the rule value in the $ORACLE_HOME variable in the evaluation context.
Back to top

--------------------------------------------------------------------------------

Rule A00050: ORACLE_HOME Valid?
This rule checks for the Oracle home directory.
Your environment considers this test as "FAILED" unless the rule A00040 has a "PASSED|RECORD" status.
Requires rule 40.

Run the following RDA code and record the result:
import $ORACLE_HOME
call setHcveResult(cond(\
not(defined($ORACLE_HOME)),'OHNotSpecified',\
not(testDir('d',$ORACLE_HOME)),'OHnotvalid',\
not(testDir('l',$ORACLE_HOME)),'OHexists',\

'OHsymlink'))

If the rule code returns a result matching "OHexists|OHsymlink|OHNotSpecified", then your environment considers this test as "PASSED".
The Oracle home directory exists. No action required
Otherwise, your environment considers this test as "FAILED".
ALERT: There is something wrong with the Oracle home directory. Verify the following: Return Value Action
OHnotvalid Ensure that you provided the correct location or that this directory is created and then run this script again
OHsymlink ORACLE_HOME is a symbolic link
OHNotSpecified No ORACLE_HOME value was provided for verification
在A00040时,会让你输入你计划用来当作ORACLE_HOME的目录名。然后进行A00050,这时候如果这个目录不存在,就会
40 Input ORACLE_HOME RECORD /opt/app/oracle/product/10.2.0/db_1
50 ORACLE_HOME Valid? FAILED OHexists 再看看后面的解释
OHnotvalid Ensure that you provided the correct location or that this directory is created and then run this script again
...无奈了,崩溃了...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行