Oracle 数据库 RMAN 备份
Oracle DB RMAN backup
我每周在我的数据库中进行一次完整备份,我需要的是一个脚本,它首先验证新备份是否有效,然后删除旧备份
我这样做是为了在我的文件系统上保存 space
Oracle 数据库版本 = 12c
在初始 RMAN 脚本中附加此检查
rman> crosscheck backup;
rman> crosscheck copy;
rman> delete noprompt expired backupset;
# Compress backup to reduce space (lab/test is ok, prod have to pay for license)
CONFIGURE COMPRESSION ALGORITHM 'HIGH' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD FALSE;
...
# database backup takes place here!
...
在当前 RMAN 脚本的末尾追加此删除内容
rman> configure retention policy to redundancy 1;
rman> crosscheck backup;
rman> crosscheck copy;
rman> delete noprompt obsolete;
我每周在我的数据库中进行一次完整备份,我需要的是一个脚本,它首先验证新备份是否有效,然后删除旧备份 我这样做是为了在我的文件系统上保存 space Oracle 数据库版本 = 12c
在初始 RMAN 脚本中附加此检查
rman> crosscheck backup;
rman> crosscheck copy;
rman> delete noprompt expired backupset;
# Compress backup to reduce space (lab/test is ok, prod have to pay for license)
CONFIGURE COMPRESSION ALGORITHM 'HIGH' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD FALSE;
...
# database backup takes place here!
...
在当前 RMAN 脚本的末尾追加此删除内容
rman> configure retention policy to redundancy 1;
rman> crosscheck backup;
rman> crosscheck copy;
rman> delete noprompt obsolete;