当前位置:网站首页>解决控制文件全部损坏的异常
解决控制文件全部损坏的异常
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文件相应的目录下,每个文件进行比对编写重建控制文件的脚本.
边栏推荐
- A new paradigm of distributed deep learning programming: Global tensor
- Yolov5 improvement 15: network lightweight method deep separable convolution
- Summary of core functions of software testing tool Fiddler postman JMeter charlse
- 18 diagrams, intuitive understanding of neural networks, manifolds and topologies
- Invest 145billion euros! EU 17 countries announce joint development of semiconductor technology
- pg_rman的安装与使用《postgresql》
- [copy] Internet terms, abbreviations, abbreviations
- One of the experience of solving problems with code error reporting: CUDA does not match pytorch
- 《MySQL数据库进阶实战》读后感(SQL 小虚竹)
- Target detection notes -yolo
猜你喜欢

NVM use... Exit status garbled
![[physical application] atmospheric absorption loss with matlab code](/img/72/e6ac23012a59ac48a37bcbb068890b.png)
[physical application] atmospheric absorption loss with matlab code

18 diagrams, intuitive understanding of neural networks, manifolds and topologies

6 open source tutorials of super conscience!

定了!哪吒S全系产品将于7月31日上市发售

Target detection notes - overview and common data sets

Thesis reading (1) - zfnet of classification

Nacos配置热更新的4种方式、读取项目配置文件的多种方式,@value,@RefreshScope,@NacosConfigurationProperties

The tenth improvement of yolov5: the loss function is improved to Siou

【MySQL系列】 MySQL表的增删改查(进阶)
随机推荐
Target detection notes SSD
Improvement 11 of yolov5: replace backbone network C3 with lightweight network mobilenetv3
Improvement 16 of yolov5: replace backbone network C3 with lightweight network pp-lcnet
Mgr.exe virus caused the startup program to fail
美国FCC提供16亿美元资助本国运营商移除华为和中兴设备
Yolov5 improvement 7: loss function improvement
[physical application] Wake induced dynamic simulation of underwater floating wind turbine wind field with matlab code
Applet, JS, transfer object jump transfer parameter problem
Sdwebimage source code comb 4 # introduce several usages of existing code
Summary of common formula notes for solving problems in Higher Mathematics
DirectX修复工具下载(exagear模拟器数据包在哪里)
Submission records of frontiers Publishing House (with status changes)
Yolov5 improvement 5: improve the feature fusion network panet to bifpn
TypeError: can‘t convert cuda:0 device type tensor to numpy. Use Tensor. cpu() to copy the tensor to
MySQL foundation - advanced functions
Advanced C language: pointer (2)
Sqlilabs-3 (entry notes)
PCA learning
Cglib create proxy
[physical application] atmospheric absorption loss with matlab code