Skip to content

Instantly share code, notes, and snippets.

@Bigous

Bigous/setOracleVars.bat

Last active Dec 2, 2015
Embed
What would you like to do?
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