To do this I need to to do the following:
* Create an entry in a a batch register table on an oracle database - I have written the following sql to do this:
Code: Select all
INSERT INTO MIGRATIONBATCH
(MIGRATIONBATCHID, BATCHCREATEDATE)
VALUES
(batch_seq.nextval, sysdate);
select file_seq.currval as NewBatchID from dual;Code: Select all
INSERT INTO INPUTFILE
(INPUTFILEID, MIGRATIONBATCHID, FILENAME, STATUS)
VALUES
(file_seq.nextval, [NewBatchID from previous step], [FileName], 'Awaiting Validation');
[b]*[/b] A Px process is then to be run that will retrieve entries for a specified file name that are in "Awaiting Validation" status and perform data validation actions and if successful set file to "Valid"
I have been working with the ODBC connector to test some of these concepts. I can retrieve data from an oracle with a standard select but sql code like the listings above i get execute failed errors without any additional info to follow up on.
How do I go about tackling this kind of process in datastage?