이번에는 리눅스에서 oracle instant client를 설치하고 환경변수로 등록하는 방법을 끄적여 보았습니다.

먼저 http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html 에서 자신의 OS환경에

맞는 oracle instant client  basic 과 sdk를 다운 받아 줍니다.

그리고 다운 받은 파일을 압축을 풀고 자신이 원하는 경로에 압축을 푼 basic 과 sdk 파일들을 모두 넣어줍니다.

이제 라이브러리 경로에 등록을 해주어야 하는데요.

.bash_profile을 열어 수정을 해줍니다.

export ORACLE_HOME=”/home/user/instantclient_12_1″

export LD_LIBRARY_PATH=”$ORACLE_HOME”

이런식으로 마지막 라인에 oracle instant client 파일 경로를 추가해줍니다.

끝~~