Here, we will see how to poll new rows from Oracle database and then write them to a file.
Highlevel steps:
- Create a db table for polling
- Create a Db Trigger connection
- Creat an app driven orchestration integtation and configure db trigger
- Call a ftp connection adapter and write file
Steps in detail(With Screenshots):
Create a Database table and insert 2 rows.
Create Table EMPLOYEES_NEW
(
"ID" VARCHAR2(20 BYTE) ,
"NAME" VARCHAR2(200 BYTE),
"ISNEW" VARCHAR2(10 BYTE)
)
INSERT INTO EMPLOYEES_NEW(ID,NAME,ISNEW) VALUES(13,'Sanddy1','NEW')
INSERT INTO EMPLOYEES_NEW(ID,NAME,ISNEW) VALUES(14,'Dip1','NEW')
Create a database Trigger connection
Choose Oracle Database
Create an App driven orchestration.
Adding Db Trigger and configure
Logical Delete field: ISNEW
Read Value: PROCESSED(this value indicates the row has been processed)
Unread value: NEW( This value indicates the row to be processed)
Polling Frequency(Sec): 10(after which time of secconds, the rows wil be polled)
Select a Transfer mode as ASCII
Output directory, File Name and select Append to Existing file option.
No comments:
Post a Comment