Giter VIP home page Giter VIP logo

tnsmaster's Introduction

tnsmaster

Toolset for mastering tnsnames.ora

https://coveralls.io/repos/github/difu/tnsmaster/badge.svg?branch=master

Important

At the moment tnsmaster is in the development phase. Not all features are working. But be encouraged to participate!

tnsmaster's goal is to be the Swiss army knife for creating and maintaining tnsname.ora files.

  • Syntax verification
    • check for correct syntax before rollout
  • Semantic verification assistance
    • create and extract easy-to-test components that let you connect easily to each service node (Dataguard, RAC) directly
  • Apply different styles to existing tnsnames.ora
    • consistent upper/lower cases of keywords or values
    • neat indentation
    • transform entries to one line per alias or alias list for easy scripting and copy/pasting to application server configurations
  • To format a tnsnames.ora file with default settings:

    python3 formatter.py path/to/tnsnames.ora
    

    A neat indented tnsnnames.ora will be printed to stdout.

  • To extract all aliases from a tnsnames.ora:

    python3 aliases.py path/to/tnsnames.ora
    

    All aliases will be printed to stdout.

Consider this address list of a tnsnames.ora file:

...
        (load_balance=yes)
        (address_list=
            (address=(protocol=tcp)(host=host1.domain.foo)(port=1522))
            (address=(protocol=tcp)(host=host2.domain.foo)(port=1524))
            (address=(protocol=tcp)(host=host3.someotherdomain.foo)(port=1522))
            (address=(protocol=tcp)(host=host1.someotherdomain.foo)(port=9210))
            (address=(protocol=tcp)(host=host2.farawaydomain.foo)(port=1522))
        )
...

It is hard to test if all connections are correct and the destination can be reached, because the client will choose an address randomly. tnsmaster will create a single tnsnames file for each address. You can now connect to this specific destination and test if it is reachable.

tnsmaster's People

Contributors

cragger avatar difu avatar erget avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

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.