Oracle database ORA-01109 database is not open

Lead to https://blog.csdn.net/colinmok/article/details/39504879?locationNum=11&fps=1 Thanks!

在plsql创建了2表空间:
create tablespace NC63_DATA01 datafile 'D:\Oracle\oradata\orcl\nc63_data01.dbf' size 500M autoextend on next 50M extent management local uniform size 512k;
create tablespace NC63_INDEX01 datafile 'D:\Oracle\oradata\orcl\nc63_index01.dbf' size 500M autoextend on next 50M extent management local uniform size 256k;

For convenience, the two tablespaces were deleted directly in the directory, and the recycle bin was also deleted. The problem appeared, and it was always reported that the database was not opened.

Solution:

Step 1: Drop the tablespace file you just deleted

ALTER DATABASE DATAFILE 'D:\Oracle\oradata\orcl\nc63_data01.dbf' OFFLINE DROP;

ALTER DATABASE DATAFILE 'D:\Oracle\oradata\orcl\nc63_data01.dbf' OFFLINE DROP;

Step 2: Open the database
ALTER DATABASE OPEN;

Step 3:
DROP TABLESPACE NC63_DATA01 INCLUDING CONTENTS;

DROP TABLESPACE NC63_INDEX01 INCLUDING CONTENTS;

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326217813&siteId=291194637