Coder Social home page Coder Social logo

carloscasalar / docker-sqlplus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nubs/docker-sqlplus

5.0 4.0 1.0 10 KB

SQL*Plus Docker image. You can provide your own tnsnames.ora

Home Page: https://hub.docker.com/r/carloscastillo/docker-sqlplus/

sqlplus docker-image oracle

docker-sqlplus's Introduction

SQL*Plus Docker image

Forked from guywithnose/docker-sqlplus and inspired by thriqon/docker-sqlplus.

This is a modified SQL*Plus docker image i've done in order to be enable to use my own tnsnames.ora and a dir where I could put some scripts.

Build it like this: docker build . -t carloscastillo/docker-sqlplus

Connect to a running Oracle database like this

docker run -it --rm -e USERNAME=username -e NET_SERVICE_NAME=XE -v /host/scripts/dir:/usr/workdir -v /host/oracle_home/network/admin:/usr/network/admin --net="host" carloscastillo/docker-sqlplus

If the target database is inside another container you can link it: docker run -it --rm --link database_container_name:name_of_database_host_in_tnsnames_dot_ora -e USERNAME=username -e NET_SERVICE_NAME=XE -v /host/scripts/dir:/usr/workdir -v /host/oracle_home/network/admin:/usr/network/admin carloscastillo/docker-sqlplus

Where:

  • username is your user name.
  • XE is the net service name for the target database in your tnsnames.ora.
  • /host/scripts/dir is your local dir where you have the scripts that you need to be visibles by sqlplus.
  • /host/oracle_home/network/admin is your local $ORACLE_HOME/network/admin or the dir where you have your tnsnames.ora.

In order to avoid the presence of password in your history commands i've intentionally omitted the password param so you will be prompted for it by sqlplus.

docker-sqlplus's People

Contributors

carloscasalar avatar guywithnose avatar nubs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

sagaroffsec

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.