CREATE [PUBLIC] ROLLBACK SEGMENT rollback_segment [TABLESPACE tablespace]
[STORAGE ([INITIAL integer[K|M]] [NEXT integer[K|M]] [MINEXTENTS integer]
[MAXEXTENTS {integer|UNLIMITED}] [OPTIMAL {integer[K|M]|NULL}])]Creating Rollback Segments
Restrictions
• A rollback segment can be specified as either PUBLIC or PRIVATE (the default)
at the time of creation and cannot be changed.
• For a rollback segment, MINEXENTS must be at least two.
• PCTINCREASE cannot be specified for a rollback segment and is always set to 0.
• OPTIMAL, if specified, must be at least equal to the initial size of the rollback
segment, which is the space used by the number of extents defined by
MINEXTENTS.
Guidelines
• Always use INITIAL = NEXT for rollback segments to ensure that all extents are
of the same size.
• Set the OPTIMAL value to minimize the allocation and deallocation of rollback
segment extents.
• Avoid setting MAXEXTENTS to UNLIMITED. This could cause unnecessary
extension of a rollback segment and possibly of data files due to a program error.
• Always place rollback segments in a separate, exclusive tablespace to minimize
contention and fragmentation.可以在init文件里面建
还可以在数据库启动后使用sqlplus建或者用图形界面建

解决方案 »

  1.   

    建的时候,报错。大概是auto模式下,不能建立rollback segment,怎么办?
      

  2.   

    1.首先建好表空间,如testdb;
    2.create public rollback segment testrb tablespace testdb storage (initial 1024k next 1024k minextents 8 maxextents 121);
    3.alter rollback segment testrb online;
      

  3.   

    创建的时候会报错
    SQL> create public rollback segment R01 tablespace RBS storage (initial 1024k next 1024k minextents 
    8 maxextents 121);
    create public rollback segment R01 tablespace RBS storage (initial 1024k next 1024k minextents 8 max
    *
    ERROR 位于第1行:
    ORA-30019: Illegal rollback Segment operation in Automatic Undo mode
      

  4.   

    大家有点不太清楚吧!?从oracle9i以后,回滚段都是oracle自动管理的,这是一种新技术。我们不能改变它,如果不是要非常规的用法的话,最好不要改变它!
      

  5.   

    Cause: This operation only allowed in Manual Undo mode. 
     Action: restart instance in Manual Undo_Management mode and retry   operation.