ORA-01537 错误及解决方法

简介: Problem Description-------------------You have offline dropped a datafile then try to recreate the datafile (ALTER DATABASE ADD DAT...
Problem Description
-------------------
You have offline dropped a datafile then try to recreate the datafile (ALTER
DATABASE ADD DATAFILE) with the same name and get error message:

ORA-1537 (datafile already exists) even though you have offline dropped it.

ORA-01537: "cannot add data file '%s' - file already part of database"
     Cause:  During CREATE or ALTER TABLESPACE, a file being added is already  part of the database.
    Action:  Use a different file name.

ORA-00376: "file %s cannot be read at this time"
  Cause:  attempting to read from a file that is not readable. Most likely
    the file is offline.
    Action: Check the state of the file. Bring it online


Solution Description
--------------------
Before proceeding, see Note 111316.1  How to 'DROP' a Datafile from a
Tablespace.  

  If a tablespace has only one datafile then dropping the tablespace will remove details of the datafile from the data dictionary.
   If a tablespace has more than one datafile, then to remove the datafile, the tablespace must be dropped and recreated having exported any data  that needs to be retained.


To remove details of the datafile from the Data Dictionary:

1) Export the entire tablespace contents.  

2) Drop the tablespace, including contents.

3) Rebuild the tablespace with the datafiles you want it to contain.  

4) Import the data back in.

Explanation
-----------
The Data Dictionary still contains information that this datafile
exists. Offline drop of a datafile does not remove it from the Data
Dictionary.
目录
相关文章
|
Oracle 关系型数据库 数据库
|
SQL 关系型数据库 MySQL
ORA-01948和ORA-04052错误的解决方法
一、事件背景: 业务人员在创建一个物化视图的时候,报了以下错误: SQL> CREATE MATERIALIZED VIEW MV_RETAIL_wbmout_R 2 TABLESPACE SAPDATA 3 PCTUSED 0 ...
1729 0
|
Oracle 安全 关系型数据库
小编教你Oracle数据库ORA-28002错误原因及解决办法
  近期小编在开发api接口时,调试中接口返回ORA-28002错误,看前缀知道是Oracle返回的错误信息,随查了下Oracle相关文档。在此把解决方案分享给有需要的朋友。在oracle database 11g中,默认在default概要文件中设置了“PASSWORD_LIFE_TIME=180天”所导致。密码过期后,业务进程连接数据库异常,影响业务使用。数据库密码过期后,业务进程一旦重启会提示连接失败。注:Oracle 11g启动参数resource_limit无论设置为false还是true,密码有效期都是生效的,所以必须通过以下方式进行修改:
531 0
|
关系型数据库 数据库 Windows
|
Oracle 关系型数据库 数据库