Coder Social home page Coder Social logo

ztz2018 / dbfingerprint Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rchick/dbfingerprint

0.0 1.0 0.0 116 KB

DB Fingerprint Util written in Java to gain unique key for an Oracle DB schema, so environments can be compared at a very high level

Java 100.00%

dbfingerprint's Introduction

This Util gives you a high level fingerprint of a Oracle DB schema. 

Hopefully people will find this Util useful when comparing Oracle environments, (between dev, test, prod) and when upgrading stacks to make sure environment control is in place and environments are like for like.

It runs the following SQL against the supplied details

Description       - SQL
Oracle Version    - "select * from v$version"
Number of Tables  - "SELECT COUNT(TABLE_NAME) FROM ALL_TABLES"
Number of Columns - "select count(column_name) from all_tab_columns"
Number of Indexes - "select count(index_name) from all_indexes"
Number of Views   - "select count(view_name) from all_views"
DB Character Set  - "select value from nls_database_parameters where parameter='NLS_CHARACTERSET'"

then displays the details on a single line. 

EXAMPLE OUTPUT:-
###############

version.tableCount.columnCount.indexCount.viewCount.characterSet
"Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production".553.13764.1078.825."WE8ISO8859P15"

###############
To run use

Syntax: java -classpath <oracle-driver> -jar DBFingerPrint.jar <JDBC URL> <username> <password>
   <oracle-driver> The full path to the Oracle driver jar file - either classes12.zip or ojdbc14.jar will suffice
   <JDBC URL> db schema full JDBC URL.
   <username> db schema Username.
   <password> db schema Password.

dbfingerprint's People

Contributors

rchick avatar

Watchers

James Cloos 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.