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 ...
随机推荐
- Android 不通过parent实现样式继承
1:styles.xml文件内容如下: <!-- TextView Style --> <style name="tvStyle"> <item na ...
- Powershell 条件操作符
Powershell 中的比较运算符-eq :等于-ne :不等于-gt :大于-ge :大于等于-lt :小于-le :小于等于-contains :包含-notcontains :不包含 进行比较 ...
- linux网络配置相关文件
网络接口(interface)是网络硬件设备在操作系统中的表示方法,比如网卡在Linux操作系统中用ethX,是由0开始的正整数,比如eth0.eth1...... ethX.而普通猫和ADSL的接口 ...
- Java Access Levels(访问控制)
Access Levels Modifier Class Package Subclass World public Y Y Y Y protected Y Y Y N no modifier Y Y ...
- c语言结构体3之结构体嵌套
注意: 1结构体内部再次定义一个结构体 但是没有创建结构体的实例 也就是说再次定义的结构体内部的变量会被当做母结构体的成员变量 struct tianchao { int data; ]; stru ...
- eclipse中使用git提交代码到github
这里假设你已经拥有了github账号,建好了带提交的eclipse工程,进行了本地git的提交.本文只介绍在eclipse通过git插件将代码push到github 1.登录github新建repos ...
- startActivity与startActivityForResult的使用小结
1.在一个Activity中想要启动进入另一个Activity时,通常我们使用startActivity这个方法来实现,代码如下: 其中MainActivity为源activity,ActivityL ...
- WebView使用
WebView是View的一个子类,可以让你在activity中显示网页. 可以在布局文件中写入WebView:比如下面这个写了一个填满整个屏幕的WebView: <?xml version=& ...
- js将日期格式的时候转换成时间搓
自己写的一个方法 function split_time(time){//将当前时间转换成时间搓 例如2013-09-11 12:12:12 var arr=time.split(" ...
- Android中Service类onStartCommand
Android开发的过程中,每次调用startService(Intent)的时候,都会调用该Service对象的onStartCommand(Intent,int,int)方法,然后在onStart ...