Find which media tapes have the latest backup
                                                 Last update (2011-05-20 15:19:43)
                                                                                                                   Date added (2011-05-20 14:52:49)

Summary
You can find which media tapes have the latest RMAN backup with the following query:
SELECT RECID, STAMP, SET_STAMP, SET_COUNT, PIECE#, DEVICE_TYPE, HANDLE, MEDIA, 
STATUS, DELETED, START_TIME,  COMPLETION_TIME, BYTES
FROM GV$BACKUP_PIECE 
WHERE HANDLE LIKE '%ORACLE_ONLINE_SID%'
AND TRUNC(START_TIME) > TRUNC(SYSDATE-6) 
ORDER BY START_TIME DESC;
Where SID is the database SID, for example A7

To find the distinct tapes use:
SELECT DISTINCT(MEDIA) FROM GV$BACKUP_PIECE 
WHERE HANDLE LIKE 'ORACLE%A7%'
AND TRUNC(START_TIME) > TRUNC(SYSDATE-7);

MEDIA
-------------
VT1145
VT2059
Note: There are also and the archivelog backups (where HANDLE LIKE '%ORACLE_ARCHIVELOGS%' )
Reviews
Categories
Oracle DBA-> (147)
  Alertlog (3)
  Archivelog (5)
  Auditing (1)
  Backup - Recovery (19)
  Database files (6)
  Database options (2)
  DB links (2)
  Dependencies (1)
  Dictionary (2)
  Exp-Imp Datapump (6)
  Jobs (2)
  Mview (2)
  Networking (3)
  Objects (7)
  Parameters (2)
  Redologs (6)
  Roles - Grants (2)
  Rollback - Undo (8)
  Segments (3)
  Sequences (2)
  Sessions (14)
  SGA (14)
  Tables (10)
  Tablespaces (10)
  Temp (4)
  Toad (5)
  Transactions (1)
  Upgrade (2)
  Users (3)
Oracle APPS DBA-> (66)
Exadata (1)
Performance Tuning-> (59)
Oracle Real Cases (24)
Oracle Errors (23)
Oracle SQL tricks (32)
Oracle RAC (3)
Oracle Security (8)
Filters
Search