Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oracle client installation error - path too long

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 of the     environment variable "PATH" does not exceed the recommended length. Expected Value: 1023 Actual Value : 1028 List of errors: - 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 "KamalNuriyev-PC"  -     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.  
like image 451
kamal Avatar asked Aug 23 '12 10:08

kamal


People also ask

Why is Oracle not installing?

If an installation fails, you must remove files that Oracle Universal Installer created during the attempted installation and remove the Oracle home directory. Follow the instructions in "Removing Oracle Database Software" to run the Deinstallation tool.

Why is Oracle setup exe not working?

If there is a directory or folder with a space embedded in the name, the installer will not start. Change the offending folder name by removing any spaces embedded in the name. Then re-run the installer. NOTE: This issue can also occur when the zip file is extracted incorrectly and not all of the files are extracted.

What is the path of Oracle_home?

ORACLE_HOME is a directory in the file system where the Oracle software is installed. The path to this directory is stored in an environment variable. The value of ORACLE_HOME will vary according to where you have installed Oracle. On a Windows machine, could have installed in under C:\ or C:\Softwares or under D:\.

How long does Oracle take to install?

The Oracle Database 12c Enterprise Edition took 3 hours to download and 1 hour to Install. It is a large file and with high speed connectivity should not take that long to download, however you can expect delays and slowed overall processing of your PC.


2 Answers

This limitation is based on older Windows restrictions, where length of environmental variables was important. This limitation is still there in the Oracle installation.

Work around this:

  • Step 1: Copy the value of your 'path' variable to a text-editor (Ex.: notepad) and save this value as backup.
  • Step 2: Reduce the size of this path to less that 1023 characters. Remove path variables at the end. You will mostly not need any of them during the oracle installation. Keep those removed values in a separate text-file, because you need to add them again later!
  • Step 3: Start the oracle installation again.
  • Step 4: After Oracle installation: Add those removed path values again at the end of the path.

Good luck!

Extra screenshot

like image 174
Dimitri Dewaele Avatar answered Sep 19 '22 03:09

Dimitri Dewaele


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 :)

like image 27
4u.Ans Avatar answered Sep 20 '22 03:09

4u.Ans