Git Product home page Git Product logo

ixfcvt's Introduction

ixfcvt

A tool for converting an IBM PC/IXF format file to SQL statements

Currently supports the following DB2 data types:
  • CHAR
  • VARCHAR
  • SMALLINT
  • INTEGER
  • BIGINT
  • DECIMAL
  • REAL
  • DOUBLE
  • DATE
  • TIME
  • TIMESTAMP
Building:
on Linux:   cd src && make
on AIX:     cd src && make -f Makefile.AIX
Usage:
ixfcvt [-c CFILE] [-t TNAME] [-e] [-o OFILE] [-s SIZE] [IXFFILE]
Argument:
<IXFFILE>   input IXF format file, the data source
Options:
-c CFILE    output CREATE TABLE statement to <CFILE> if specified
-e          escape backslash(\\), or use it as literal by default
-h          display this help and exit
-o OFILE    output data of <IXFFILE> as INSERT statements to <OFILE>
            If not specified, write to the standard output
            <IXFFILE>, <OFILE> and <CFILE> must differ from each other
-s SIZE     issue a COMMIT every <SIZE> rows (default 1000)
            If <SIZE> is 0, no COMMIT statement will be issued
-t TNAME    use <TNAME> as the table name when output
            If not specified, use data name of <IXFFILE>
-v          show version: "ixfcvt V0.80 by Guo, Xingchun"
Examples:
./ixfcvt -c create_table.sql -t tableA -e -o insert_data.sql -s 2000 source.ixf
./ixfcvt -c create_table.sql -o insert_data.sql source.ixf
./ixfcvt -t tableB -o insert_data.sql source.ixf
./ixfcvt -o insert_data.sql source.ixf

To insert data generated by ixfcvt to Oralce, set nls date/time format parameters first.
e.g.  ALTER SESSION SET nls_timestamp_format = 'YYYY-MM-DD-HH24.MI.SS.FF6';
References:
License:

Licensed under the Apache License, Version 2.0.

ixfcvt's People

Contributors

gxc 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.