sqlplus
当我在命令提示符下写入时收到以下错误消息
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
以下是路径详细信息
网络配置协助也无法正常工作。它无法从 Program Files 启动,直接访问时会出现以下错误
C:\Oracle\product\11.1.0\db_1\BIN>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.<clinit>(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.<clinit>(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.<clinit>(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.<clinit>(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
答案1
解决了,因为我尝试了各种解决方案,所以我记不清了,但我认为通过以下两件事可以解决
1-ORACLE_HOME
路径后不应包含任何内容,即没有\
,,;
,
2-我添加了一个名为LANG
值的环境变量American_America.we8iso8859p15