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 过程中可能也会出现同样的报错,这时候需要用方案二解决。

相关推荐
计算机毕设定制辅导-无忧学长6 小时前
西门子 PLC 与 Modbus 集成:S7-1500 RTU/TCP 配置指南(一)
服务器·数据库·tcp/ip
程序员柳7 小时前
基于微信小程序的校园二手交易平台、微信小程序校园二手商城源代码+数据库+使用说明,layui+微信小程序+Spring Boot
数据库·微信小程序·layui
梦在深巷、7 小时前
MySQL/MariaDB数据库主从复制之基于二进制日志的方式
linux·数据库·mysql·mariadb
IT乌鸦坐飞机7 小时前
ansible部署数据库服务随机启动并创建用户和设置用户有完全权限
数据库·ansible·centos7
IT_10247 小时前
Spring Boot项目开发实战销售管理系统——数据库设计!
java·开发语言·数据库·spring boot·后端·oracle
祁思妙想8 小时前
八股学习(三)---MySQL
数据库·学习·mysql
惊骇世俗王某人9 小时前
1.MySQL之如何定位慢查询
数据库·mysql
秦歌6669 小时前
向量数据库-Milvus快速入门
数据库·milvus
Edingbrugh.南空11 小时前
Flink SQLServer CDC 环境配置与验证
数据库·sqlserver·flink
码不停蹄的玄黓11 小时前
MySQL分布式ID冲突详解:场景、原因与解决方案
数据库·分布式·mysql·id冲突