Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQLJ problem

Status
Not open for further replies.

Jeff6776

Programmer
Nov 6, 2000
5
US
Using Oracle 8.1.5 and Sqlj

I have a class with a member variable declared as such.
private ExecutionContext context = new ExecutionContext();

Here is my code to set the rollback segment
try{
#sql [context] {
set transaction use rollback segment R01
};
}
catch(java.sql.SQLException ex){...}
 

After a huge delete using sqlj and the same Execution Context

try{
#sql [context] {
// delete 185,000 records
};
}
catch(java.sql.SQLException ex){...}


I get this as my error.
java.sql.SQLException: ORA-01562: failed to extend rollback segment number 5
ORA-01650: unable to extend rollback segment R04 by 64 in tablespace RBS



My question is, does anyone know why I'm still using R04 after I've set the rollback segment to R01?

 
It's just a guess, but maybe your transaction has ended before you get to code that generates the Ora-01562. For example a commit should terminate the transaction and release the rollback segment.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top