-
Notifications
You must be signed in to change notification settings - Fork 0
/
repository-seed-01.yml
53 lines (47 loc) · 1.55 KB
/
repository-seed-01.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# optional. If you have already defined connection. you can comment it.
connections:
- name: postgre_2
url: jdbc:postgresql://localhost/lauda
username: lauda
password: lauda
class_name: org.postgresql.Driver
- name: postgre_3
url: jdbc:postgresql://localhost/lauda
username: lauda
password: lauda
class_name: org.postgresql.Driver
- name: oracle_1
url: jdbc:oracle:thin:@localhost:1521:orcl
username: lauda
password: lauda
class_name: oracle.jdbc.driver.OracleDriver
- name: oracle_2
url: jdbc:oracle:thin:@localhost:1521:orcl
username: laudax
password: lauda
class_name: oracle.jdbc.driver.OracleDriver
# Required. You can skip optional fields. See [name=table_4] for only adding columns.
mappings:
- name: source_table_2
source_connection: oracle_1
target_connection: postgre_2
source_table: source_table_2
target_table: target_table_2
source_columns: [owner, table_name, pct_free, last_analyzed]
target_columns: [owner, table_name, pct_free, last_analyzed]
source_hint: /*+ parallel(16) */
target_hint: /*+ nologging */
filter: owner = 'SYS'
batch_size: 10
drop_create: false
- name: table_3
source_connection: oracle_1
target_connection: postgre_2
source_table: source_table_3
target_table: target_table_3
source_columns: [owner, table_name]
target_columns: [owner, table_name]
# this will add given columns only, mapping should exists already
- name: table_3
source_columns: [last_analyzed]
target_columns: [last_analyzed]