+ Revert request (need to work on it)
This commit is contained in:
parent
27a6be829c
commit
b498c8ee5e
|
@ -87,7 +87,7 @@ sub run {
|
||||||
if (defined($self->{option_results}->{incremental_level})) {
|
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,
|
((max(v$rman_status.start_time) - date '1970-01-01')*24*60*60) as last_time,
|
||||||
v$backup_set_details.incremental_level
|
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
|
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'
|
WHERE operation='BACKUP'
|
||||||
GROUP BY object_type, incremental_level ORDER BY last_time DESC
|
GROUP BY object_type, incremental_level ORDER BY last_time DESC
|
||||||
|
@ -116,7 +116,6 @@ sub run {
|
||||||
next if (defined($already_checked->{$$row[0]}));
|
next if (defined($already_checked->{$$row[0]}));
|
||||||
|
|
||||||
if (defined($self->{option_results}->{incremental_level})) {
|
if (defined($self->{option_results}->{incremental_level})) {
|
||||||
next if (!defined($$row[2])); # skip null incremental
|
|
||||||
# db incr with incremental level 0 = DB FULL
|
# db incr with incremental level 0 = DB FULL
|
||||||
if (/db full/ && $$row[0] =~ /db incr/i && defined($$row[2]) && $$row[2] == 0) { # it's a full. we get
|
if (/db full/ && $$row[0] =~ /db incr/i && defined($$row[2]) && $$row[2] == 0) { # it's a full. we get
|
||||||
$$row[0] = 'DB FULL';
|
$$row[0] = 'DB FULL';
|
||||||
|
|
Loading…
Reference in New Issue