删除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.

猜你喜欢

转载自blog.csdn.net/suwing6406029/article/details/88750483