【问题标题】:RMAN log update in real timeRMAN 日志实时更新
【发布时间】:2018-01-19 13:00:51
【问题描述】:

我在脚本中使用以下代码并以自动方式运行它们

#!/bin/bash
rman "user"/"xxx"d@rman target=/ | tee run1.restore.log

run {
allocate channel ch1;
restore database;
switch datafile all;
recover database;
}

现在的问题是我的日志文件只有在完成还原/恢复后才会更新。我想实时更新日志文件,以便跟踪恢复进度。我也尝试了 RMAN 日志文件功能,但没有成功。

【问题讨论】:

    标签: bash oracle shell rman


    【解决方案1】:

    像这样尝试 rman 的log 参数:

    rman target=user/pwd@dbname log='logpath.log'
    

    或者您可以像这样在 RMAN 提示符中假脱机日志:

    RMAN> SPOOL LOG to 'logpath.log'
    

    【讨论】:

      猜你喜欢
      • 2020-09-18
      • 1970-01-01
      • 2017-07-30
      • 2012-02-17
      • 2019-05-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多