Skip to content

Instantly share code, notes, and snippets.

@aduartem
Last active May 21, 2022 19:38
Show Gist options
  • Save aduartem/04468ffbdad82ca3118a0a710b45fde0 to your computer and use it in GitHub Desktop.
Save aduartem/04468ffbdad82ca3118a0a710b45fde0 to your computer and use it in GitHub Desktop.
Node.js y Oracle

Node.js y OracleDB

1.- Descargar el Oracle Instant Client 'Basic' y 'SDK' ZIPs

Version 11.2.0.4.0

Instant Client Package - Basic: All files required to run OCI, OCCI, and JDBC-OCI applications

Instant Client Package - SDK: Additional header files and an example makefile for developing Oracle applications with Instant Client

2.- Instalación de Node-oracledb en Linux con archivos Instant Client ZIP

Tutorial

Imporante: Abrir el archivo ~/.bashrc y agregar:

oracle - How to correctly set the ORACLE_HOME

export LD_LIBRARY_PATH=/opt/oracle/instantclient:$LD_LIBRARY_PATH
export OCI_LIB_DIR=/opt/oracle/instantclient
export OCI_INC_DIR=/opt/oracle/instantclient/sdk/include
export ORACLE_HOME=/opt/oracle/instantclient

Guardar cambios, cerrar terminal y volver a abrir.

Librerias adicionales para Instant Client

Instant Client Downloads for Linux x86-64

Instant Client Package - SQLPlus: Additional libraries and executable for running SQLPlus with Instant Client

Instalación y configuración de SQL*Plus Instant Client en UNIX o Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment