oracle 11G undo表空间错误
1.打开数据库时提示undo表空间不存在 SQL> alter database open; 解决方法: [oracle@oracle ~]$ sqlplus / as sysdba SQL> select name from v$datafile; 思路:根据启动oracle的错误可以看出,错误信息的undo表空间的名字与数据库里面的名字不一至,此时要在init.orcl.ora文件中修改undo_tablespace的值,用pfile文件启动数据库. [oracle@oracle ~]$ cd $ORACLE_HOME/dbs [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> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |