title: SP2-0750: You may need to set ORACLE_HOME
body: <p>I am getting following error message when i write <code>sqlplus</code> on command prompt</p>
  
  <pre><code>SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
  </code></pre>
  
  <p>Here are the path details</p>
  
  <p><img src="https://i.stack.imgur.com/2ZNN8.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/1ej3D.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/jbP4Y.png" alt="enter image description here"></p>
  
  <p>Net Configuration Assistance is not working too. It is not getting launched from Program Files and while accessing directly it gives following error </p>
  
  <pre><code>C:\Oracle\product\11.1.0\db_1\BIN&gt;netca.bat
  java.lang.UnsatisfiedLinkError: Can't load library: C:/Oracle/product/11.1.0/db_
  1;/oui/lib/win32/oraInstaller.dll
          at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1650)
          at java.lang.Runtime.load0(Runtime.java:769)
          at java.lang.System.load(System.java:968)
          at oracle.sysman.oii.oiip.osd.win32.OiipwWin32NativeCalls.loadNativeLib(
  OiipwWin32NativeCalls.java:1491)
          at oracle.sysman.oii.oiip.osd.win32.OiipwWin32NativeCalls.&lt;clinit&gt;(Oiipw
  Win32NativeCalls.java:47)
          at oracle.sysman.oii.oiip.oiipg.OiipgEnvironment.getEnv(OiipgEnvironment
  .java:210)
          at oracle.sysman.oii.oiip.oiipg.OiipgPropertyLoader.initUnixPtrFileLoc(O
  iipgPropertyLoader.java:213)
          at oracle.sysman.oii.oiip.oiipg.OiipgPropertyLoader.&lt;clinit&gt;(OiipgProper
  tyLoader.java:126)
          at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(
  OiicStandardInventorySession.java:461)
          at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS
  tandardInventorySession.java:257)
          at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS
  tandardInventorySession.java:231)
          at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS
  tandardInventorySession.java:180)
          at oracle.net.ca.NetCA.getHomeInfo(Unknown Source)
          at oracle.net.ca.NetCA.main(Unknown Source)
  
  
  java.lang.UnsatisfiedLinkError: no oraInstaller in java.library.path
          at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
          at java.lang.Runtime.loadLibrary0(Runtime.java:822)
          at java.lang.System.loadLibrary(System.java:993)
          at oracle.sysman.oii.oiip.osd.win32.OiipwWin32NativeCalls.loadNativeLib(
  OiipwWin32NativeCalls.java:1514)
          at oracle.sysman.oii.oiip.osd.win32.OiipwWin32NativeCalls.&lt;clinit&gt;(Oiipw
  Win32NativeCalls.java:47)
          at oracle.sysman.oii.oiip.oiipg.OiipgEnvironment.getEnv(OiipgEnvironment
  .java:210)
          at oracle.sysman.oii.oiip.oiipg.OiipgPropertyLoader.initUnixPtrFileLoc(O
  iipgPropertyLoader.java:213)
          at oracle.sysman.oii.oiip.oiipg.OiipgPropertyLoader.&lt;clinit&gt;(OiipgProper
  tyLoader.java:126)
          at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(
  OiicStandardInventorySession.java:461)
          at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS
  tandardInventorySession.java:257)
          at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS
  tandardInventorySession.java:231)
          at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicS
  tandardInventorySession.java:180)
          at oracle.net.ca.NetCA.getHomeInfo(Unknown Source)
          at oracle.net.ca.NetCA.main(Unknown Source)
  Oracle Net Services configuration failed.  The exit code is -1
  </code></pre>
  
  <p><strong>Edit</strong>
  Got it solved, since i attempted various solutions so i don't exactly remember, but i think it got solved by following two things </p>
  
  <p>1-<code>ORACLE_HOME</code> should not contain anything after the path i.e. no <code>\</code>, <code>;</code>,<code>,</code> </p>
  
  <p>2-I added an environment variable named <code>LANG</code> with value <code>American_America.we8iso8859p15</code></p>