Getting Sqldeveloper 19.1 64-bit working with instantclient_12_2 on Windows enterprise PC without admin privileges?

后端 未结 2 1654
渐次进展
渐次进展 2021-01-15 18:06

I\'ve installed Sqldeveloper Version 19.1 64-bit Version on an enterprise PC with Win7-64bit.

It works fine with embedded jdbc-client, but I need to get it working u

2条回答
  •  抹茶落季
    2021-01-15 18:51

    Meanwhile, I've solved it.

    Result of testing:

    Testing the Instant Client located at C:\Users\myuser\Oracle\instantclient_12_2
    Testing client directory ... OK
    Testing loading Oracle JDBC driver ... OK
    Testing checking Oracle JDBC driver version ... OK
      Driver version: 12.2.0.1.0
    Testing testing native OCI library load ... OK
    Success! 
    

    Reason were following mistakes:

    1. Forgot "set" in front of Variable assignment (because I'm usually using Unix)
    2. Used quotation marks during Variable assignment, which are taken as part of the value (also different to UNIX).
    3. Added JAVA_HOME and JRE_PATH

    See below my complete bat-file (adapted, because of some secret information within pathnames):

    REM Optional: setting of USE_OS_DATETIME_FORMAT changes DATE-Format
    set USE_OS_DATETIME_FORMAT=1
    set PATH=%USERPROFILE%\OneDrive - myCompany\Oracle\instantclient_12_2;%JAVA_HOME%;%PATH%
    
    REM start your preferred sqldeveloper
    "%USERPROFILE%\OneDrive - myCompany\Oracle\sqldeveloperx64.20.2\sqldeveloper.exe"C:\Users\myuser\OneDrive - myCompany\Oracle\sqldeveloperx64.19.1\sqldeveloper.exe"
    

    Additionally, I've added a shortcut to the bat-file and now I can start it simply with CRTL-SHIFT-S ;-)

    BTW: Same solution works fine on Win10 as well

提交回复
热议问题