User Tools

Site Tools


bits

This is an old revision of the document!


Clean up RMAN catalog

Query to find the oldest records in the catalog. Nothing should be more than a day older than the control_file_record_keep_time parameter.

set lines 1000
select db_name
,      input_type
,      min(start_time)
from   rc_rman_backup_job_details
where  1=1
group  by db_name
,      input_type
order  by 3
/

Export a subset (sample) of database rows using a package and datapump

Using straight data pump to export a sample does not take referential constraints into account.
Using this method will fix that oversight.
http://www.dba-oracle.com/t_data_pump_export_rows_subset.htm

bits.1554113016.txt.gz · Last modified: 2019/04/01 10:03 by stuart

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki