Sei sulla pagina 1di 2

THE GAME OF SETTING UNDO_MANAGEMENT=AUTO or MANUAL If it is AUTO.. then the instance is started in System Managed Undo (SMU) mode.

In SMU mode, undo space is allocated externally as undo tablespaces. Otherwise, it is started in Rollback Undo (RBU) mode. In RBU mode, undo space is allocated externally as rollback segments. So.. try the following: UNDO_MANAGEMENT=MANUAL SQL> delete from sales; // In the SH schema... delete from sales * ERROR at line 1: ORA-01552: cannot use system rollback segment for non-system tablespace 'EXAMPLE' SQL> show parameter undo_management NAME TYPE VALUE ------------------------------------ ----------- -----------------------------undo_management string MANUAL Now... you need to create rollback segment... So.. SQL> create rollback segment rollmak tablespace example; create rollback segment rollmak tablespace example * ERROR at line 1: ORA-30574: Cannot create rollback segment in tablespace with AUTO segment space management So.. we try creating another tablespace with manual segment space management... SQL> 2 3 4 create tablespace mayanks datafile '/u01/app/oracle/oradata/mak/mayanks.dbf' size 100m segment space management manual;

Tablespace created. And then create rollback segment in this manual segment space management tablesp ace... SQL> create rollback segment rollmak tablespace mayanks; create rollback segment rollmak tablespace mayanks * ERROR at line 1: ORA-01552: cannot use system rollback segment for non-system tablespace 'MAYANKS' SQL> create rollback segment rollmak; ablespace SQL> delete from sales; //By default it would take up SYSTEM t

delete from sales * ERROR at line 1: ORA-01552: cannot use system rollback segment for non-system tablespace 'EXAMPLE' Because you have to alter the parameter rollback_segments... SQL> alter system set rollback_segments=rollmak scope=spfile; SQL> startup force SQL> show parameter rollback_segments NAME TYPE VALUE ------------------------ ------------ ----------- ----------------------------rollback_segments string ROLLMAK SQL> delete from sales; 918843 rows deleted. SQL> rollback; Rollback complete.