Skip to content

Instantly share code, notes, and snippets.

@Bigous
Last active December 2, 2015 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bigous/495df60ed9067266e82b to your computer and use it in GitHub Desktop.
Save Bigous/495df60ed9067266e82b to your computer and use it in GitHub Desktop.
Define oracledb variables for windows.
@echo off
echo Defining oracle variables...
set "OCI_LOCATION=D:\Oracle\instantclient_12_1\x64"
set "OCI_LIB_DIR=%OCI_LOCATION%\sdk\lib\msvc"
set "OCI_INC_DIR=%OCI_LOCATION%\sdk\include"
set "NODE_ORACLEDB_USER=xxx"
set "NODE_ORACLEDB_PASSWORD=yyy"
set "NODE_ORACLEDB_CONNECTIONSTRING=zzz"
set "PATH=%OCI_LOCATION%;%PATH%"
if defined VS140COMNTOOLS goto vs2015
if defined VS120COMNTOOLS goto vs2013
goto :eof
:vs2015
echo Using VS-2015
call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" amd64
goto :eof
:vs2013
echo Using VS-2013
call "%VS120COMNTOOLS%..\..\VC\vcvarsall.bat" amd64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment