Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: DBMS_TRANSACTION.USE_ROLLBACK_SEGMENT question
mail_for_deja_at_yahoo.com (Anonymous) wrote in message news:<8ee5d7c9.0111062339.6485c45_at_posting.google.com>...
> Hi all,
>
> I am using DBMS_TRANSACTION.USE_ROLLBACK_SEGMENT to assign a
> particular rollback segment for a transaction. However, I found that
> even I specify a non-exist rollback segment to this function, there is
> no error message return. How can I check whether the rollback segment
> passed to this function is a valid rollback segment?
>
> Thanks,
> David
David, how are you calling this Oracle provided package procedure? What version of Oracle are you running against?
Observe (version 8.1.7.2):
UT1> @test1 UT1> set echo on UT1> set serveroutput on UT1> declare 2 v_rc number := 0 ;
PL/SQL procedure successfully completed.
UT1> rollback;
Rollback complete.
UT1> @test1 UT1> set echo on UT1> set serveroutput on UT1> declare 2 v_rc number := 0 ;
ORA-01534: rollback segment 'ROLL51' doesn't exist ORA-06512: at "SYS.DBMS_TRANSACTION", line 65 ORA-06512: at line 4
If would appear to me that Oracle does issue an error, which I could trap and use to make a decission from.