首页 技术 正文
技术 2022年11月10日
0 收藏 411 点赞 2,964 浏览 1867 个字

1.首先查下oerr给出的简要说明

`oerr ora 257`
“`
00257, 00000, “archiver error. Connect internal only, until freed.”
// *Cause: The archiver process received an error while trying to archive
// a redo log. If the problem is not resolved soon, the database
// will stop executing transactions. The most likely cause of this
// message is the destination device is out of space to store the
// redo log file.
// *Action: Check archiver trace file for a detailed description
//of the problem. Also verify that the
// device specified in the initialization parameter
// ARCHIVE_LOG_DEST is set up properly for archiving.
“`

2.查询V$RECOVERY_AREA_USAGE信息

SQL> select * from V$RECOVERY_AREA_USAGE;FILE_TYPE            PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES
-------------------- ------------------ ------------------------- ---------------
CONTROL FILE 0 0 1
REDO LOG 0 0 0
ARCHIVED LOG 79.36 0 58
BACKUP PIECE 18.98 0 8
IMAGE COPY 0 0 0
FLASHBACK LOG 0 0 0
FOREIGN ARCHIVED LOG 0 0 07 rows selected.SQL> select sum(percent_space_used) from v$recovery_area_usage;SUM(PERCENT_SPACE_USED)
-----------------------
98.34

注:10g是v$flash_recovery_area_usage

确定归档位置:

SQL> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 1412
Next log sequence to archive 1417
Current log sequence 1417SQL> show parameter db_recoveryNAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_recovery_file_dest string +DATA
db_recovery_file_dest_size big integer 350G

3.根据实际空间剩余情况先适当增加归档目录的大小,保证先恢复业务

“`
SQL> select NAME, TOTAL_MB, FREE_MB from v$asm_diskgroup;

NAME TOTAL_MB FREE_MB


DATA 3068928 2418353

`alter system set db_recovery_file_dest_size = 600G;` <h1 id="4"> 4.查看备份是否存在问题 </h1>
①检查备份策略
比如备份之后是否有删除机制,

crosscheck backup;

crosscheck archivelog all;

delete expired archivelog all;

delete archivelog until time ‘sysdate-1’;

backup archivelog all delete input fromat ”;

delete noprompt obsolete;

②检查备份日志
vi 找`ORA-`字样的分析原因。
相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,492
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,907
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,740
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,494
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:8,132
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:5,295