当前位置:网站首页>oracle报错解决
oracle报错解决
2022-07-19 23:26:00 【时空无限】
ORA-00257
问题描述
登陆oracle,提示错误信息ORA-00257: Archiver error. Connect AS SYSDBA only until resolved.
原因分析
这是归档日志积存过多,占用了磁盘空间导致的问题。
解决方案
通过删除归档日志或者增加存储空间方式可解决该问题,本文中选择通过rman清除归档日志
[email protected]# rman target sys/xxxx #使用有dba权限的账户和密码
#检查控制文件和实际物理文件的差别
RMAN> crosscheck archivelog all;
#删除过期文件(过期文件指的是存储在rman资料库中的记录,但实际上记录对应的归档日志已经被清除了)
RMAN> delete expired archivelog all;
#删除7天前的归档日志
RMAN> delete archivelog until time 'sysdate-7'
注:请勿手动删除归档日志,手动删除,空间是不会得到释放的。
————————————————
版权声明:本文为CSDN博主「不会画画的画师」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/Loiterer_Y/article/details/119945385
ORA-03113
问题描述
登录oracle执行sql语句报错
ORA-03113: end-of-file on communication channel
startup
ORACLE instance started.
Total System Global Area 1.0066E+10 bytes
Fixed Size 12342064 bytes
Variable Size 2248150224 bytes
Database Buffers 7784628224 bytes
Redo Buffers 21209088 bytes
Database mounted.
ORA-03113: end-of-file on communication channel
Process ID: 12631
Session ID: 977 Serial number: 51747
原因分析
以上错误是因为,没有一致性关库造成的
–使用隐藏参数忽略一致性验证:
conn / as sysdba
startup mount
alter system set "_allow_resetlogs_corruption"=true scope=spfile;
startup force mount; --将数据库启动到 mount
alter database open resetlogs; --使用 resetlogs 打开数据库
--此时再报 ORA-01139 错误
alter database open resetlogs
*
ERROR at line 1:
ORA-01139: RESETLOGS option only valid after an incomplete database recovery
解决方案
recover database until cancel;
Media recovery complete.
alter database open resetlogs;
Database altered.
SQL> select status from v$instance;
STATUS
------------
OPEN
取消隐藏参数后,可以正常启动数据库:
alter system reset "_allow_resetlogs_corruption" scope=spfile sid='*';
然后重新启动,可以正常启动
startup force
边栏推荐
- 蚂蚁金服一面:十道经典面试题解析
- 数字化还没走远,数智化时代已经来临
- Adding, deleting, querying and modifying MySQL tables (II)
- ARM PWN基础教程
- continue语句
- matplotlib的savefig必须在show之前
- openvino模型学习-从模型转化流水线制作
- Wechat and QQ can access the Internet normally, but there are three solutions for web pages not to access the Internet.
- 高数_第2章多元函数微分学__求解条件极值的方法__拉格朗日乘数法
- 我的创作纪念日
猜你喜欢
A combination idea of developing applet +app) with fluent
openvino模型学习-从模型转化流水线制作
MySQL十九:分库分表实践
从富士康大厂流水线,到入职互联网大厂腾讯软件测试岗,我花了2年~
RuntimeError: CUDA error: an illegal memory access was encountered
【1】 Harbor online installation: experience harbor in 3 minutes
ECCV 2022 | semantic novelty detection based on relational reasoning
Ant gold clothing: analysis of ten classic interview questions
创未来,享非凡,openGauss Developer Day 2022圆满举行
Goodbye VLAN, I choose to use QinQ! 1000 words will bring you a detailed understanding of QinQ technology
随机推荐
性能测试学习之jmeter单场景使用示例
[ROS] topic based use
【Kaggle】如何有效避免OOM和漫长的炼丹过程
for语句 range函数
iptables防止nmap扫描以及binlog备份
Ali P8 posted the salary slip in January. It really pierced my heart after reading it
深度参与 openGauss Developer Day 2022,云和恩墨在多项活动中展风采
读书笔记之数据密集型应用的可维护性
What is CPU virtualization? Open or close?
cnpm安装
openGauss社区理事长江大勇:openGauss联合产业界创新,共建开源数据库根社区
MoveIt2——6.规划场景监视器
C语言基础演练(6)
Rust开发——Trait的概念与应用示例
I really can't roll
Detailed explanation of mysql5.7 parameters
RuntimeError: CUDA error: an illegal memory access was encountered
Interface automated testing - what is the difference between single interface automated testing and business scenario automated testing?
【Flink】聚合算子
「接口测试入门课」打卡学习 day04:如何把流程化的测试脚本抽象为测试框架?