当前位置:网站首页>解决ORCLE-ORA-01122 01110 01210
解决ORCLE-ORA-01122 01110 01210
2022-07-27 10:00:00 【低音钢琴】
中午搬迁了数据库服务器,点亮后启动数据库。
lsnrctl start
The listener supports no services
The command completed successfully
没问题。
然后启动数据库,报错:
SQL> startup
ORACLE instance started.
Total System Global Area 2137886720 bytes
Fixed Size 2254952 bytes
Variable Size 838862744 bytes
Database Buffers 1291845632 bytes
Redo Buffers 4923392 bytes
Database mounted.
ORA-01122: database file 11 failed verification check
ORA-01110: data file 11: '/data/oracle/oradata/orcl/xn_01.ora'
ORA-01210: data file header is media corrupt
看错误信息是有一个ora文件的文件头损坏。首先尝试recover操作:
SQL> recover datafile 11
ORA-00283: recovery session canceled due to errors
ORA-01110: data file 11: '/data/oracle/oradata/orcl/xn_01.ora'
ORA-01122: database file 11 failed verification check
ORA-01110: data file 11: '/data/oracle/oradata/orcl/xn_01.ora'
ORA-01210: data file header is media corrupt
瞬间头大。百度资料发现修复过程很繁琐。因此决定采用简单粗暴的方式来处理,既然是表空间文件坏了,那就重建表空间文件。
注意:这种做法的前提是你这个表空间的数据是可以废弃的,我这边只是一个测试库,而且是着急要启动数据库,所以能重建。如果你的表空间文件是有重要数据的就要慎重。
首先另外找一个能用的数据库服务,用有dba权限的用户登录进去
创建一个新的表空间:
create tablespace xn_01
datafile '/data/oracle/oradata/orcl/xn_01.ora'
size 50m
autoextend on
next 5m maxsize 10000m
extent management local;
创建成功后,查询数据文件所在的位置
select d.FILE_NAME from dba_data_files d where d.FILE_NAME like '%xn_01%'
2 /data/oracle/oradata/orcl/xn_01.ora
然后去/data/oracle/oradata/orcl目录中拷贝出xn_01.ora文件,拷贝到有问题的数据库的datafile目录中,如果你的表空间文件可以废弃,就覆盖同名的xn_01.ora。如果有重要数据,那就把原来有问题的表空间先备份出来,然后再执行拷贝,等数据库能启动了,再想办法解决原来表空间损坏的问题
然后再次尝试打开数据库:
SQL> shutdown immediate;
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 2137886720 bytes
Fixed Size 2254952 bytes
Variable Size 838862744 bytes
Database Buffers 1291845632 bytes
Redo Buffers 4923392 bytes
Database mounted.
ORA-01157: cannot identify/lock data file 11 - see DBWR trace file
ORA-01110: data file 11: '/data/oracle/oradata/orcl/xn_01.ora'
目前提示信息已经是无法锁定文件,也就是表空间的文件数据没问题,但是ORACLE认不到这个表空间,既然认不到,就直接脱机:
SQL> alter database datafile 11 offline drop;
Database altered.
SQL> alter database open;
Database altered.
搞定。
边栏推荐
- Metaaploit-后渗透技知识
- oracle rac 19c pdb实例当掉
- 并发之线程状态转换
- FTP 服务器
- Food safety | the more you eat junk food, the more you want to eat it? Please keep this common food calorimeter
- SE(Squeeze and Excitation)模块的理解以及代码实现
- 邮件服务器
- Pygame: alien invasion
- 3D restoration paper: shape painting using 3D generative advantageous networks and recurrent revolutionary networks
- 使用 LSM-Tree 思想基于.NET 6.0 C# 写个 KV 数据库(案例版)
猜你喜欢
[email protected], "/>Shell variables, system predefined variables $home, $pwd, $shell, $user, custom variables, special variables $n, $, $*, [email protected],

Excellent Kalman filter detailed article

Metaaploit-后渗透技知识

oracle rac 19c pdb实例当掉
![Shell运算符、$((运算式))” 或 “$[运算式]、expr方法、条件判断、test condition、[ condition ]、两个整数之间比较、按照文件权限进行判断、按照文件类型进行判断](/img/65/a735ca2c2902e3fc773dda79438972.png)
Shell运算符、$((运算式))” 或 “$[运算式]、expr方法、条件判断、test condition、[ condition ]、两个整数之间比较、按照文件权限进行判断、按照文件类型进行判断

使用 LSM-Tree 思想基于.NET 6.0 C# 写个 KV 数据库(案例版)

3D人脸重建:Joint 3D Face Reconstruction and Dense Alignment with position Map Regression Network

NVIDIA geforce experience login error: the verifier failed to load. Please check your browser settings, such as the advertisement interceptor (solution)

Food safety | the kitchen board environment is very important. Do you know these use details?

3D修复论文:Shape Inpainting using 3D Generative Adversarial Network and Recurrent Convolutional Networks
随机推荐
语音数据采集-实时语音数据可视化
Live countdown 3 days sofachannel 29 P2P based file and image acceleration system Dragonfly
Ant advanced -path and fileset
Matlab-创建文字云
SE(Squeeze and Excitation)模块的理解以及代码实现
Excellent Kalman filter detailed article
Matlab-创建 MATLAB的logo
Matlab-离散事件系统仿真实验
Matlab底层源代码实现图像的中值滤波(用于消除图像上一些杂点)
Ant高级-task
Is Damon partgroupdef a custom object?
Failure of CUDA installation nsight visual studio edition failed
文件上传漏洞相关
Anchor free detector: centernet
01_ Movie recommendation (contentbased)_ Object portrait
卸载CUDA11.1
Anaconda installation (very detailed)
Oracle RAC 19C PDB instance is down
学习Typescript(一)
DCGAN论文改进之处+简化代码