I am having a problem with enabling a primary key constraint on a large table:
Table has apprx 100 Million rows, the PK is disabled due to the fact that there are about 1 Million dupe rows. My problem is when I enable the PK using the EXECEPTIONS into EXCEPTIONS clause, the rollback rollback segment usage can not seem to be controlled. The routine will fail due to the usual snapshot to old.
My first statement in the SQL is SET TRANSACTION USE ROLLBACK SEGMENT RB_LARGE {RB_LARGE is 3GB in size). The internal exceptions handler seems to ignore the explict use of RB_LARGE and will use a random smaller RBS. Is there anything you can recommend, other than off-lining the small RBS's before running the SQL?
Any help is much appreciated!
Table has apprx 100 Million rows, the PK is disabled due to the fact that there are about 1 Million dupe rows. My problem is when I enable the PK using the EXECEPTIONS into EXCEPTIONS clause, the rollback rollback segment usage can not seem to be controlled. The routine will fail due to the usual snapshot to old.
My first statement in the SQL is SET TRANSACTION USE ROLLBACK SEGMENT RB_LARGE {RB_LARGE is 3GB in size). The internal exceptions handler seems to ignore the explict use of RB_LARGE and will use a random smaller RBS. Is there anything you can recommend, other than off-lining the small RBS's before running the SQL?
Any help is much appreciated!