当前位置:网站首页>Solve oracle-ora-01122 01110 01210
Solve oracle-ora-01122 01110 01210
2022-07-27 10:17:00 【Bass piano】
The database server was moved at noon , Light up and start the database .
lsnrctl start
The listener supports no services
The command completed successfully
That's all right. .
Then start the database , Report errors :
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
Look at the error message, there is a ora The file header of the file is corrupt . First try recover operation :
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
The head is big in a moment . Baidu data found that the repair process is very cumbersome . So I decided to deal with it in a simple and rough way , Since the tablespace file is broken , Then rebuild the tablespace file .
Be careful : The premise of this approach is that the data in your table space can be discarded , My side is just a test library , And it's urgent to start the database , So it can be rebuilt . If your tablespace file has important data, be careful .
First, find another database service that can be used , Yes dba Users with permissions log in
Create a new tablespace :
create tablespace xn_01
datafile '/data/oracle/oradata/orcl/xn_01.ora'
size 50m
autoextend on
next 5m maxsize 10000m
extent management local;
Once created , Query the location of the data file
select d.FILE_NAME from dba_data_files d where d.FILE_NAME like '%xn_01%'
2 /data/oracle/oradata/orcl/xn_01.ora
Then go to /data/oracle/oradata/orcl Copy out of the directory xn_01.ora file , Copy to the database in question datafile Directory , If your tablespace file can be discarded , Just overwrite the one with the same name xn_01.ora. If there's important data , Then back up the original problematic tablespace , Then execute the copy , Wait for the database to start , Try to solve the problem of table space corruption
Then try to open the database again :
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'
At present, the prompt message is that the file cannot be locked , That is, the file data of the table space is ok , however ORACLE Unable to recognize this table space , Since I can't recognize it , Just go offline :
SQL> alter database datafile 11 offline drop;
Database altered.
SQL> alter database open;
Database altered.
Get it done .
边栏推荐
猜你喜欢

女粉想要找男朋友,竟是为了...

Robotframework+eclispe environment installation

Food safety | the more you eat junk food, the more you want to eat it? Please keep this common food calorimeter

VS2019+CUDA11.1新建项目里没有CUDA选项

Uninstall cuda11.1

Sub query of database performance series

oracle rac 19c pdb实例当掉

Girl fan wants to find a boyfriend, but it's for

Excellent Kalman filter detailed article

Leetcode.814. binary tree pruning____ DFS
随机推荐
Anchor free detector: centernet
使用 Kmeans聚类实现颜色的分割
线代003
Pyautogui实现自动化办公-RPA小case
samba服务器
达梦 PARTGROUPDEF是自定义的对象吗?
Shell process control (emphasis), if judgment, case statement, let usage, for ((initial value; loop control condition; variable change)) and for variable in value 1 value 2 value 3..., while loop
【英雄哥六月集训】第 23天: 字典树
Matlab-绘制叠加阶梯图和线图
Qt 学习(二) —— .pro文件详解
邮件服务器
DES/3DES/AES区别
Gbase 8A MPP cluster capacity expansion practice
Shell函数、系统函数、basename [string / pathname] [suffix] 可以理解为取路径里的文件名称 、dirname 文件绝对路径、自定义函数
sql注入
How does data analysis solve business problems? Here is a super detailed introduction
Uninstall cuda11.1
语音数据采集-实时语音数据可视化
Introduction to Matlab real time editor
Preparation for Android interview (including the whole process of interview, interview preparation, interview questions and materials, etc.)