Giter Club home page Giter Club logo

oracleschemadumper's Introduction

Introduction

The OracleSchemaDumper is a simple Java tool that dump the DDL and partial DML for specified schemas (users) from an Oracle database. More specifically it currently dumps this info (in this order):

  • user creation SQL statements including permissions
  • table creation SQL statements in the correct foreign key order
  • SQL statements to create views, indexes, sequences, procedures, functions
  • INSERT statements for all rows of specified tables

All these statements use the / character as the delimiter in order to make the SQL file usable via Sql*Plus.

The database user that is used to run the tool, has to have SELECT permissions on these system tables:

  • all_users
  • all_constraints
  • all_objects
  • all tables for which INSERT statements should be generated

Usage

Usage: OracleSchemaDumper [options]
  Options:
    -d, --data-tables   Names of the tables for which data shall be exported, too
    -f, --file          The file to write the DDL SQL to; stdout if not specified
  * -j, --jdbc-url      Database jdbc url
  * -p, --password      Database password
    -s, --schema        Database schemas to export; if not specified uses the schema for the database user
  * -u, --username      Database username

Known limitations

The tool currently cannot handle circular foreign key dependencies between separate tables (self references are fine).

The tool currently will export binary and BLOB/CLOB columns as if they are strings, which can cause illegal characters or too-long strings to be present in the generated INSERT statements.

oracleschemadumper's People

Stargazers

 avatar  avatar guiyinzhang avatar Boris Velichko avatar Emrah avatar Matteo Turra avatar Wan Cheuk Lun avatar  avatar 51pwn avatar Ismail avatar Darragh Murphy avatar Nitin Kalra avatar Mike avatar Stefano Teodorani avatar Mads Toftum avatar

Watchers

Pierre-Alexandre Meyer avatar Tim Galyean avatar  avatar Mita Mahadevan avatar  avatar James Cloos avatar James Chang 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.