469,568 Members | 1,580 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,568 developers. It's quick & easy.

Turning off ROLLBACK segment in oracle and replace by UNDO

Hi,

My DBA wants to turn off the explicit rollback segments currently being used and replace them by UNDO segment. I have explicit mention of these rollback segments in my C++ and Pro*C codes. What changes am I supposed to make in order to implement the UNDO segements. Do I need to remove the function or only commenting the rollback segment reference line will suffice. Please see the sample code below:

void DeleteDBI::SetTransaction()
{
struct sqlca sqlca;

EXEC SQL BEGIN DECLARE SECTION;
// Thread context:
sql_context ctx = dbConnection->GetContext();

EXEC SQL END DECLARE SECTION;

EXEC SQL CONTEXT USE :ctx;

EXEC SQL SET TRANSACTION USE ROLLBACK SEGMENT RBS_LARGE_02;

EXEC SQL WHENEVER SQLERROR DO SqlError(sqlca, "DeleteDBI::SetTransaction");
}
Apr 15 '07 #1
0 1107

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by tkestell | last post: by
2 posts views Thread by Alice | last post: by
2 posts views Thread by Alice | last post: by
reply views Thread by fareeda | last post: by
1 post views Thread by Susan Lam | last post: by
1 post views Thread by julietmachiwa | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.