Problem in accessing Data from Oracle

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
kondeti
Premium Member
Premium Member
Posts: 67
Joined: Sat Mar 04, 2006 11:38 am

Problem in accessing Data from Oracle

Post by kondeti »

Hi

I need to pull the data from source oracle system. i.e., for yesterday data. For this I am putting condition in where cluase as sysdate-1. But i got access for this source system from night 11:00 P.M to Early Morning 4:00 A.M. in this case 2 different dates are involving. I want to pull before 12'O colock data. how it is possible. any body can help me.

Thanks&Regards
kondeti.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Get the system date (SYSDATE) while you start the batch, and subtract with 1 day and pass it as an parameter to the job which runs for the various period. So that it wont varies for the whole flow.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Post Reply