ORA-03113:通信通道的文件结尾 进程ID4781 查看alter.log 发现提示联机日志文件有问题 网上的方法看不是很懂,看到有很多错误 or
ORA-03113:通信通道的文件结尾 进程ID4781
查看alter.log
发现提示联机日志文件有问题
网上的方法看不是很懂,看到有很多错误
ora-16038:日志无法归档
ora-00312
ORA-19809: limit exceeded for recovery files
ora-19804:无法回收。。。磁盘空间
原来Oracle11g在默认情况下,归档日志是保存在闪存恢复区的,并且闪存恢复区的大小默认是2g,空间满了之后就没有办法再归档了。
启动数据库到mount状态,statup mount 更改recovery files空间大小,然后rman,删除过期的备份,指定备份策略,定期删除备份。
推荐阅读:
ORA-01172、ORA-01151错误处理
ORA-00600 [2662]错误解决
ORA-01078 和 LRM-00109 报错解决方法
ORA-00471 处理方法笔记
ORA-00314,redolog 损坏,或丢失处理方法
ORA-00257 归档日志过大导致无法存储的解决办法
SQL> show parameter db_recovery_file_dest
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_recovery_file_dest string d:\app\qiao\flash_recovery
_area
db_recovery_file_dest_size big integer 2G
解决办法,,有3种:
1.加大闪存恢复区。
ALTER SYSTEM SET db_recovery_file_dest_size=50g scope=both;
2.归档路径设置到其它地方。
alter system set log_archive_dest = 其他路径
3.删除或转移归档日志。
打开RMAN
rman target /
RMAN>crosscheck archivelog all; -- 运行这个命令可以把无效的expired的archivelog标出来。
RMAN>delete expired archivelog all; -- 直接全部删除过期的归档日志。
RMAN>delete noprompt archivelog until time "sysdate -3"; --删除系统当前日期3天前的归档,不经过提示、直接删除。或(DELETE ARCHIVELOG ALL COMPLETED BEFORE 'SYSDATE-7')
指定retention的策略(RMAN 的备份保留策略),使得archivelog不至于这样增加
命令格式:
configure retention policy clear ---------------备份保留策略使用默认值
configure retention policy to none------------不采用任何备份保留策略
configure retention policy to recover window of integer days------------基于时间的备份保留策略,保留几天前的备份文件
configure retention policy to redundancy integer-------基于冗余备份的备份保留策略,对备份文件保留几个冗余备份
REPORT OBSOLETE命令查看当前处于废弃状态的备份文件
DELETE OBSOLET 命令可立刻删除备份保留策略 不需要的文件(废弃文件)。
RMAN>configure retention policy to recovery window of 7 days; 保留七天内的所有备份。
RMAN>configure retention policy to redundancy 3; 为每个数据文件保留3个冗余备份。
SQL>alter system db_recovery_file_dest_size=4G scope=both;
当然我们可以写一个简单的shell脚本,对归档日志进行管理
#!/bin/bash
#confirm oracle runing environment
. /home/oracle/.bash_profile
ps -ef |grep dbw0_$ORACLE_SID | grep -v grep >> /dev/null
if [ $? -eq 0 ];then
rman target / log=/orabackup/delarch`date +%Y%m%d`.log crosscheck archivelog all;
delete noprompt expired archivelog all;
backup as compressed backupset archivelog all format '/orabackup/cron-archlog_%U_%d_%T_%s_%p' delete input;
exit;
EOF
fi
以上脚本对oracle归档进行了备份然后删除,根据自己需要修改,然后添加到crontab

This article explores optimizing MySQL memory usage in Docker. It discusses monitoring techniques (Docker stats, Performance Schema, external tools) and configuration strategies. These include Docker memory limits, swapping, and cgroups, alongside

This article addresses MySQL's "unable to open shared library" error. The issue stems from MySQL's inability to locate necessary shared libraries (.so/.dll files). Solutions involve verifying library installation via the system's package m

The article discusses using MySQL's ALTER TABLE statement to modify tables, including adding/dropping columns, renaming tables/columns, and changing column data types.

This article compares installing MySQL on Linux directly versus using Podman containers, with/without phpMyAdmin. It details installation steps for each method, emphasizing Podman's advantages in isolation, portability, and reproducibility, but also

This article provides a comprehensive overview of SQLite, a self-contained, serverless relational database. It details SQLite's advantages (simplicity, portability, ease of use) and disadvantages (concurrency limitations, scalability challenges). C

This guide demonstrates installing and managing multiple MySQL versions on macOS using Homebrew. It emphasizes using Homebrew to isolate installations, preventing conflicts. The article details installation, starting/stopping services, and best pra

Article discusses configuring SSL/TLS encryption for MySQL, including certificate generation and verification. Main issue is using self-signed certificates' security implications.[Character count: 159]

Article discusses popular MySQL GUI tools like MySQL Workbench and phpMyAdmin, comparing their features and suitability for beginners and advanced users.[159 characters]


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 Mac version
God-level code editing software (SublimeText3)

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Zend Studio 13.0.1
Powerful PHP integrated development environment
