Giter Club home page Giter Club logo

gauche-dbd-oracle's Introduction

What's is Gauche-dbd-oracle

This is an Oracle module for Gauche.

How to Install

Oracle Full Client on Unix

First, make sure that ORACLE_HOME is set correctly and LD_LIBRARY_PATH indicates $ORACLE_HOME/lib.

Second, run the following command:

gauche-package install Gauche-dbd-oracle-0.0.1.tgz

Oracle Instant Client on Unix

First, download Oracle Instant Client zip packages: Basic and SDK. Rpm packages are not supported.

Second, unzip them.:

mkdir /opt
cd /opt
unzip instantclient-basic-linux32-11.1.0.7.zip
unzip instantclient-sdk-linux32-11.1.0.7.zip

Third, make a symbolic link if it doesn't exist:

cd /opt/instantclient_11_1
ln -s libclntsh.so.11.1 libclntsh.so

Forth, make sure that LD_LIBRARY_PATH indicates the installed directory:

LD_LIBRARY_PATH=/opt/instantclient_11_1
export LD_LIBRARY_PATH

Fifth, run the following command:

gauche-package install -C --with-instant-client=/opt/instantclient_11_1 Gauche-dbd-oracle-0.0.1.tgz

Usage

Gauche-dbd-oracle is a DBD module of Gauche-dbi. Look at the Gauche-dbi for usage.

The DSN format of dbd-oracle is: "dbi:oracle:TNS_NAME" or "dbi:oracle://HOSTNAME:PORT/SID_NAME". Username and password are passed as keywords as follows:

(define conn (dbi-connect "dbi:oracle://localhost/XE" :username "scott" :password "tiger"))

Restrictions

  • Oralce 8i or lower is not supported.
  • Transactions are not supported. All DMLs are automatically committed.
  • Date and timestamp data types are retrieved as string values.

gauche-dbd-oracle's People

Contributors

kubo avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

cryks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.