前期参数设置部分忽略,可参考其它文章介绍。1、从主库创建备库控制文件备份backup current controlfile for standby format '/home/oracle/standby_controlfile.bak';2、备份主库run{ allocate channel ch1 type disk;allocate channel ch2 type disk;
11.2.0.3数据库环境,使用rman进行归档日志备份,想实现: (1)每天备份归档日志,备份完并不删除归档日志 (2)归档日志备份成功一次之后,下次再备份的时候rman就自动不会再次备份这个归档日志 这个需求可以通过 backup archivelog all not backed up; 语法来实现。 使用该命令如果遇到 满足 not backed up xx times 的归档才会备
把home/oracle下的.bash_profile修改为,$ORACLE_HOME/bin在先,$PATH:$HOME/bin在后,文件内容如下: # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific enviro
RMAN> startup nomount; RMAN> sql 'alter session set nls_date_format=''yyyy-mm-dd hh24:mi:ss''";--因为rman默认以环境变量来读取时间格式,与sqlplus的固定格式不同,所以,此处要设定时间格式变量。RMAN> restore controlfile from autobackup until ti