1. Oracle 安装报错——环境变量过长

文章目录

  • [1. 报错详细信息](#1. 报错详细信息)
  • [2. 解决方案](#2. 解决方案)
    • [2.1 方案一:修改配置文件cvu_prereq.xml](#2.1 方案一:修改配置文件cvu_prereq.xml)
    • [2.2 方案二:修改环境变量配置](#2.2 方案二:修改环境变量配置)

1. 报错详细信息

安装 Oracle 过程中,在执行 "先决条件检查" 时报错:

报错内容:

java 复制代码
This test checks whether the length of the environment variable "PATH" 
does not exceed the recommended length

详细信息:

java 复制代码
Environment variable: "PATH" - This test checks whether the length of the environment variable "PATH" does not exceed the recommended length.
预期值
 : 1023
实际值
 : 1123
 错误列表: 
 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 "Hare"     
 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. 

2. 解决方案

提示信息的意思就是环境变量过长。

2.1 方案一:修改配置文件cvu_prereq.xml

cvu_prereq.xml 文件在 oracle 解压包 database\stage\cvu 目录下。打开文件,找到 CERTIFIED_SYSTEMS 标签,找到自己电脑对应的系统,将标签内的 MAX_LENGTH 的值改成较大的值(大于报错提示信息中的值即可)如下:

注意

  • 如果改完不生效,就把所有的 MAX_LENGTH 值都改掉;
  • 修改完成后,重新扫描也不会生效,需要退出后重新安装。

2.2 方案二:修改环境变量配置

  • 新建系统变量Path1
  • 将Path中的环境变量复制到Path1
  • 删除Path中的变量,添加以下内容:%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%Path1%
  • 点击确定保存更改
  • 回到安装界面点击重试即可

Tips:

方案一只能解决安装 Oracle 过程中出现的环境变量过长的问题,安装 Oracle-Client 过程中可能也会出现同样的报错,这时候需要用方案二解决。

相关推荐
Greyson142 分钟前
Layui表格如何使用第三方插件实现树形展示.txt
jvm·数据库·python
2401_871696521 小时前
mysql行级锁失效的原因排查_检查查询条件与执行计划
jvm·数据库·python
Elastic 中国社区官方博客1 小时前
Elasticsearch:快速近似 ES|QL - 第一部分
大数据·运维·数据库·elasticsearch·搜索引擎·全文检索
Dontla1 小时前
高基数(High Cardinality)问题介绍(Prometheus、高基数字段、低基数字段)
前端·数据库·prometheus
a9511416422 小时前
CSS如何实现元素隐藏不占位_使用display-none完全移除
jvm·数据库·python
SelectDB技术团队3 小时前
SelectDB Enterprise 4.0.5:强化安全与治理,构建企业级实时分析与 AI 数据底座
数据库·人工智能·apache doris
一 乐3 小时前
医院挂号|基于springboot + vue医院挂号管理系统(源码+数据库+文档)
java·数据库·vue.js·spring boot·论文·毕设·医院挂号管理系统
ego.iblacat3 小时前
Redis 核心概念与部署
数据库·redis·缓存
m0_493934533 小时前
如何监控AWR数据收集Job_DBA_SCHEDULER_JOBS中的BSLN_MAINTAIN_STATS
jvm·数据库·python
万岳科技系统开发3 小时前
商城系统搭建自建平台与入驻第三方平台对比分析
数据库·小程序·架构