+ Change oracle backup age request
This commit is contained in:
parent
2c4019306c
commit
cdb24e8744
|
@ -85,13 +85,12 @@ sub run {
|
|||
$self->{sql}->connect();
|
||||
my $query;
|
||||
if (defined($self->{option_results}->{incremental_level})) {
|
||||
$query = q{SELECT v$rman_status.object_type,
|
||||
$query = q{SELECT v$rman_status.object_type,
|
||||
((max(v$rman_status.start_time) - date '1970-01-01')*24*60*60) as last_time,
|
||||
NVL(v$backup_set_details.incremental_level, 0)
|
||||
FROM v$rman_status LEFT JOIN v$backup_set_details ON v$rman_status.session_recid = v$backup_set_details.session_recid
|
||||
WHERE operation='BACKUP'
|
||||
GROUP BY object_type, incremental_level ORDER BY last_time DESC
|
||||
};
|
||||
v$backup_set_details.incremental_level,
|
||||
FROM v$rman_status LEFT JOIN v$backup_set_details ON v$rman_status.session_stamp = v$backup_set_details.session_stamp
|
||||
WHERE operation='BACKUP' and v$backup_set_details.incremental_level is not Null
|
||||
GROUP BY object_type, incremental_level};
|
||||
} else {
|
||||
$query = q{SELECT object_type,
|
||||
((max(start_time) - date '1970-01-01')*24*60*60) as last_time
|
||||
|
|
Loading…
Reference in New Issue