deal ORA-30012: undo tablespace 'UNDO_2' does not exist or of wrong type

本文解决了一个在Oracle RAC环境中遇到的问题:ORA-30012错误,提示undotablespace不存在或类型错误。通过删除错误的undotablespace并创建新的,同时修改spfile中的undo_tablespace参数,最终成功启动了实例。

ORA-30012: undo tablespace 'UNDO_2' does not exist or of wrong type

I have 3 node RAC system. I am trying to convert from single to the RAC system. I have created undo tablespace for instance 2 & 3. I am having thrown the below error messages.


SQL> startup
ORACLE instance started.

Total System Global Area 1219334144 bytes
Fixed Size 2227824 bytes
Variable Size 620757392 bytes
Database Buffers 587202560 bytes
Redo Buffers 9146368 bytes
Database mounted.
ORA-01092: ORACLE instance terminated. Disconnection forced
ORA-30012: undo tablespace 'UNDO_2' does not exist or of wrong type
Process ID: 6920
Session ID: 67 Serial number: 5

Note: you might the get this error message when you have specified the wrong undo tablespace for the particular instance in the rac environment or single instance environment. In that case, you have to create a pfile and you have modify the undo_tablespace value.


I have login to the Instance-1 and try to drop the undo tablespace which has been created for instance-2 & instance-3

SQL> drop tablespace UNDO_2 including contents and datafiles;

Tablespace dropped.

SQL> drop tablespace UNDO_3 including contents and datafiles;

Tablespace dropped.

Then I have used the CREATE UNDO TABLESPACE option to create the tablespace for Instance – 2 & 3.


An undo tablespace is a type of permanent tablespace used by Oracle Database to manage undo data if you are running your database in automatic undo management mode. Oracle strongly recommends that you use automatic undo management mode rather than using rollback segments for undo.

SQL> create undo tablespace UNDO_2 datafile '+BHU_A_DATA1' size 4096M reuse;

Tablespace created.

SQL> create undo tablespace UNDO_3 datafile '+BHU_A_DATA1' size 4096M reuse;

Tablespace created.

I have modified the undo tablespace for the Instance 2 & 3 in the spfile

SQL> alter system set undo_tablespace='UNDO_2' scope=spfile sid='BHU_2';

System altered.

SQL> alter system set undo_tablespace='UNDO_3' scope=spfile sid='BHU_3';

System altered.

After the modification, I am trying to open the instance-2 & 3. it opens with out any issues.


SQL> startup
ORACLE instance started.

Total System Global Area 1219334144 bytes
Fixed Size 2227824 bytes
Variable Size 620757392 bytes
Database Buffers 587202560 bytes
Redo Buffers 9146368 bytes
Database mounted.
Database opened.
SQL>

SQL> show parameter undo

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
_in_memory_undo boolean FALSE
undo_management string AUTO
undo_retention integer 900
undo_tablespace string UNDO_2
SQL>

I hope this resolve your issue and happy learning

转载于:https://www.cnblogs.com/ericli/articles/4248444.html

Enter user-name: system Enter password: Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options DROP USER PLMEE CASCADE * ERROR at line 1: ORA-01918: user 'PLMEE' does not exist DROP TABLESPACE PLMEE_DATA INCLUDING CONTENTS AND DATAFILES CASCADE CONSTRAINTS * ERROR at line 1: ORA-00959: tablespace 'PLMEE_DATA' does not exist DROP TABLESPACE PLMEE_TEMP INCLUDING CONTENTS AND DATAFILES CASCADE CONSTRAINTS * ERROR at line 1: ORA-00959: tablespace 'PLMEE_TEMP' does not exist CREATE TABLESPACE PLMEE_DATA DATAFILE 'D:\Oracle\oradata\PLM_DATA' SIZE 100M AUTOEXTEND ON NEXT 10M * ERROR at line 1: ORA-01119: error in creating database file 'D:\Oracle\oradata\PLM_DATA' ORA-27038: created file already exists OSD-04010: <create> option specified, file already exists CREATE TEMPORARY TABLESPACE PLMEE_TEMP TEMPFILE 'D:\Oracle\oradata\PLM_TEMP' SIZE 100M AUTOEXTEND ON NEXT 10M * ERROR at line 1: ORA-01119: error in creating database file 'D:\Oracle\oradata\PLM_TEMP' ORA-27038: created file already exists OSD-04010: <create> option specified, file already exists ALTER TABLESPACE PLMEE_DATA ADD DATAFILE 'E:\app\dba\oradata\PLMEE01_data' SIZE 100M AUTOEXTEND ON NEXT 10M * ERROR at line 1: ORA-00959: tablespace 'PLMEE_DATA' does not exist ALTER TABLESPACE PLMEE_DATA ADD DATAFILE 'E:\app\dba\oradata\PLMEE02_data' SIZE 100M AUTOEXTEND ON NEXT 10M * ERROR at line 1: ORA-00959: tablespace 'PLMEE_DATA' does not exist ALTER TABLESPACE PLMEE_DATA ADD DATAFILE 'E:\app\dba\oradata\PLMEE03_data' SIZE 100M AUTOEXTEND ON NEXT 10M * ERROR at line 1: ORA-00959: tablespace 'PLMEE_DATA' does not exist ALTER TABLESPACE PLMEE_DATA ADD DATAFILE 'E:\app\dba\oradata\PLMEE04_data' SIZE 100M AUTOEXTEND ON NEXT 10M * ERROR at line 1: ORA-00959: tablespace 'PLMEE_DATA' does not exist ALTER TABLESPACE PLMEE_DATA ADD DATAFILE 'E:\app\dba\oradata\PLMEE05_data' SIZE 100M AUTOEXTEND ON NEXT 10M * ERROR at line 1: ORA-00959: tablespace 'PLMEE_DATA' does not exist CREATE USER PLMEE IDENTIFIED BY PLMEE DEFAULT TABLESPACE PLMEE_DATA TEMPORARY TABLESPACE PLMEE_TEMP * ERROR at line 1: ORA-00959: tablespace 'PLMEE_DATA' does not exist GRANT CONNECT,RESOURCE TO PLMEE * ERROR at line 1: ORA-01917: user or role 'PLMEE' does not exist ALTER USER PLMEE QUOTA UNLIMITED ON PLMEE_DATA * ERROR at line 1: ORA-01918: user 'PLMEE' does not exist ALTER USER PLMEE QUOTA UNLIMITED ON PLM_DATA * ERROR at line 1: ORA-01918: user 'PLMEE' does not exist ALTER USER PLMEE QUOTA UNLIMITED ON USERS * ERROR at line 1: ORA-01918: user 'PLMEE' does not exist old 1: CREATE OR REPLACE DIRECTORY DUMP_DIR AS '&1' new 1: CREATE OR REPLACE DIRECTORY DUMP_DIR AS 'D:\dbInit\' Directory created. GRANT READ,WRITE ON DIRECTORY DUMP_DIR TO PLMEE * ERROR at line 1: ORA-01917: user or role 'PLMEE' does not exist Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options create user and make directory finished...
最新发布
08-28
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值