当前位置:网站首页>解决控制文件全部损坏的异常
解决控制文件全部损坏的异常
2022-07-28 21:35:00 【51CTO】
数据库:Oracle 11.2.0.4
系统:CentOS 7.9
实验目标:模拟控制文件全部损坏,并提供解决方案.
1、控制文件损坏前数据
2、模拟控制文件损坏
2.1、关闭数据库
2.2、删除所有控制文件
启动数据库报错
说明:此处成功模拟出控制文件全部丢失无法启动数据库的异常情况.
3、解决方案:
说明:如果在数据库还未关闭的的情况下,发现控制文件损坏,可以使用命令将重建控制文件的脚本输出到trace文件中,方便控制文件的重建.
语句:alter database backup controlfile to trace;
重建控制文件
系统层面查看控制文件,如下所示:控制文件已恢复到原目录.
说明:如果控制文件存在备份,那么最好使用备份的控制文件进行恢复.此处用的是数据库未关闭时生成的控制文件进行的重建.试想一下,如果数据库处于关闭状态,而此时发现控制文件全部丢失,作为DBA应该怎么办?这时就需要去数据文件、redo文件相应的目录下,每个文件进行比对编写重建控制文件的脚本.
边栏推荐
- ValueError: Using a target size (torch.Size([64])) that is different to the input size (torch.Size([
- Empowering Chinese core entrepreneurs! See how Moore elite solves the development problems of small and medium-sized chip Enterprises
- Recurrent neural network (RNN)
- The safety dog has been selected into many details of cloud security panorama 2.0
- MySQL Basics - Introduction and basic instructions
- Source code analysis of kotlin collaborative process startup
- Yolov5 improvement 15: network lightweight method deep separable convolution
- Advanced C language: pointer (2)
- 希捷发布全新RISC-V架构处理器:机械硬盘相关性能暴涨3倍
- can‘t convert cuda:0 device type tensor to numpy. Use Tensor. cpu() to copy the tensor to host memory
猜你喜欢

Rouyi cloud platform - how to realize the launch and login functions of the project and how to create new modules

The Gerrit local code is associated to the remote warehouse

无代码开发平台管理后台入门教程

Reading of "robust and communication efficient federated learning from non-i.i.d. data"

Improvement 17 of yolov5: cnn+transformer -- integrating bottleneck transformers

xshell7,xftp7个人免费版官方下载,无需破解,免激活,下载即可使用

The safety dog has been selected into many details of cloud security panorama 2.0

【C语言】三子棋小游戏实现

《MySQL数据库进阶实战》读后感(SQL 小虚竹)

NVM use... Exit status garbled
随机推荐
投资500亿元!中芯京城正式注册成立!
pg_ Installation and use of RMAN "PostgreSQL"
Pgbench benchmark PostgreSQL
Yolov5 improvement 5: improve the feature fusion network panet to bifpn
Performance optimized APK slimming
A simple neural network model based on MLP full connection layer
The simple neural network model based on full connection layer MLP is changed to the model based on CNN convolutional neural network
Leetcode101. Symmetric binary tree
ValueError: Using a target size (torch.Size([64])) that is different to the input size (torch.Size([
Date time functions commonly used in MySQL
In 2020, the top ten domestic IC design enterprises will be exposed! These five industrial challenges still need to be overcome!
Sqlilabs-3 (entry notes)
RouYi-Cloud平台 ---项目的启动、登录功能是怎么实现的、怎么样创建新模块
一份来自奎哥的全新MPLS笔记,考IE必看 ----尚文网络奎哥
WebApplicationType#deduceFromClasspath
leetcode101. 对称二叉树
Xinhuazhang announced the completion of more than 200million a-round financing and the comprehensive layout of eda2.0 R & D
Thesis reading (0) - alexnet of classification
CGLIb 创建代理
6 个超级良心的开源教程!