Loading Flat File to Table in ODI 11g
Step1: Creating Flat File
- Navigate to folder C:\OBIEE_HOME\Oracle_ODI1\oracledi\RRITEC
- Create a text file as shown → name it as emp → save → close
Step 2: Creating File data server and physical schema
- Open ODI 11g Studio
- Go to topology tab
- Right click on file technology
- Click on new data server → provide below information
- Click on JDBC → provide below information
- Click on save
- Right Click on RRITEC_FLATFILES data server → click on new physical schema → provide as shown
- Click on save → click on ok
Step 3: Creating Logical schema and mapping to context
- Expand logical architecture → right click on file technology → click on new logical schema → give name and map to context → save
Step 4: Creating Model
- Goto designer navigator → under the models section → right click on RRITEC model Folder → Click on new Model → Provide as shown
- save → Close
- Right clcik on above model → clik on new data store → in definition tab
- Click on files tab
- Click on columns tab
- save → close
- Connect to your target schema( ex : B10711GTDBU)
- Execute below script
- Reverse engineer this into target model
Step 6: Creating interface
- Expand projects → expand RRITEC folder → Right click on interface → new interface
- name it as m_flatfile_to_table
- Click on mapping tab
- Drag and drop source and target
- Make sure automatic source to mapping created and select the workspace as staging area
- Select flow tab → select source → select LKM as LKM FILE TO SQL
- Select target → select IKM as IKM SQL CONTROL APPEND
- select the option FLOW_CONTROL = FALSE
- save → run
- Observe output
Step 6: Add filter to above interface
- Duplicate above interface and rename as m_flatfile_to_table_filter
- click on mapping tab → from source drag and drop Deptno column in to empty work area
- select the filter object → provide below condition
- Click on flow tab
- select target → select truncate option as true
- save → run → observe output
No comments:
Post a Comment