通过em调用rman执行备份,自动生成的脚本
- backup device type disk tag '%tag' database;
- backup device type disk tag '%tag' archivelog all not backed up delete all input;
- run {
- allocate channel oem_backup_disk1 type disk format '%u' maxpiecesize 1000 g;
- backup tag '%tag' current controlfile;
- release channel oem_backup_disk1;
- }
- allocate channel for maintenance type disk;
- delete noprompt obsolete device type disk;
- release channel;
查看备份信息,通过sql_trace=true 抓取到的脚本
- select b.session_key, b.session_recid, b.session_stamp, b.command_id,
- b.status, b.start_time, b.time_taken_display, b.input_type,
- b.output_device_type, b.input_bytes_display, b.output_bytes_display,
- b.output_bytes_per_sec_display
- from
- v$rman_backup_job_details b where ( b.start_time > (sysdate - 30) ) order
- by b.start_time
结果如下图所示:
阅读(2218) | 评论(0) | 转发(0) |