setting a specific rollback segment

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
ratikmishra1
Charter Member
Charter Member
Posts: 42
Joined: Wed Aug 18, 2004 2:49 pm

setting a specific rollback segment

Post by ratikmishra1 »

Is it possible to set a specifc rollback segment for a OCI stage?If not possible at the stage level, is there any other way to set the rollback segement for the Oracle transactions?

Thanks
Rati
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

You have before and after SQL statements at your disposal, stored procedure based loading, as well as user-defined SQL. Pick your preference.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Rollback segments are specified for Oracle db level and not transaction level. So you have to share with other SQL actions.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

No, you should be able to issue specific 'alter session' commands in the before-sql area to use specific rollback segments if that's really what you need to do.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Maybe you can look into the following command:

set transaction use rollback segment

but it has its contraints and limitations.
ratikmishra1
Charter Member
Charter Member
Posts: 42
Joined: Wed Aug 18, 2004 2:49 pm

Post by ratikmishra1 »

Sainath.Srinivasan wrote:Maybe you can look into the following command:

set transaction use rollback segment

but it has its contraints and limitations.
Thanks to all of you for your suggestions.

The before/sql soes not handle the pl/sql driectives. I've tried it before. It works only well for simple SQL statements like delete/insert/update. The last time I tried it could not handle parameters.

"set transaction use " is a pl/sql directive. I was wondering if there is any other way. Will appreciate your ideas.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That's why I suggested the "alter session set rollback segment" route. Should work fine in the before-sql area.
-craig

"You can never have too many knives" -- Logan Nine Fingers
jseclen
Participant
Posts: 133
Joined: Wed Mar 05, 2003 4:19 pm
Location: Lima - Peru. Sudamerica
Contact:

Post by jseclen »

Hi,

I use the next sentence in my job :

ALTER ROLLBACK SEGMENT RBS31 STORAGE ( OPTIMAL 4000M);
SET TRANSACTION USE ROLLBACK SEGMENT RBS31;

This will set in the tab SQL sub tab Before and work without problems.

Now, after the job you must to restore the old rollback settings.

I hope this help.
Saludos,

Miguel Seclén
Lima - Peru
ratikmishra1
Charter Member
Charter Member
Posts: 42
Joined: Wed Aug 18, 2004 2:49 pm

Post by ratikmishra1 »

jseclen wrote:Hi,

I use the next sentence in my job :

ALTER ROLLBACK SEGMENT RBS31 STORAGE ( OPTIMAL 4000M);
SET TRANSACTION USE ROLLBACK SEGMENT RBS31;

This will set in the tab SQL sub tab Before and work without problems.

Now, after the job you must to restore the old rollback settings.

I hope this help.
Looks like it is working. At least did not generate any error.
Thanks again to All of you.
Post Reply