当前位置: 首页 > news >正文

关于无法标识/锁定数据库文件

今天在导库的时候失败了,就把oracle服务给停了,然后把表空间文件给删了.结果在启动实例的时候报了如下错误:

后来通过执行一下查询发现,实例的状态为mounted.

1 SELECT * FROM V$INSTANCE;

没办法,内事不决问百度,发现如下解决办法:

1 alter database datafile 'd:\xx.dbf' offline drop;
2 alter database open;

oracle 官方说明如下:

Altering Datafile Availability

You can alter the availability of individual datafiles or tempfiles by taking them offline or bringing them online. Offline datafiles are unavailable to the database and cannot be accessed until they are brought back online.

Reasons for altering datafile availability include the following:

  • You want to perform an offline backup of a datafile.

  • You want to rename or relocate a datafile. You must first take it offline or take the tablespace offline.

  • The database has problems writing to a datafile and automatically takes the datafile offline. Later, after resolving the problem, you can bring the datafile back online manually.

  • A datafile becomes missing or corrupted. You must take it offline before you can open the database.

Taking Datafiles Offline in NOARCHIVELOG Mode

To take a datafile offline when the database is in NOARCHIVELOG mode, use the ALTER DATABASE statement with both the DATAFILE and OFFLINE FOR DROP clauses.

  • The OFFLINE keyword causes the database to mark the datafile OFFLINE, whether or not it is corrupted, so that you can open the database.

  • The FOR DROP keywords mark the datafile for subsequent dropping. Such a datafile can no longer be brought back online.

The following statement takes the specified datafile offline and marks it to be dropped:

ALTER DATABASE DATAFILE '/u02/oracle/rbdb1/users03.dbf' OFFLINE FOR DROP;

 

转载于:https://www.cnblogs.com/kairui/archive/2013/03/23/ora_01157.html

相关文章:

  • [转]步步为营 C# 技术漫谈 二、ASP.NET 页生命周期
  • silverlight 遍历datagrid行的数据
  • yum失败
  • 罗技G500游戏鼠标
  • PHP获取星期的方法及代码
  • Java的IO操作(四) - SequenceInputStream类,实例:一个文件分割、合并工具
  • eclipse中默认js编辑器非常慢,尤其在拷贝粘贴代码时的解决方法
  • 禽流感注意事项
  • setTimeout,setInterval的使用小结
  • C# WF中关闭按钮的状态判定,根据用户选择执行不同的方法
  • iPhone上画圆角矩形的方法
  • CPP 插入排序
  • Android 获取网页内容
  • 系统子模块_短信命令语法设计
  • 高效能人士的七个习惯(部分)
  • JavaScript-如何实现克隆(clone)函数
  • [译]CSS 居中(Center)方法大合集
  • “寒冬”下的金三银四跳槽季来了,帮你客观分析一下局面
  • 2018天猫双11|这就是阿里云!不止有新技术,更有温暖的社会力量
  • Essential Studio for ASP.NET Web Forms 2017 v2,新增自定义树形网格工具栏
  • Java方法详解
  • Laravel 菜鸟晋级之路
  • leetcode378. Kth Smallest Element in a Sorted Matrix
  • php ci框架整合银盛支付
  • Quartz初级教程
  • React组件设计模式(一)
  • SQLServer之创建数据库快照
  • 番外篇1:在Windows环境下安装JDK
  • 反思总结然后整装待发
  • 回流、重绘及其优化
  • 快速构建spring-cloud+sleuth+rabbit+ zipkin+es+kibana+grafana日志跟踪平台
  • 来,膜拜下android roadmap,强大的执行力
  • 利用jquery编写加法运算验证码
  • 前端技术周刊 2019-02-11 Serverless
  • 听说你叫Java(二)–Servlet请求
  • 7行Python代码的人脸识别
  • 数据可视化之下发图实践
  • 专访Pony.ai 楼天城:自动驾驶已经走过了“从0到1”,“规模”是行业的分水岭| 自动驾驶这十年 ...
  • # 再次尝试 连接失败_无线WiFi无法连接到网络怎么办【解决方法】
  • $.each()与$(selector).each()
  • (52)只出现一次的数字III
  • (C语言)二分查找 超详细
  • (Redis使用系列) Springboot 使用redis的List数据结构实现简单的排队功能场景 九
  • (附源码)springboot宠物管理系统 毕业设计 121654
  • (附源码)计算机毕业设计ssm基于Internet快递柜管理系统
  • (离散数学)逻辑连接词
  • (没学懂,待填坑)【动态规划】数位动态规划
  • (学习日记)2024.01.19
  • (原創) X61用戶,小心你的上蓋!! (NB) (ThinkPad) (X61)
  • (转)项目管理杂谈-我所期望的新人
  • .NET 8 编写 LiteDB vs SQLite 数据库 CRUD 接口性能测试(准备篇)
  • .NET Core 成都线下面基会拉开序幕
  • .NET简谈互操作(五:基础知识之Dynamic平台调用)
  • [ vulhub漏洞复现篇 ] AppWeb认证绕过漏洞(CVE-2018-8715)
  • [2016.7.test1] T2 偷天换日 [codevs 1163 访问艺术馆(类似)]