From ODI 12c onwards we can load multiple tables with single mapping. In that case we need to make sure that which table need to be load first and next. For that we need to specify order.
- Open Mapping
- Go to Property Inspector as mentioned below:
From ODI 12c onwards we can load multiple tables with single mapping. In that case we need to make sure that which table need to be load first and next. For that we need to specify order.
In ODI, we have option of specify join order.
Scripts |
Source: [ { "id":
"0001", "type":
"donut", "name":
"Cake", "ppu":
0.55, "batters": { "batter": [ {
"id": "1001", "type": "Regular" }, {
"id": "1002", "type": "Chocolate" }, {
"id": "1003", "type": "Blueberry" }, {
"id": "1004", "type": "Devil's Food"
} ] }, "topping": [ {
"id": "5001", "type": "None" }, {
"id": "5002", "type": "Glazed" }, {
"id": "5005", "type": "Sugar" }, {
"id": "5007", "type": "Powdered
Sugar" }, {
"id": "5006", "type": "Chocolate with
Sprinkles" }, {
"id": "5003", "type": "Chocolate" }, {
"id": "5004", "type": "Maple" } ] }, { "id":
"0002", "type":
"donut", "name":
"Raised", "ppu":
0.55, "batters": { "batter": [ {
"id": "1001", "type": "Regular" } ] }, "topping": [ {
"id": "5001", "type": "None" }, {
"id": "5002", "type": "Glazed" }, {
"id": "5005", "type": "Sugar" }, {
"id": "5003", "type": "Chocolate" }, {
"id": "5004", "type": "Maple" } ] }, { "id":
"0003", "type":
"donut", "name":
"Old Fashioned", "ppu":
0.55, "batters": { "batter": [ {
"id": "1001", "type": "Regular" }, {
"id": "1002", "type": "Chocolate" } ] }, "topping": [ {
"id": "5001", "type": "None" }, {
"id": "5002", "type": "Glazed" }, {
"id": "5003", "type": "Chocolate" }, {
"id": "5004", "type": "Maple" } ] } ] |
Target DDL: CREATE TABLE "DEMO"."JSON_TABLE" ( "FILE_NAME" VARCHAR2(255 BYTE), "LOAD_DATE"
VARCHAR2(255 BYTE), "ID"
NUMBER(10,0), "NAME"
VARCHAR2(255 BYTE), "PPU"
NUMBER(10,2), "TYPE"
VARCHAR2(255 BYTE), "SEQ_NUM"
NUMBER(10,0), "BATTER_ID"
NUMBER(10,0), "BATTER_TYPE"
VARCHAR2(255 BYTE), "TOPPING_ID"
NUMBER(10,0), "SEQ_TOPPING"
NUMBER(10,0), "TOPPING_TYPE"
VARCHAR2(255 BYTE) ) |