ORA-00257—归档日志空间不足引发的错误与解决方案
来源:互联网 发布:淘宝店铺怎么关闭贷款 编辑:程序博客网 时间:2024/05/16 14:52
今天在玩oracle的时候遇到了一个问题,rollback一个百万数据的表后,PL/SQL developer就一直停在那,
之后再登录就报ora-00257,是归档文件太多的错误,
然后我就打算关掉db的archivelog,便去shutdown immediate,谁知道一shutdown就一直挂在那了,
再去看一下alert_log文件,发现不断在涨:
Wed Apr 17 11:33:22 2013
ARC0: Archiving not possible: No primary destinations
ARC0: Failed to archive thread 1 sequence 158 (4)
ARCH: Archival stopped, error occurred. Will continue retrying
Wed Apr 17 11:33:22 2013
Errors in file d:\oracle\product\10.2.0\db_1\admin\orcl\bdump\orcl_arc0_7344.trc:
ORA-16014: log 1 sequence# 158 not archived, no available destinations
ORA-00312: online log 1 thread 1: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG'
Wed Apr 17 11:33:23 2013
Errors in file d:\oracle\product\10.2.0\db_1\admin\orcl\bdump\orcl_arc1_7884.trc:
ORA-19815: WARNING: db_recovery_file_dest_size of 2147483648 bytes is 100.00% used, and has 0 remaining bytes available.
应该是归档文件空间不足导致shutdown挂掉了
直接关掉窗口后,登录sysdba用户,直接startup force,终于能启动数据库了,
立马alter database noarchivelog,封住嘴巴,然后再用rman删掉归档文件
第一次用rman,发现要先建catalog,
在db里建立一个tablespace:
create tablespace rman_tools
datafile
'D:\oracle\product\10.2.0\oradata\orcl\rman01.dbf'
size 100m
再建立一个schema
create user rman
identified by rman
default tablespace rman_tools
quota unlimited on rman_tools;
再分配权限
grant connect,resource,create session,recovery_catalog_owner to rman
然后在命令里
rman catalog rman/rman
connected to recovery catalog database
创建 catalog
create catalog tablespace rman_tools
recovery catalog created
成功了!
但是当我连接目标数据库时
connect target /,
又报错了
RMAN-06429:TARGET database is not compatible with this version of RMAN
发现是我机器上装了几个版本的oracle,这里命令行用的rman版本不匹配
这时可以自己去改系统环境变量的路径,或者手动到指定oracle目录里打开rman,
接着再一次connect target /,
连接成功!
再注册db
register database,
这样就可以开始删除归档文件了
delete expired archivelog all,
这样就大功告成了
select * from v$flash_recovery_area_usage
CONTROLFILE 0 0 0
ONLINELOG 0 0 0
ARCHIVELOG 3.9405
BACKUPPIECE 0 0 0
IMAGECOPY 0 0 0
FLASHBACKLOG 000
archivelog 只用占了 3.94%,搞掂!
- ORA-00257—归档日志空间不足引发的错误与解决方案
- ORA-00257 归档日志错误的解决方案
- ORA-00257归档日志写满的解决方案
- ORA-00257错误(归档空间不够)
- 手动释放归档空间解决ORA-00257错误
- ora-00257数据库日志归档器错误解决方法
- Oracle归档日志写满(ORA-00257错误)
- 归档日志满以后引起的错误 Caused by: java.sql.SQLException: ORA-00257:
- 归档日志卷空间不足导致数据库故障解决方法
- ORA-16014和ORA-00312 无法归档日志解决方案
- 归档日志爆满造成的ora-01034 ,ORA-27101错误解决
- 【Oracle】ORA-00257归档日志写满的解决方法
- ORA-00257归档日志写满的解决方法
- ORA-00257归档日志已满的解决方法
- ORA-16038的解决(日志无法归档)
- ORA-16038的解决(日志无法归档)
- import表时,表空间不足导致产生ORA-00604错误
- rman 失效后空间不足引起ora-00275错误解决办法
- PB 、 EB 、ZB 、 YB
- fluentd学习——High Availability (多级fluentd配置)
- 水晶报表传参
- Spring 整合mybatis时遇到的问题
- 三个方法让你成为更好的程序员
- ORA-00257—归档日志空间不足引发的错误与解决方案
- 苹果iOS 5限制应用本地存储问题
- fluentd学习——tail(输入插件)
- poj2001(字典树)
- 初步理解Android的MediaScanner(2)
- 练习
- 我的购机(手机)之路
- java中组合与聚合(聚集)的区别
- ubuntu10如何调出导航栏方便复制地址