FLASHBACK的一些设置经验
2009-07-28 15:39
337 查看
以下是工作中对database flashback的一些设置经验:
1)Change the initialization Parmeter- init.ora.
db_recovery_file_dest_size=20g
db_recovery_file_dest='/axptpharch/axptphq/flasharea'
DB_FLASHBACK_RETENTION_TARGET=10080
log_archive_dest_1='location=/oradb/arch'
control_file_record_keep_time=14
#
log_archive_format=oradb_arc_%t_%s_%r.arc
and comment out
#log_archive_dest='/oradb/arch'
2)Starting database in flashback Mode:
svr << EOF
spool $spooltofile_temp
shutdown immediate;
startup mount;
alter database flashback off;
drop restore point WMOS_GOLD_COPY;
alter database flashback on;
alter database open;
create restore point WMOS_GOLD_COPY guarantee flashback database;
spool off
3)Flashing back the database to previous image:
svr << EOF
spool $spooltofile_temp
shutdown immediate;
startup mount;
FLASHBACK DATABASE TO RESTORE POINT WMOS_GOLD_COPY;
alter database flashback off;
alter database open resetlogs;
spool off
1)Change the initialization Parmeter- init.ora.
db_recovery_file_dest_size=20g
db_recovery_file_dest='/axptpharch/axptphq/flasharea'
DB_FLASHBACK_RETENTION_TARGET=10080
log_archive_dest_1='location=/oradb/arch'
control_file_record_keep_time=14
#
log_archive_format=oradb_arc_%t_%s_%r.arc
and comment out
#log_archive_dest='/oradb/arch'
2)Starting database in flashback Mode:
svr << EOF
spool $spooltofile_temp
shutdown immediate;
startup mount;
alter database flashback off;
drop restore point WMOS_GOLD_COPY;
alter database flashback on;
alter database open;
create restore point WMOS_GOLD_COPY guarantee flashback database;
spool off
3)Flashing back the database to previous image:
svr << EOF
spool $spooltofile_temp
shutdown immediate;
startup mount;
FLASHBACK DATABASE TO RESTORE POINT WMOS_GOLD_COPY;
alter database flashback off;
alter database open resetlogs;
spool off
相关文章推荐
- 关于jdk和jre环境设置的一些经验共享
- windows server 2008下一些设置技巧及优化经验总结
- plsql一些简单设置和使用经验总结
- Android控件EditText的属性InputType的一些经验及动态设置TYPE_NUMBER_FLAG_DECIMAL无效的原因
- 服务器DIY bios设置的一些经验
- Android控件EditText的属性InputType的一些经验及动态设置TYPE_NUMBER_FLAG_DECIMAL无效的原因
- LIBSVM使用方法及参数设置 主要参考了一些博客以及自己使用经验。
- 设置OPENGL光照的一些经验
- firefox代理服务器,排除地址设置的一些经验
- Oracle SQLPlus 一些使用经验记录(设置环境变量和字符串比较)
- ORACLE迁移中的一些经验(二)批量导出job,并在目标库创建
- 自学 iOS 开发的一些经验
- 纯银:一些产品经验,包括登录、注册、新手引导、布局
- 一些常用的vim设置
- oracle 开发设计一些规范经验
- php一些常规动态设置与获取
- oracle数据库开发的一些经验积累
- 定位免杀NOD32的一些经验
- Ubuntu 12.04 LTS下一些小问题的设置方法
- EDM推广的一些小小经验总结