Remove all records with duplicates in db2. (Not just the duplicate records)
Assuming your desired uniqueness constraint is (one,two), here is one way to do it:

DELETE FROM session.test WHERE (one, two) IN 
(
   SELECT one, two FROM session.test 
   GROUP BY one, two
   HAVING COUNT(*) &gt; 1
)