Script:检查数据库当前是否有备份操作在执行中
以下脚本可以用于检测数据库当前是否有备份操作在执行中:
SELECT DECODE(os_backup.backup + rman_backup.backup, 0, 'FALSE', 'TRUE') backup FROM (SELECT COUNT(*) backup FROM gv$backup WHERE status = 'ACTIVE') os_backup, (SELECT COUNT(*) backup FROM gv$session WHERE status = 'ACTIVE' AND client_info like '%rman%') rman_backup /
posted on 2013-03-19 00:48 Oracle和MySQL 阅读(215) 评论(0) 编辑 收藏 举报