If seg file having 10 records
ex:eid
1
2
"
"
10
if oracle database having 100 records
ex:eid
1
2
"
"
100
how to delete matched records permenently from oracle
database using datastage ?

Answer Posted / shilpasagarg

1)The approach is to load the seq file data into one
temporary table say EMP_TEMP. (SEQ -> ODBC Stage (Oracle
(EMP_TEMP table)
EMP_TEMP contains
eid
1
2
"
"
10

2)Then take the ODBC Stage to connect to Oracle DB (EMP
table).
EMP table contains
eid
1
2
"
"
100

Here use the below query to delete the matched EID's
permanantly from oracle DB

DELETE EMP
FROM EMP
INNER JOIN EMP_TEMP
ON EMP.EID=EMP_TEMP.EID



Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to abort the job its matain duplicates?

2099


Describe stream connector?

829


Differentiate between Join, Merge and Lookup stage?

643


Explain connectivity between datastage with datasources?

593


How one source columns or rows to be loaded in to two different tables?

654






What is the difference between orabulk and bcp stages?

569


What are iconv and oconv?

771


Define meta stage?

778


What is the difference between passive stage and active stage?

820


What is the difference between datastage and datastage tx?

590


Which warehouse using in your datawarehouse

1680


Name the different sorting methods in datastage.

608


What are the types of jobs we have in datastage?

663


How to create a file using vi editor? 2)how to delete a file in vi editor? 3)How to connect the server datastage to unix? what r the command lines we r using? 4)30 jobs r runnig in unix i want to find out my job. how to do this? give me command?

2052


What steps should be taken to improve Datastage jobs?

635