共计 860 个字符,预计需要花费 3 分钟才能阅读完成。
1、一个 RMAN 备份脚本报错信息
Do you really want to delete the above objects (enter YES or NO)?
Do you really want to delete the above objects (enter YES or NO)? “exit;” is an invalid response – please re-enter.
Do you really want to delete the above objects (enter YES or NO)?
Error occurred getting response – assuming NO response
released channel: c1
released channel: c2
released channel: c3
上面错误信息:Error occurred getting response – assuming NO response
2、原因分析
(1)检查脚本代码:
发现脚本代码中有一段:
delete archivelog all completed before ‘sysdate-0.005’;
(1)执行上面 delete archivelog 脚本时,给出提问选择信息:Do you really want to delete the above objects (enter YES or NO)?
(2)由于执行的是脚本代码,无法人工参与输入提问的选择值,所以报出“没有得到响应”的错误“Error occurred getting response – assuming NO response”
3、解决方法
修改脚本代码,加入 noprompt 关键字,即“不提示提问”,修改后代码如下:
delete noprompt archivelog all completed before ‘sysdate-0.005’;
更多 Oracle 相关信息见 Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12
本文永久更新链接地址 :http://www.linuxidc.com/Linux/2017-01/139920.htm