项目作者: myfreeer

项目描述 :
Export data from oracle database to plain sql script
高级语言: Java
项目地址: git://github.com/myfreeer/sql-extractor.git
创建时间: 2019-10-04T03:54:47Z
项目社区:https://github.com/myfreeer/sql-extractor

开源协议:MIT License

下载


sql-extractor

Export data from oracle database to plain sql script.

Note: this would not generate ddl.

Prerequisites

  • java 8+
  • maven 3+
  • network access to maven central or its mirror

Config

  1. spring:
  2. datasource:
  3. # jdbc connection url
  4. url: jdbc:oracle:thin:@127.0.0.1:1521:orcl
  5. # jdbc connection user name
  6. username: SCOTT
  7. # jdbc connection password
  8. password: 123456
  9. export:
  10. # Time zone for DateFormatter and TimestampFormatter
  11. # example: UTC, GMT+8
  12. time-zone: UTC
  13. # Locale for DateFormatter and TimestampFormatter
  14. # example: en-US, zh-CN
  15. locale: en-US
  16. # path to save sql script
  17. file-path: C:\export.sql
  18. # Export type
  19. # full: export all tables in current schema, excluding exclude-tables
  20. # table: export specified tables in tables, excluding exclude-tables
  21. # sql: export tables via custom sql select statement
  22. type: full
  23. # Tables to exclude, effective if type is table or full
  24. exclude-tables:
  25. - exclude_table_1
  26. # Tables to export, effective if type is table
  27. tables:
  28. - include_table_1
  29. # Sql select statements for exporting, effective if type is sql
  30. sql:
  31. table_name_1: select * from dual where rownum = 1