刪除undotbs後,數據庫無法啓動

刪除undotbs後,數據庫無法啓動

SQL> shutdown abort;

ORACLE instance shut down.

 

 

 

SQL> startup mount

ORACLE instance started.

 

Total System Global Area 3340451840 bytes

Fixed Size 2232960 bytes

Variable Size 2432699776 bytes

Database Buffers 889192448 bytes

Redo Buffers 16326656 bytes

Database mounted.

 

 

SQL> alter database datafile '/u01/oracle/oradata/yoon/undotbs_01.dbf' offline drop;

 

Database altered.

 

 

SQL> alter database open;

 

Database altered.

 

 

 

SQL> create undo tablespace undotbs1 datafile '/u01/oracle/oradata/yoon/undotbs01.dbf' size 1g;

 

Tablespace created.

 

 

 

SQL> alter system set undo_tablespace='undotbs1' scope=spfile;

 

System altered.

 

 

SQL> drop tablespace undotbs01 including contents and datafiles;

 

Tablespace dropped.

 

 

 

SQL> shutdown immediate

Database closed.

Database dismounted.

ORACLE instance shut down.

 

 

 

SQL> create pfile from spfile;

 

File created.

 

 

 

SQL> startup

ORACLE instance started.

 

Total System Global Area 3340451840 bytes

Fixed Size 2232960 bytes

Variable Size 2432699776 bytes

Database Buffers 889192448 bytes

Redo Buffers 16326656 bytes

Database mounted.

Database opened.

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章