Rollback the data if the datastage job get aborted
Moderators: chulett, rschirm, roy
Rollback the data if the datastage job get aborted
Hi,
I have designed a DS job where i will be inserting /updating data into 6 different tables. Since being a webservice i have to develop the service as one single job.
The problem i am having is if the job gets aborted ....few of the initial tables are being inserted with some data...instead since the job got aborted we have to rollback the transaction.
Appreciate your advices....
I have designed a DS job where i will be inserting /updating data into 6 different tables. Since being a webservice i have to develop the service as one single job.
The problem i am having is if the job gets aborted ....few of the initial tables are being inserted with some data...instead since the job got aborted we have to rollback the transaction.
Appreciate your advices....
-
- Premium Member
- Posts: 425
- Joined: Sat Nov 19, 2005 9:26 am
- Location: New York City
- Contact:
Problem is it's deployed as a service, which usually means "always on" and so never commits until you shut it down or commits every X records regardless of what's going on. That's why we went with Server jobs and a single ODBC stage since it supports multiple links and doesn't care if all columns are bound into the SQL and thus allows links that just say "commit" or "rollback". You then trigger whichever is appropriate for each "unit of work" you need to either make stick or go away.
And before I take any credit for that approach, it came from Ernie. Down from the mountain on stone tablets.![Wink :wink:](./images/smilies/icon_wink.gif)
And before I take any credit for that approach, it came from Ernie. Down from the mountain on stone tablets.
![Wink :wink:](./images/smilies/icon_wink.gif)
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
So how come you posted in the Server Edition forum?pandujoy wrote:we have to use only parallel jobs....
Moderator: please move to Enterprise Edition forum
Resist stupid requirements!
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
This is one of those things that EE historically cannot do without a custom Operator. The new "DTS" helps, but there are still scenarios, such as non-Oracle and DB2 sites that need explicit Rollback and Commit functionality. If you need this, use a Server Job with ODBC and a single Transformer if you can.
Ernie
Ernie
Ernie Ostic
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
Chulett....in the server job ODBC stage we have
Read Uncommitted
Read committed
repeatable read
serializable
versioning
auto commit
if i am not if i specify "0" for read commit the rollback feature should work but being multiple stages used ...how can i solve my prob. even it is a server or parallel...i did investigate about DTS stage but i think 8.0.1 doesnt have DTS stage features....i have seen it in 8.1 version but not in 8.0.1
Read Uncommitted
Read committed
repeatable read
serializable
versioning
auto commit
if i am not if i specify "0" for read commit the rollback feature should work but being multiple stages used ...how can i solve my prob. even it is a server or parallel...i did investigate about DTS stage but i think 8.0.1 doesnt have DTS stage features....i have seen it in 8.1 version but not in 8.0.1
If this job was running as a normal job and not a service and you had lots of rows then to commit these all at once means the database has to store them in the rollback segment. The rollback segment is limited in size. The DBA would need to increase this size to handle the way you are running this job.
All these things need to work together. The ETL and the database have to work together. So how you commit your records impacts the DBA.
All these things need to work together. The ETL and the database have to work together. So how you commit your records impacts the DBA.
Mamu Kim