【发布时间】:2019-07-01 06:30:00
【问题描述】:
我一直在尝试实现 .sh 文件,该文件打开 RMAN 提示并显示上次数据库备份的备份摘要。
脚本
[apex@idmhost ~]$ cat b1.sh
ls
rman target / catalog rman/rman123@apexdb
list backup summary;
输出
sh b1.sh
0 db.rsp Music script_bkp.sh Templates
apache.env Desktop Pictures scripts test
apexdb.env Documents Public sendattatch.py Videos
b1.sh Downloads rman_backup.sh Softwares
Recovery Manager: Release 12.1.0.2.0 - Production on Thu Feb 7 12:50:06 2019
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
connected to target database: APEXDB (DBID=2757487913)
connected to recovery catalog database
RMAN>
如您所见,它正在执行该 linux 命令并连接到 RMAN。但是第三个没有被执行。卡在哪里了?
【问题讨论】:
标签: linux oracle shell database-backups rman