ORA-07217: sltln: environment variable cannot be evaluated及RMAN-06059
备份脚本:
RMAN> run {
allocate channel c1 device type disk format '$BACKUP_HOME/level0/level0_%d_%s_%p_%T.bkp' connect sys/oracle@app1;
3> allocate channel c2 device type disk format '$BACKUP_HOME/level0/level0_%d_%s_%p_%T.bkp' connect sys/oracle@app2;
4> change archivelog all crosscheck;
5> backup archivelog all;
6> }
执行结果:
input archive log thread=1 sequence=8325 recid=47541 stamp=854902271
input archive log thread=1 sequence=8326 recid=47547 stamp=854904675
channel c1: starting piece 1 at 06-8月 -14
RMAN-03009: failure of backup command on c1 channel at 08/06/2014 17:31:26
ORA-07217: sltln: environment variable cannot be evaluated.
continuing other job steps, job failed will not be re-run
channel c2: starting archive log backupset
channel c2: specifying archive log(s) in backup set
input archive log thread=1 sequence=8307 recid=47473 stamp=854896289
input archive log thread=2 sequence=9017 recid=46693 stamp=854186419
……
input archive log thread=2 sequence=9242 recid=47521 stamp=854900192
input archive log thread=2 sequence=9243 recid=47527 stamp=854900224
input archive log thread=2 sequence=9244 recid=47529 stamp=854901200
input archive log thread=2 sequence=9245 recid=47534 stamp=854901211
input archive log thread=2 sequence=9246 recid=47537 stamp=854902260
input archive log thread=2 sequence=9247 recid=47543 stamp=854902277
input archive log thread=2 sequence=9248 recid=47545 stamp=854904673
channel c2: starting piece 1 at 06-8月 -14
released channel: c1
released channel: c2
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on c2 channel at 08/06/2014 17:31:33
ORA-07217: sltln: environment variable cannot be evaluated.
出错原因:没有定义变量$BACKUP_HOME。
解决办法:将$BACKUP_HOME改成具体的值即可。
示例:
RMAN> run {
allocate channel c1 device type disk format '/home/oracle/rmanbk/level0/level0_%d_%s_%p_%T.bkp' connect sys/oracle@app1;
allocate channel c2 device type disk format '/home/oracle/rmanbk/level0/level0_%d_%s_%p_%T.bkp' connect sys/oracle@app2;
change archivelog all crosscheck;
backup archivelog all;
}
--这是在两个节点的rac环境下执行的。
--一定记得要分配通道,且有必要的话,前面加上命令:change archivelog all crosscheck;
否则,可能备份失败,报如下错误:
RMAN> backup archivelog log all;
RMAN> backup archivelog all;
Starting backup at 06-8月 -14
current log archived
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=235 instance=orcl1 devtype=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 08/06/2014 18:27:38
RMAN-06059: expected archived log not found, lost of archived log compromises recoverability
ORA-19625: error identifying file /u01/app/oracle/archlog/1_8307_821907262.log
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
ORA-07217: sltln: environment variable cannot be evaluated及RMAN-06059的更多相关文章
- ORA-07217 environment variable cannot be evaluated
问题描述:还是rman的问题,一个很沙雕的问题,改了半天,准备是要做数据库的全备,和归档的备份 1.连接rman进行备份,这里要保持数据库为mount状态,因为要对数据库全备 [oracle@orcl ...
- TOMCAT-报错The BASEDIR environment variable is not defined correctly
<span style="font-size:18px;">The BASEDIR environment variable is not defined correc ...
- myeclipse使用maven插件进行maven install时报错check $m2_home environment variable and mvn script match
check $m2_home environment variable and mvn script match 分类: maven2015-09-01 18:06 842人阅读 评论(0) 收藏 举 ...
- 教新手一步步解决:Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to和更新gradle问题
android studio出现问题:Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_O ...
- -Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match.
一, eclipse中使用maven插件的时候,运行run as maven build的时候报错 -Dmaven.multiModuleProjectDirectory system propery ...
- [转]Tomcat----Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
对于使用IDE开发的程序员来讲,并不是所有人都对自己用来吃饭的工具了如指掌.常在阴沟跑,哪能不翻船.为此我把自己使用Tomcat/Eclipse的一些经验教训整理了一下,会陆续的贴出来,也许会帮到和我 ...
- TOMCAT启动时报错:the CATALINA_HOME environment variable is not defined correctly
运行tomcat/bin目录下的startup.bat时报错:the CATALINA_HOME environment variable is not defined correctly 碰到这个问 ...
- Docker 容器中“TERM environment variable not set.”问题解决
在查容器内部资源利用情况时候,发现top命令无法使用,报错“TERM environment variable not set.”.从网上找到了解决方案,如下. [root@localhost ~]# ...
- JRE_HOME environment variable is not defined correctly This environment variableis needed to run this program
已经安装了JDK1.7 和对应JRE 安装了tomcat8 都是解压版 并设置了JAVA_HOME.JRE_HOME 但Tomcat在启动过程中找不到 错误: the JRE_HOME environ ...
随机推荐
- document.readystate
http://www.cnblogs.com/lhb25/archive/2009/07/30/1535420.html http://www.cnblogs.com/haogj/archive/20 ...
- cf B. Petya and Staircases
http://codeforces.com/contest/362/problem/B 先排序,然后判断第一个和最后一个是不是脏的,如果是则输出NO,然后判断其中三个脏的是不是连着的,如果是也输出NO ...
- Cmake编译成静态库
To build OpenCV as static library you need to set BUILD_SHARED_LIBS flag to false/off: cmake -DBUILD ...
- 【转】如何过滤 adb logcat 输出
原文网址:http://www.cnblogs.com/imouto/archive/2012/12/11/filtering-adb-logcat-output.html 简介: 本文介绍如何在 s ...
- join 数据库
早上随手拿了本数据库的书,看到关于join的,想到很久之前妹妹(妹妹离职了,好桑感)发给我的一个简单浅显易懂的关于这方面的网页,所以翻出来瞅瞅,贴出来与大家共享之. http://coolshell. ...
- 第29讲 UI组件之 ListView与 BaseAdapter,SimpleAdapter
第29讲 UI组件之 ListView与 BaseAdapter,SimpleAdapter 1.BaseAdapter BaseAdapter是Android应用程序中经常用到的基础数据适配器,它的 ...
- Java学习之Iterator(迭代器)的一般用法
迭代器(Iterator) 迭代器是一种设计模式,它是一个对象,它可以遍历并选择序列中的对象,而开发人员不需要了解该序列的底层结构.迭代器通常被称为“轻量级”对象,因为创建它的代价小. Java中的I ...
- poj 2100 Graveyard Design(尺取法)
Description King George has recently decided that he would like to have a new design for the royal g ...
- js获取url传递参数(转的,原作不详)
这里是一个获取URL带QUESTRING参数的JAVASCRIPT客户端解决方案,相当于asp的request.querystring,PHP的$_GET 函数: <Script languag ...
- C++类訪问控制及继承
一.C++类的訪问控制有三类:public,protected和private. 类訪问控制符 类成员可被哪些对象訪问 public 1.类的成员函数.2.类对象.3.友元.4.子类成员函数 prot ...