Oracle 创建、删除表空间文件及删除,ORA-01219错误
创建:
CREATE tablespace SPACE100001 DATAFILE 'E:/tablespace/SPACE100001_1.DBF' size 300M AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED;
ALTER tablespace SPACE100001 ADD DATAFILE 'E:/tablespace/SPACE100001_2.DBF' size 300M AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED;
删除:
drop tablespace SPACE100001 including contents and datafiles;
删除表空间引起的ORA-01219错误:
select open_mode from v$database;
--运行下面会提示出错的表空间文件,即刚删除过的表空间文件
ALTER DATABASE OPEN;
删除表空间文件
ALTER DATABASE DATAFILE 'E:/tablespace/SPACE100001_1.DBF' OFFLINE DROP;
再次执行,直到删除完出错的表空间文件。
ALTER DATABASE OPEN;
相关推荐
赵继业 2020-08-17
FightFourEggs 2020-08-16
大慧 2020-05-27
zhangchaoming 2020-04-20
Carlos 2020-02-03
haiross 2020-01-13
Streamoutput 2019-12-31
pfpfpfpfpf 2014-06-03
bfcady 2020-08-16
Hody 2020-08-16
流云追风 2020-07-04
dataminer 2020-06-25
spurity 2020-11-10
lidongliang 2020-08-16
Kele0 2020-06-13
一次次尝试 2020-06-13
warden00 2020-06-11