Solved

Specific Rollback segment

Posted on 2004-08-04
4
388 Views
Last Modified: 2008-02-01
Hello experts, I want to make that one procedure use a  specific rollback segment.
I'm programming in Developer 2000 (Forms 6i)

How I can try it?
0
Comment
Question by:karencita78
4 Comments
 
LVL 7

Accepted Solution

by:
BobMc earned 25 total points
ID: 11721595
set transaction use rollback segment <segment name>;

This must be the first line in your transaction, and the specified rollback segment will be in use until you end the transaction.

I have to say, except for a very few situations (like using a very large rbs for a big update), I think you should be wary of using such a statement - Oracle is usually very good at allocating the best/least used  rollback segment.

Oracle 9 does away with it all together in favour of UNDO


HTH
Bob
0
 
LVL 8

Assisted Solution

by:sapnam
sapnam earned 25 total points
ID: 11726828
Bob is right about the command, but please note that you cannot give that command directly in Forms. You have to use the forms_ddl built in.  An example is given below :

DECLARE
  rbs_stmnt VARCHAR2(200);
BEGIN
  rbs_stmnt := 'set transaction use rollback segment rbs1';
  forms_ddl(rbs_stmnt);
end;

Please read the forms_ddl built in description given in forms help
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question