检查数据库当前是否有备份操作在执行中
发布网友
发布时间:2022-04-08 06:56
我来回答
共1个回答
热心网友
时间:2022-04-08 08:25
要分单实例还是rac 数据库这两种情况
sys@RAC> SELECT DECODE(os_backup.backup + rman_backup.backup, 0, 'FALSE', 'TRUE') backup
2 FROM (SELECT COUNT(*) backup FROM gv$backup WHERE status = 'ACTIVE') os_backup,
3 (SELECT COUNT(*) backup
4 FROM gv$session
5 WHERE status = 'ACTIVE'
6 AND client_info like '%rman%') rman_backup
7 /
BACKU
-----
TRUE