dbTalk Databases Forums  

time based import

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss time based import in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
tag
 
Posts: n/a

Default time based import - 10-27-2005 , 09:42 AM






Table A is created in an Oracle d-base randomly every day...sometimes 5 am
sometimes 11 am...very unpredictable. Every day when the query is run that
builds the table, it overwrites the previous day. Once I successfully import
the table I can fire my scripts. Right now I've been doing all this manually.

I know how to schedule a DTS, problem is as follows:
1) If the Oracle warehouse hasn't run the query, the info is from the day
before yesterday. I certainly don't want to load my SQL database w/
duplicate info.
2) If the Oracle load is in the process of creating my new table and the
DTS runs, it will create a blank table. Problem with that is that that the
conditions on scheduling scripts won't recognize the blank table as a
"failure" and will proceed w/ running the scripts.

How can I successfully import the table from Oracle into SQL and run my
scripts after validating that yesterday's data exists and stops if it
doesn't? I'm open to any other ideas...

Thanks so much for offering any suggestions!!!
tag

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: time based import - 10-29-2005 , 05:15 AM






Hello tag,

The easiest way for you to do this is have the oracle process drop a flag
for you when it is finished. Perhaps it will write a file for you and you
watch for the file.

Allan

Quote:
Table A is created in an Oracle d-base randomly every day...sometimes
5 am sometimes 11 am...very unpredictable. Every day when the query
is run that builds the table, it overwrites the previous day. Once I
successfully import the table I can fire my scripts. Right now I've
been doing all this manually.

I know how to schedule a DTS, problem is as follows:
1) If the Oracle warehouse hasn't run the query, the info is from the
day
before yesterday. I certainly don't want to load my SQL database w/
duplicate info.
2) If the Oracle load is in the process of creating my new table and
the
DTS runs, it will create a blank table. Problem with that is that
that the
conditions on scheduling scripts won't recognize the blank table as a
"failure" and will proceed w/ running the scripts.
How can I successfully import the table from Oracle into SQL and run
my scripts after validating that yesterday's data exists and stops if
it doesn't? I'm open to any other ideas...

Thanks so much for offering any suggestions!!!
tag



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.