Giter Site home page Giter Site logo

oraddl's Introduction

Build Status

oraddl

Command line utility for retrieving DDL SQL for all or listed database objects of the specified Oracle database schema. Each database object is stored in a separate SQL file with DDL.

The main purpose of this utility is to track changes of database objects in a version control system or to find out differencies between several instances of logically the same database scheme (what is actual for development proccess for several vendors or several versions of the same software).

Retrieved SQLs are cleared from insignificant details (eg insignificatn trailing spaces in package sources). Also information not related to business logic are ignored (eg physical storage parameters of tables) and not fall into generated SQLs.

$ oraddl --help
Retrieves DDL SQL for all or listed database objects of the specified Oracle database schema.

oraddl [OPTIONS]

Common flags:
     --connect=user/password@db                 Connect string
     --tables[=NAME,NAME,...]                   Names of tables to retrieve. Names are case
                                                sensitive. If you specify no names then all the
                                                tables will be retrieved
  -v --views[=NAME,NAME,...]                    Names of views to retrieve. Names are case
                                                sensitive. If you specify no names then all the
                                                views will be retrieved
     --sources=[=NAME,NAME,...]                 Names of sources (packages, functions,
                                                procedures, java, types) to retrieve. Names are
                                                case sensitive. If you specify no names then all
                                                the sources will be retrieved
     --triggers=[=NAME,NAME,...]                Names of triggers to retrieve. Names are case
                                                sensitive. If you specify no names then all the
                                                triggers will be retrieved
     --synonyms=[=NAME,NAME,...]                Names of synonyms to retrieve. Names are case
                                                sensitive. If you specify no names then all the
                                                synonyms will be retrieved
     --sequences=[=NAME,NAME,...]               Names of sequences to retrieve. Names are case
                                                sensitive. If you specify no names then all the
                                                sequences will be retrieved
     --mviews[=NAME,NAME,...]                   Names of materialized views to retrieve. Names
                                                are case sensitive. If you specify no names then
                                                all the materialized views will be retrieved
     --mview-logs[=NAME,NAME,...] --mviewlogs   Names of tables for witch to retrieve
                                                materialized view logs. Names are case sensitive.
                                                If you specify no names then all materialized view
                                                logs will be retrieved
     --list=NAME,NAME,...                       Names of objects of any type to retrieve. Names
                                                are case sensitive. Use this option instead of
                                                --tables, --views, etc. if the type of objects is
                                                unknown
     --listf=FILE                               File with list of intresting objects (one object
                                                per line). Names are case sensitive
     --dir=DIRNAME                              Directory where to put files whith SQL (default
                                                is current directory)
     --save-dollared                            By default objects with names containing the
                                                dollar sign ($) in their names are ignored if not
                                                specified explicitly via --tables, --list and etc.
                                                This option enables saving of such objects.
     --save-end-spaces --saveendspaces          By default insignificant spaces at end of each
                                                line are deleted, this option prevent this behavior
     --save-auto-generated --saveautogenerated  By default auto-generated objects (like indexes
                                                supporting constraints) not saved, this option
                                                enables auto-generated objects
  -? --help                                     Display help message
  -V --version                                  Print version information
     --numeric-version                          Print just the version number

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.