Archive destination +DATADG
Oldest online log sequence 41
Next log sequence to archive 43
Current log sequence 43
3、打开强制归档
alter database force logging;
select force_logging, supplemental_log_data_min from v$database;
FORCE_LOGGING SUPPLEME
--------------------------------------- --------
YES YES
4、设置归档路径
ASM
alter system set log_archive_dest_1= 'location=+datadg' scope=both sid='*';
文件系统
alter system set log_archive_dest_1='location=/arch' scope=both sid='*
show parameter log_archive_dest_1
NAME TYPE VALUE
------------------------------------ -----------
------------------------------
log_archive_dest_1 string location=+datadg
log_archive_dest_10 string
log_archive_dest_11 string
log_archive_dest_12 string
log_archive_dest_13 string
log_archive_dest_14 string
log_archive_dest_15 string
log_archive_dest_16 string
log_archive_dest_17 string
log_archive_dest_18 string
log_archive_dest_19 string
5、rman 备份
run{
allocate channel c1 device type disk;
allocate channel c2 device type disk;
allocate channel c3 device type disk;
backup as backupset filesperset 2 database format '/orabak/rman/database_%T_%s_
%d_%p'
skip inaccessible;
sql 'alter system archive log current';
sql 'alter system archive log current';
sql 'alter system archive log current';
sql 'alter system archive log current';
backup archivelog all format '/orabak/rman/arch_%d_%T_%s_%p' delete all input;
backup spfile format '/orabak/rman/spfile_%d_%T_%s_%p';
backup current controlfile format '/orabak/rman/contl_%d_%T_%s_%p';
}
6、scp 传输给 19C 服务器
scp 18Cbak.tar.gz oracle@192.168.100.98:/orabak/rman
文档被以下合辑收录
评论