分类: Oracle
2006-09-01 00:13:35
SQL> create tablespace aqua2 datafile '/home/oracle/oradata/orcl/aqua02.dbf' 2 size 200m autoextend on next 50m; create tablespace aqua2 datafile '/home/oracle/oradata/orcl/aqua02.dbf' * ERROR at line 1: ORA-00604: error occurred at recursive SQL level 1 ORA-00376: file 2 cannot be read at this time ORA-01110: data file 2: '/home/oracle/oradata/orcl/undotbs01.dbf' |
QL> select segment_name,file_id,status from dba_rollback_segs 2 ; SEGMENT_NAME FILE_ID STATUS ------------------------------ ---------- ---------------- SYSTEM 1 ONLINE _SYSSMU1$ 2 OFFLINE _SYSSMU2$ 2 OFFLINE _SYSSMU3$ 2 OFFLINE _SYSSMU4$ 2 OFFLINE _SYSSMU5$ 2 OFFLINE _SYSSMU6$ 2 OFFLINE _SYSSMU7$ 2 OFFLINE _SYSSMU8$ 2 OFFLINE _SYSSMU9$ 2 OFFLINE _SYSSMU10$ 2 OFFLINE 11 rows selected. |
SQL> alter system set undo_management ="manual" scope=spfile; System altered. |
SQL> create pfile='/home/oracle/initorcl.ora' from spfile; File created. SQL> ! vi initorcl.ora SQL> shutdown immediate ORA-01109: database not open Database dismounted. ORACLE instance shut down. SQL> startup pfile='/home/oracle/initorcl.ora'; ORACLE instance started. Total System Global Area 147920392 bytes Fixed Size 452104 bytes Variable Size 121634816 bytes Database Buffers 25165824 bytes Redo Buffers 667648 bytes Database mounted. Database opened. SQL> drop tablespace undotbs1 2 ; Tablespace dropped. SQL> create undo tablespace undotbs2 2 datafile '/home/oracle/oradata/orcl/undotbs02.dbf' size 100m autoextend on next 10m; Tablespace created. |
SQL> shutdown immediate Database closed. Database dismounted. ORACLE instance shut down. SQL> startup nomount ORACLE instance started. Total System Global Area 147920392 bytes Fixed Size 452104 bytes Variable Size 121634816 bytes Database Buffers 25165824 bytes Redo Buffers 667648 bytes SQL> show parameter undo NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ undo_management string MANUAL undo_retention integer 10800 undo_suppress_errors boolean FALSE undo_tablespace string UNDOTBS1 SQL> alter system set undomanagement="auto" scope=spfile; alter system set undomanagement="auto" scope=spfile * ERROR at line 1: ORA-02065: illegal option for ALTER SYSTEM SQL> c/undo/undo_/ 1* alter system set undo_management="auto" scope=spfile SQL> / System altered. SQL> alter system set undo_tablespace="UNDOTBS2" scope=spfile; System altered. SQL> shutdown immediate ORA-01507: database not mounted ORACLE instance shut down. SQL> startup ORACLE instance started. Total System Global Area 147920392 bytes Fixed Size 452104 bytes Variable Size 121634816 bytes Database Buffers 25165824 bytes Redo Buffers 667648 bytes Database mounted. Database opened. SQL> SELECT SEGMENT_NAME,tablespace_name,status FROM DBA_ROLLBACK_SEGS; SEGMENT_NAME TABLESPACE_NAME STATUS ------------------------------ ------------------------------ ---------------- SYSTEM SYSTEM ONLINE _SYSSMU1$ UNDOTBS2 ONLINE _SYSSMU2$ UNDOTBS2 ONLINE _SYSSMU3$ UNDOTBS2 ONLINE _SYSSMU4$ UNDOTBS2 ONLINE _SYSSMU5$ UNDOTBS2 ONLINE _SYSSMU6$ UNDOTBS2 ONLINE _SYSSMU7$ UNDOTBS2 ONLINE _SYSSMU8$ UNDOTBS2 ONLINE _SYSSMU9$ UNDOTBS2 ONLINE _SYSSMU10$ UNDOTBS2 ONLINE 11 rows selected. |
SQL> create tablespace aqua2 datafile '/home/oracle/oradata/orcl/aqua02.dbf' 2 size 200m autoextend on next 50m; Tablespace created. |