oracle 11G undo表空间错误

1.打开数据库提示undo表空间不存在@H_404_2@

sql> alter database open;
alter database open
*
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced
ORA-30012: undo tablespace 'UNDOTBS01' does not exist or of wrong type@H_404_2@
Process ID: 3236
Session ID: 1 Serial number: 5
@H_404_2@


解决方法:@H_404_2@

[oracle@oracle ~]$ sqlplus / as sysdba
sql*Plus: Release 11.2.0.1.0 Production on Wed Aug 24 10:22:24 2016
Copyright (c) 1982,2009,Oracle. All rights reserved.
Connected to an idle instance.
sql> startup mount
ORACLE instance started.

Total System Global Area 776646656 bytes
Fixed Size 2217384 bytes
Variable Size 557845080 bytes
Database Buffers 213909504 bytes
Redo Buffers 2674688 bytes
Database mounted.
@H_404_2@

sql> select name from v$datafile;

NAME
--------------------------------------------------------------------------------
/home/oracle/app/oradata/orcl/system01.dbf
/home/oracle/app/oradata/orcl/sysaux01.dbf
/home/oracle/app/oradata/orcl/undotbs01.dbf --undo表空间的数据文件
/home/oracle/app/oradata/orcl/users01.dbf
/home/oracle/app/oradata/orcl/tong.dbf

sql> show parameter undo
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
undo_management string AUTO
undo_retention integer 900
undo_tablespace string UNDOTBS1 --undo表空间的名字
sql> select name from v$tablespace;

NAME
------------------------------
SYSTEM
SYSAUX
UNDOTBS1 --undo表空间的名字
USERS
TEMP
TONG1
6 rows selected.
sql>@H_404_2@


思路:根据启动oracle的错误可以看出,错误信息的undo表空间的名字与数据库里面的名字不一至,此时要在init.orcl.ora文件修改undo_tablespace的值,用pfile文件启动数据库.@H_404_2@


[oracle@oracle ~]$ cd $ORACLE_HOME/dbs
[oracle@oracle dbs]$ vim initorcl.ora
*.undo_tablespace='UNDOTBS1' --修改这行的值@H_404_2@

[oracle@oracle ~]$ sqlplus / as sysdbasql*Plus: Release 11.2.0.1.0 Production on Wed Aug 24 10:26:06 2016Copyright (c) 1982,Oracle. All rights reserved.Connected to an idle instance.sql> startup mount pfile='/home/oracle/app/product/11.2.0/dbhome_1/dbs/initorcl.ora'ORACLE instance started.Total System Global Area 776646656 bytesFixed Size 2217384 bytesVariable Size 557845080 bytesDatabase Buffers 213909504 bytesRedo Buffers 2674688 bytesDatabase mounted.sql> alter database open;Database altered.sql> create spfile='/home/oracle/app/product/11.2.0/dbhome_1/dbs/spfileorcl.ora' from pfile;File created. --pfile文件创建spfile文件sql> shutdown immediate --重启数据库Database closed.Database dismounted.ORACLE instance shut down.sql> startupORACLE instance started.Total System Global Area 776646656 bytesFixed Size 2217384 bytesVariable Size 557845080 bytesDatabase Buffers 213909504 bytesRedo Buffers 2674688 bytesDatabase mounted.Database opened.sql> @H_404_2@

相关文章

数据库版本:11.2.0.4 RAC(1)问题现象从EM里面可以看到,在23号早上8:45~8:55时,数据库等待会话暴增...
(一)问题背景最近在对一个大约200万行数据的表查看执行计划时,发现存在异常,理论上应该返回100多万...
(一)删除备份--DELETE命令用于删除RMAN备份记录及相应的物理文件。当使用RMAN执行备份操作时,会在RM...
(1)DRA介绍 数据恢复顾问(Data Recovery Advise)是一个诊断和修复数据库的工具,DRA能够修复数据文...
RMAN(Recovery Manager)是Oracle恢复管理器的简称,是集数据库备份(backup)、修复(restore)和恢复...
(1)备份对象 可以使用RMAN进行的备份对象如下: --整个数据库:备份所有的数据文件和控制文件; --数...