安装oracle 出现Environment variable: "PATH"
安装oracle 出现Environment variable: "PATH" -
Environment variable: "PATH" - This test checks whether the length of the
environment variable "PATH" does not exceed the recommended length.
预期值
: 1023
实际值
: 1184
错误列表:
-
PRVF-3929 : Adding the Oracle binary location to the PATH
environment variable will exceed the OS length limit of [ "1023" ]
for the variable on the node "ABC" - Cause: The
installer needs to update the PATH environment variable to include
the value "%ORACLE_HOME%/bin;". However, doing so will cause PATH to
exceed the maximum allowable length that this operating system
allows. - Action: Ensure that the sum of the lengths of your
current PATH environment variable and that of "%ORACLE_HOME%/bin;"
does not exceed the operating system limit. Restart the installer
after correcting the setting for environment variable.
解决方案1: 环境变量PATH太长,需要取消掉一些以剪短PATH的长度,
windows下的PATH值在 “我的电脑”右键->“属性” -> "高级" -> "环境变量"
“系统变量” 选项卡里定义的Path,看到没?就是它了,编辑它把里面没用的软件路径删掉一部分。
注意下C盘的路径别删错了即可。
---------注释:不过我删除部分之后再检测还是依旧报错。-----------,所有换了方案2
解决方案2:
改 cvu_prereq.xml 里面 的配置,cvu_prereq.xml 文件在oracle安装解压包database\stage\cvu目录中
找到自己对于的电脑系统,我的是win10的,没有的可以填加下面红框中的内容(在CERTIFIED_SYSTEMS标签下)
<OPERATING_SYSTEM RELEASE="6.2">
<VERSION VALUE="3"/>
<ARCHITECTURE VALUE="64-bit"/>
<NAME VALUE="Windows 10"/>
<ENV_VAR_LIST>
<ENV_VAR NAME="PATH" MAX_LENGTH="2023" />
</ENV_VAR_LIST>
</OPERATING_SYSTEM>
把1023改大 比如2023 然后退出安装程序重新安装下就ok了
方案3
突然看到右上角有个“全部忽略”试一下啊忽略此错误再继续安装看看:
然后就成功了