Quick Search:
CODE
Oracle PL/SQL Code Library
JOBS
Find Or Post Oracle Jobs
FORUM
Oracle Discussion & Chat
 Oracle PL/SQL: RMAN: List the most recent Level 0 backups Jump to:  
Category: >> Oracle PL/SQL >> RMAN: List the most recent Level 0 backups Bookmark and Share

<< lastnext >>

Snippet Name: RMAN: List the most recent Level 0 backups

Description: The RMAN report and list commands aren't very user-friendly if you are looking for something specific. For example, if you want a list of the most recent Level 0 backups in a database, you can devise a more specific query if you go into the database and use the v$backup_datafile view, as shown in this example.


Thanks to Lisa T. for sharing this code.

Also see:
» RMAN: List the most recent Level 0 bac...
» RMAN: Format Directives
» RMAN: Command Summary
» RMAN: Data Dictionary Objects
» RMAN (Oracle Recovery Manager)

Comment: (none)

Language: PL/SQL
Highlight Mode: PLSQL
Last Modified: March 13th, 2009

SELECT DISTINCT TO_CHAR((b.CHECKPOINT_TIME), &#39;YYYY-MM-DD HH:MI.SS&#39;) t<br>
FROM v$backup_datafile b, v$tablespace ts, v$datafile f<br>
WHERE b.incremental_level = 0<br>
  AND INCLUDED_IN_DATABASE_BACKUP=&#39;YES&#39;<br>
  AND f.file#=b.file#<br>
  AND f.ts#=ts.ts#<br>
GROUP BY b.checkpoint_time<br>
ORDER BY 1;<br>
 


Free
Oracle Magazine
Subscriptions
and Oracle White Papers


SQL University.net courses meet the most demanding needs of the business world for advanced education in a cost-effective manner. SQL University.net courses are available immediately for IT professionals and can be taken without disruption of your workplace schedule or processes.

Compared to traditional travel-based training, SQL University.net saves time and valuable corporate resources, allowing companies to do more with less. That's our mission, and that's what we deliver.

Click here to find out more
 
Home      :      Code Library      :      Sponsors      :      Privacy      :      Terms of Use      :      Contact Us 144 users online    © 2009 psoug.org

PSOUG LOGIN
Username: 
Password: 
Forgot your password?