Chinaunix首页 | 论坛 | 博客
  • 博客访问: 652716
  • 博文数量: 70
  • 博客积分: 145
  • 博客等级: 入伍新兵
  • 技术积分: 1150
  • 用 户 组: 普通用户
  • 注册时间: 2012-10-11 08:15
个人简介

没有简介就是最好的简介

文章分类

全部博文(70)

文章存档

2020年(1)

2018年(2)

2017年(3)

2016年(11)

2015年(12)

2014年(16)

2013年(19)

2012年(6)

我的朋友

分类: Oracle

2016-03-25 10:25:42

SQL> select file_name,tablespace_name from DBA_TEMP_FILES;
select file_name,tablespace_name from DBA_TEMP_FILES
                                      *
ERROR at line 1:
ORA-01157: cannot identify/lock data file 201 - see DBWR trace file
ORA-01110: data file 201: '/oracle/app/oradata/hnzz/temp01.dbf'

SQL> alter tablespace temp_demo drop datafile '/oracle/app/oradata/hnzz/temp01.dbf';
alter tablespace temp_demo drop datafile '/oracle/app/oradata/hnzz/temp01.dbf'
*
ERROR at line 1:
ORA-03219: Tablespace 'TEMP_DEMO' is dictionary-managed, offline or temporary


SQL> alter tablespace temp_demo drop tempfile '/oracle/app/oradata/hnzz/temp01.dbf';
alter tablespace temp_demo drop tempfile '/oracle/app/oradata/hnzz/temp01.dbf'
*
ERROR at line 1:
ORA-03284: datafile or tempfile /oracle/app/oradata/hnzz/temp01.dbf is not a
member of tablespace TEMP_DEMO
解决
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount;
ORACLE instance started.

Total System Global Area  849530880 bytes
Fixed Size                  1339824 bytes
Variable Size             742395472 bytes
Database Buffers          100663296 bytes
Redo Buffers                5132288 bytes
Database mounted.
SQL> alter database tempfile '/oracle/app/oradata/hnzz/temp01.dbf' offline;

Database altered.

SQL> alter database tempfile '/oracle/app/oradata/hnzz/temp01.dbf' drop;

Database altered.

SQL> alter database open;

Database altered.
阅读(1157) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~