当前位置:网站首页>ORA-00392 ORA-00312 错误处理
ORA-00392 ORA-00312 错误处理
2022-06-11 02:38:00 【夜光小兔纸】
问题描述
还原回复数据库后,在open数据库时报如下错误:
SQL> alter database open RESETLOGS;
alter database open RESETLOGS
*
ERROR at line 1:
ORA-00392: log 17 of thread 1 is being cleared, operation not allowed
ORA-00312: online log 17 thread 1: '/oradata/redofile/redo17.log'
看起来是,在线日志文件online log 17 正在被清除,不允许操作。
处理方法
--查看日志文件状态,发现有很多文件处于clearing状态
SQL> select group#,status from v$log;
GROUP# STATUS
---------- ----------------
1 CLEARING
20 CLEARING
3 CLEARING
4 CLEARING
5 CLEARING
6 CLEARING
7 CLEARING
8 CLEARING
9 CLEARING
10 CLEARING
11 CLEARING
12 CLEARING
13 CLEARING
14 CLEARING
15 CLEARING
16 CLEARING
17 CLEARING_CURRENT
18 CLEARING
19 CLEARING
2 CLEARING
20 rows selected.
--执行clear logfile 命令
SQL> alter database clear logfile group 18;
Database altered.
SQL> alter database clear logfile group 17;
Database altered.
SQL> alter database clear logfile group 19;
Database altered.
--再次查看日志文件状态
SQL> select group#,status from v$log;
GROUP# STATUS
---------- ----------------
1 CLEARING
20 CLEARING
3 CLEARING
4 CLEARING
5 CLEARING
6 CLEARING
7 CLEARING
8 CLEARING
9 CLEARING
10 CLEARING
11 CLEARING
12 CLEARING
13 CLEARING
14 CLEARING
15 CLEARING
16 CLEARING
17 CURRENT
18 UNUSED
19 UNUSED
2 CLEARING
20 rows selected.
--再次尝试open resetlog启动数据库
SQL> alter database open resetlogs;
Database altered.
--查看当前数据库状态
SQL> select status from v$instance;
STATUS
------------
OPEN
--过一会再次查看日志文件状态,此时状态显示为常见的几种正常状态
SQL> select group#,status from v$log;
GROUP# STATUS
---------- ----------------
1 INACTIVE
2 INACTIVE
3 INACTIVE
4 INACTIVE
5 INACTIVE
6 INACTIVE
7 INACTIVE
8 CURRENT
9 UNUSED
10 UNUSED
11 UNUSED
GROUP# STATUS
---------- ----------------
12 UNUSED
13 UNUSED
14 UNUSED
15 UNUSED
16 UNUSED
17 UNUSED
18 UNUSED
19 UNUSED
20 UNUSED
20 rows selected.
边栏推荐
- Learning Tai Chi Maker - esp8226 (II)
- 学习太极创客 — ESP8226 (二)
- OpenJudge NOI 1.13 18:Tomorrow never knows?
- CPT 102_LEC 15
- 20220610 星期五
- 逃离大城市的年轻人:扛住了房价和压力,没扛住流行病
- 第七章 常用的协议简介(1)
- [resolved] how to fix another update in progress WordPress upgrade error
- CPT 102_ LEC 20
- List filtering, sorting, verification and other processing methods
猜你喜欢
![[resolved] how to fix another update in progress WordPress upgrade error](/img/b1/7b9945c1a623c20288f0d232cbb0c4.jpg)
[resolved] how to fix another update in progress WordPress upgrade error
![[MySQL 45 lecture -12] lecture 12 the reason why MySQL has a wind attack from time to time](/img/db/aeadbc4f3189a9809592d2a4714d22.jpg)
[MySQL 45 lecture -12] lecture 12 the reason why MySQL has a wind attack from time to time

If you understand the logic of mining and carbon neutrality, you will understand the 100 billion market of driverless mining areas

新来的同事问我 where 1=1 是什么意思???

App test_ Summary of test points

Why did those who left Beijing, Shanghai and Guangzhou with a smile cry in the end?

CPT 102_LEC 17
![[big guy show] aiops in the eyes of Borui data, choosing the right track and the right people](/img/a6/61d125326fc81532a56858c384460f.jpg)
[big guy show] aiops in the eyes of Borui data, choosing the right track and the right people

蓝桥杯_小蓝吃糖果_鸽巢原理 / 抽屉原理

【冒泡排序的实现】
随机推荐
WordPress article directory plug-in luckywp table of contents setup tutorial
Three special data types, day3 and redis (geographic location, cardinality statistics and bitmap scene usage)
Add SQL formatter to vscode to format SQL
How can Delma's own brand "take off" when Philips is listed on the market?
How to handle error code 30204-44 when installing office 2016 in win10?
Prophet
JS memory leak
微信模版消息errcode“:40165,“errmsg“:“invalid weapp pagepath
One line of code solves the problem that the time to fetch datetime from MySQL database is less than eight hours
Common vocabulary of software testing English
HUST软件工程(实验2)--TDD测试驱动开发实验。
RS232/RS485转4G DTU 上传基于Modbus协议的温湿度传感器数据到远程TCP服务器
逃离大城市的年轻人:扛住了房价和压力,没扛住流行病
码农的进阶之路 | 每日趣闻
CPT 102_LEC 18
Question bank and answers for 2022 melting welding and thermal cutting operation certificate examination
How to state clearly and concisely the product requirements?
Write my Ini configuration file error
Baidu submits sitemap to prompt the solution of "index type is not handled"
[MySQL 45 -10] Lesson 10 how MySQL selects indexes