oracle flashback database,Flashback Database
在Flashback Database中创建基于guarantee的restore point,是可以进行快速备份和恢复的方法。这对于RAT中的播放之后的数据库恢复特别有用!
下面的notes详细描述了创建和恢复restore的过程:
Restore point:
Restore point is nothing but a name associated with a timestamp or an SCN of the database. One can create either a normal restore point or a guaranteed restore point. The difference between the two is that guaranteed restore point allows you to flashback to the restore point regardless of the DB_FLASHBACK_RETENTION_TARGET initialization parameter i.e. it is always available (assuming you have enough space in the flash recovery area).
NOTE: In this article Flashback logging was not turned ON.
Guaranteed Restore point:
Prerequisites: Creating a guaranteed restore point requires the following prerequisites:
The user must have the SYSDBA system privileges
Must have created a flash recovery area
The database must be in ARCHIVELOG mode
Create a guaranteed restore point:
After you have created or migrated a fresh database, first thing to do is to create a guaranteed restore point so you can flashback to it each time before you start a new workload. The steps are as under:
$> su – oracle
$> sqlplus / as sysdba;
Find out if ARCHIVELOG is enabled
SQL> select log_mode from v$database;
If step 3 shows that ARCHIVELOG is not enabled then continue else skip to step 8 below.
SQL> shutdown immediate;
SQL> startup mount;
SQL> alter database archivelog;
SQL> alter database open;
SQL> create restore point CLEAN_DB guarantee flashback database;
where CLEAN_DB is the name given to the guaranteed restore point.
Viewing the guaranteed restore point
SQL> select * from v$restore_point;
Verify the information about the newly created restore point. Also, note down the SCN# for reference and we will refer to it as “reference SCN#”
Flashback to the guaranteed restore point
Now, in order to restore your database to the guaranteed restore point, follow the steps below:
$> su – oracle
$> sqlplus / as sysdba;
SQL> select current_scn from v$database;
SQL> shutdown immediate;
SQL> startup mount;
SQL> select * from v$restore_point;
SQL> flashback database to restore point CLEAN_DB;
SQL> alter database open resetlogs;
SQL> select current_scn from v$database;
Compare the SCN# from step 9 above to the reference SCN#.
NOTE: The SCN# from step 9 above may not necessarily be the exact SCN# as the reference SCN# but it will be close enough.
oracle flashback database,Flashback Database相关推荐
- oracle flashback database,flashback database 使用及注意事项
适用版本:10.2+(9i+可能也适用) 读者阅读前提: 1. 知道flashback 2. 知道oracle 的启动模式和基本系统视图 v$database中的flashback_on Oracle ...
- 【Flashback】Flashback Database闪回数据库功能实践
[Flashback]Flashback Database闪回数据库功能实践 上一篇 / 下一篇 2012-04-07 21:16:40 / 个人分类:备份与恢复 查看( 278 ) / 评论( 2 ...
- Oracle Flashback之Flashback table和flashback drop
在Oracle 10g中, Flash back家族分为以下成员: Flashback Database Flashback Drop Flashback Table Flashback Query( ...
- Oracle回收站及flashback drop
Oracle回收站及flashback drop 一.1 BLOG文档结构图 一.2 前言部分 一.2.1 导读和注意事项 各位技术爱好者,看完本文后,你可以掌握如下的技能,也可以学到一些其它你 ...
- Oracle回收站及flashback drop(上)
Oracle回收站及flashback drop(上) 一.1 BLOG文档结构图 Oracle回收站及flashback drop - 3 - 1.1 BLOG文档结构图 - 3 - 1.2 前言 ...
- oracle 10g delete flashback,10g新特性,flashback系列 来自piner
一 Flashback database falshback database是采用日志 falsgback drop是采用表空间的空间 其它的都是与undo有关... fashback是我对10g一 ...
- Oracle 10g新增DROP DATABASE命令
在10g以前,要彻底删除数据库,只有两个方法,一个是利用DBCA图形化工具删除数据库,另外一个就是关闭数据库后,手工删除数据文件.控制文件以及日志文件的方法. 从10g开始,Oracle提供了DROP ...
- oracle提交数据按键,Oracle PLSQL - 仅提交数据库链接(Oracle PLSQL - Commit only database link)...
Oracle PLSQL - 仅提交数据库链接(Oracle PLSQL - Commit only database link) 有没有办法只通过数据库链接而不是当前会话的数据提交在表上插入/更新的 ...
- (转)RMAN-06004: 恢复目录数据库发生 ORACLE 错误: RMAN-20005: target database name is ambiguous
RMAN-06004: 恢复目录数据库发生 ORACLE 错误: RMAN-20005: target database name is ambiguous 数据库名称相同,并且都进行过rman,no ...
- oracle datafile offline,alter database datafile offline drop 与 alter ...
以前整理的: Oracle表空间基本操作 这篇Blog里真的是最基本的操作.其实今天写的内容,也可以放到那里面去.但是还是打算分开来讲.引起一个重视吧. 1. alter database dataf ...
最新文章
- 10g 中RETENTION GUARANTEE 的作用
- 类和对象—对象特性—构造函数和析构函数
- java中system.out.println()是什么意思【笔记自用】
- C++ Strings(字符串)
- excel图表交互联动_深入讲解EasyShu图表与引用数据动态联动功能
- html左滑效果图,前端福利——左滑右滑,绝对是你见过的最简单的写法 - 你猜猜看...
- ArcGIS 导出点图层的中的XY坐标
- 编程算法 - 最小的k个数 红黑树 代码(C++)
- 五分钟使用WebStack构建个人网址导航
- 一些好看的渐变色(配色)网站推荐
- 攻防世界web练习区
- red5 1.0.7 集成tomcat 并且 进行整合 官方例子oflaDemo
- 计算机进去bios方式,bios怎么轻松进入?电脑进入bios方法大全
- html5手机网站需要加的那些meta标签,手机网站自适应
- 【读书随记】周末充电,学习Java更轻松(文末送书)
- Redis 性能优化 13 条军规
- RabbitMq应用
- 一个屌丝程序猿的人生(一百零五)
- 科罗拉多大学波尔得分校计算机科学,科罗拉多大学波尔得分校计算机工程专业排名第34(2020年USNEWS美国排名)...
- Trance音乐风格的分类
热门文章
- 【python ACM 输入输出的处理:sys.stdin.readline().strip().split())】
- C语言与MYSQL数据库的连接
- C++-inserter
- 【机器学习系列】机器学习简介
- mysql 刷新_MYSQL FLUSH 刷新缓存
- 基于Matlab神经网络语音情感识别系统
- Linux改变文件的所有组和所有者命令
- Spring Boot 第三篇:理解 spring-boot-starter-parent
- [解锁新姿势] 优化参数前置校验
- 映射网络驱动器硬盘显示错误