NBU恢复数据库数据文件报错RMAN-06091
RMAN-06091: no channel allocated for maintenance (of an appropriate type)
一、错误信息
报错信息如下
Starting restore at 2019/11/20 12:59:05
Starting implicit crosscheck backup at 2019/11/20 12:59:05
released channel: ch0
released channel: ch1
released channel: ch2
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 11/20/2019 12:59:15
RMAN-06091: no channel allocated for maintenance (of an appropriate type)
RMAN>
Recovery Manager complete.
根据错误日志提示可以判断由于rman备份通道调整为非磁盘通道,而默认我们设置的通道只磁盘通道,所以这里无法直接通过上述命令删除
二、解决方案
通过命令查看当前rman通道设置
RMAN> show all;
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
日常备份通过NBU备份,所以需要调整磁盘通道维护状态为磁盘
allocate channel for maintenance type disk;
然后进行上述删除操作:
crosscheck archivelog all;
delete expired archivelog all;
三、操作记录
RMAN> show all;
using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name DBYUN are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
...此处省略
RMAN> allocate channel for maintenance type disk;
allocated channel: ORA_MAINT_DISK_1
channel ORA_MAINT_DISK_1: SID=77 device type=DISK
RMAN> crosscheck archivelog all;
Starting implicit crosscheck backup at 2019/11/20 13:13:02
Crosschecked 2 objects
Finished implicit crosscheck backup at 2019/11/20 13:13:11
Starting implicit crosscheck copy at 2019/11/20 13:13:11
Crosschecked 1 objects
Finished implicit crosscheck copy at 2019/11/20 13:13:12
searching for all files in the recovery area
cataloging files...
no files cataloged
validation failed for archived log
archived log file name=+ARCH/DB/ARCHIVELOG/2019_11_19/thread_2_seq_1111.1111.1023785765 RECID=11111 STAMP=1111111111
...此处省略
Crosschecked 7 objects
RMAN> delete expired archivelog all;
List of Archived Log Copies for database with db_unique_name DB
Key Thrd Seq S Low Time
------- ---- ------- - -------------------
109683 2 6499 X 2019/11/08 06:56:51
Name: +ARCH/DB/ARCHIVELOG/2019_11_19/thread_2_seq_1111.2347.1023781111
...此处省略
Do you really want to delete the above objects (enter YES or NO)? y
deleted archived log
archived log file name=+ARCH/DB/ARCHIVELOG/2019_11_19/thread_2_seq_1111.1111.1023785765 RECID=11111 STAMP=1111111111
...此处省略
Deleted 7 EXPIRED objects
RMAN>
RMAN> quit
再次执行恢复脚本成功运行:
Starting restore at 2019/11/20 13:14:38
channel ch0: starting datafile backup set restore
channel ch0: specifying datafile(s) to restore from backup set
channel ch0: restoring datafile 00006 to /data/20191120/oradbrest/datafile/users.111.111111111
NBU恢复数据库数据文件报错RMAN-06091的更多相关文章
- mysql source 恢复 sql数据time_zone报错 已解决
报了一些变量的错误,类似于"time_zone" 等错误 解决: [root@iz8vbilqy0q9v8tds55bqzz conf.d]# vi /etc/my.cnf [my ...
- undo丢失恢复异常恢复,运维DBA反映Oracle数据库无法启动报错ORA-01157 ORA-01110,分析原因为Oracle数据库坏块导致
本文转自 惜纷飞 大师. 模拟基表事务未提交数据库crash,undo丢失恢复异常恢复,运维DBA反映Oracle数据库无法启动报错ORA-01157 ORA-01110,分析原因为Oracle数据库 ...
- flask+sqlite3+echarts2+ajax数据可视化报错:UnicodeDecodeError: 'utf8' codec can't decode byte解决方法
flask+sqlite3+echarts2+ajax数据可视化报错: UnicodeDecodeError: 'utf8' codec can't decode byte 解决方法: 将 py文件和 ...
- 如何获取SQL Server 2008数据库数据文件的位置
在SQL Server中,要获取数据库数据文件的物理位置,有三种方法: sp_helpdb bright name filename f ...
- ORA-15124 数据库启动阶段报错
重新进行启动数据库的时候报错: SQL> startup nomount; ORA-15124: ASM file name '+KEL/ipap/controlfile/control02.c ...
- JMeter 报告监听器导入.jtl结果文件报错解决方案
JMeter 报告监听器导入.jtl结果文件报错解决方案 by:授客 QQ:1033553122 1. 问题描述 把jmeter压测时生成的 .jtl结果文件导入监听器报告中,弹出如下错误提示 ...
- 【python】python读取文件报错UnicodeDecodeError: 'gbk' codec can't decode byte 0xac in position 2: illegal multibyte sequence
python读取文件报错UnicodeDecodeError: 'gbk' codec can't decode byte 0xac in position 2: illegal multibyte ...
- 由于删除DBF文件报错 —— ORA-01033: ORACLE initialization or shutdown in progress
由于移动或删除DBF文件报错:ORA-01033: ORACLE initialization or shutdown in progress 原因:一般该类故障通常是由于移动文件而影响了数据库日 ...
- django2.0+连接mysql数据库迁移时候报错
django2.0+连接mysql数据库迁移时候报错 情况一 错误信息 django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 ...
随机推荐
- nwjs-简单应用于基本结构
简单应用 1.在解压目录下创建文件夹dmeo01 2.在文件夹中创建index.html和package.json两个文件 3.index.html内容: <!DOCTYPE html> ...
- 初识xls文件的读写
# 开发人员 : llm#时间ccc:import xlrdimport xlwt def read_xls(): info = xlrd.open_workbook('pytest.xls') pr ...
- [LeetCode] 746. Min Cost Climbing Stairs 爬楼梯的最小损失
On a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed). Once you pay ...
- CentOS7 Git 安装
最新git源码下载地址: https://github.com/git/git/releases https://www.kernel.org/pub/software/scm/git/ 1 移除旧版 ...
- nuget安装说明
1.先百度安装nuget.server 比如 https://www.cnblogs.com/tomfang/articles/3999303.html 2.官网下载nuget.exe nuget p ...
- Python处理数据集-2
原数据集的数据格式: 每行为:(test_User, test_Item) negativeItem1 negativeItem2 negativeItem3 …… negativeItem99 即每 ...
- Dubbo简介与使用
1:Dubbo是什么 阿里生产的一种rpc 实现框架 Dubbo 是一个分布式服务框架,是阿里巴巴开源项目 ,被国内电商及互联网项目中使用. Dubbo 致力于提供高性能和透明化的RPC远程服务调用 ...
- IDEA Rider使用64位IISExpress(3)
将原来的Programe Files(x86)修改为不带x86的即可.
- 【java】Java多线程总结之线程安全队列Queue【转载】
原文地址:https://www.cnblogs.com/java-jun-world2099/articles/10165949.html ============================= ...
- 排序算法Java代码实现(三)—— 插入排序 和 希尔排序
因为希尔排序的核心思想是插入排序,所以本篇将两篇排序一起记录 本篇内容: 插入排序 希尔排序 (一)插入排序 算法思想: 把n个待排序的元素看成一个有序表和一个无序表,开始时有序表中只有一个元素,无序 ...