Oracle client installation error - path too long

后端 未结 12 833
温柔的废话
温柔的废话 2021-01-01 09:49

I\'m trying to install Oracle 11g Release 2 (client). But it gives an error like that :

Environment variable: \"PATH\" - This test checks whether the length          


        
相关标签:
12条回答
  • 2021-01-01 10:20

    One way of fixing this is to go to stage\cvu in the installer directory and edit cvu_prereq.xml, replace all values (there are multiple ones) containing 1023 with a larger number and then try to install it again.

    Might need to do this after running the installer but before the installer does the check on the different requirements like the PATH length.

    0 讨论(0)
  • 2021-01-01 10:21

    For those who are facing this issue, solution would be to look into your Environment Variable "PATH" and bring it to shorter in length by removing unnecessary paths / repeating paths as suggested by Bob Javis in his comment. Thanks to him.

    I had the similar issues and got it resolved by doing so.

    To Edit ENV Variable on Windows 7: Start -> Computer -> Properties -> Advanced System Settings -> On "System properties" window, select "Advanced" tab - > Click on "Environment Variable" -> Scroll down to see the PATH variable and click on "Edit" to edit accordingly and Click "OK" to save

    Hope someone might get helped :)

    0 讨论(0)
  • 2021-01-01 10:21

    I used two approaches to shorten my PATH environmental variable:

    1) Use other environment variables, e.g.: %CommonProgramFiles(x86)% for "C:\Program Files (x86)\Common Files" %ProgramFiles(x86)% for "C:\Program Files (x86)"

    2) Use 8 character DOS path names, e.g.: MICROS~4 for "Microsoft SQL Server" * Your system may have a different number, in a CMD window, browse to the parent folder and type "dir /ad /x"

    "%ProgramFiles(x86)%\Micros~4\140\DTS\Binn" is 15 characters shorter than "C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn"

    I shrank the total length of the PATH from 1120 to 890. Then I could install the Oracle client without a problem.

    0 讨论(0)
  • 2021-01-01 10:23

    After trying with all I found this in the Oracle wiki:

    What it says is that you should reduced your string's path changing the "C:\Program Files (x86)" to "C:\PROGRA~2"

    Be sure to make a backup of the original path.

    0 讨论(0)
  • 2021-01-01 10:26

    Simple solution:

    1. Rename your current PATH variable to PATH2
    2. Then add a new PATH = %PATH2%
    3. Continue with the installation
    0 讨论(0)
  • 2021-01-01 10:29

    I had this issue and the only way we could get the PATH test to pass was to remove the computer from the domain and re-add it. Can't explain why, but that worked for us. Best of luck.

    0 讨论(0)
提交回复
热议问题