设为首页 收藏本站
查看: 1324|回复: 0

[经验分享] oracle: ocp题解与实验(12 & 13/205)

[复制链接]

尚未签到

发表于 2015-11-8 12:33:03 | 显示全部楼层 |阅读模式
  题目:

12. You are working on an Oracle Database 10g database. You enabled the Flashback
Database feature. Which two statements regarding flashback logs are true? (Choose two.)
A. Flashback logs are not archived.
B. Flashback logs are maintained in redo log files.
C. Flashback logs are maintained in the Flash Recovery Area.
D. Flashback logs are used to maintain Flashback Database related errors.
E. Flashback logs need to be cleared manually after you disable Flashback Database.
Answer: A, C
  题目翻译:oracle 10g,你开启了flashback database功能,哪两个句子描述flashback logs是正确的?
  答案解释:关于flashback database的概念,需要看下文档,上面的选项在文档都有描述:
   About Flashback Database
  Oracle Flashback Database, accessible from both RMAN (by means of the FLASHBACK
DATABASE command) and SQL*Plus (by means of the FLASHBACK
DATABASE statement), lets you quickly recover the entire database from logical data corruptions or user errors.
  It is similar to conventional point in time recovery in its effects, allowing you to return a database to its state at a time in the recent past. Flashback Database is, however, much faster than point-in-time recovery, because it does not require restoring
datafiles from backup and it requires applying fewer changes from the archived redo logs.
  Flashback Database can be used to reverse most unwanted changes to a database, as long as the datafiles are intact. This includes returning a database to its state in previous incarnations, that is, undoing the effects of an
OPEN RESETLOGS operation.
  Flashback Database uses its own logging mechanism,
creating flashback logs which are stored in the flash recovery area
. You can only use Flashback Database if flashback logs are available. Therefore, you must set up your database in advance to create flashback logs if you want
to take advantage of this feature.
  To enable Flashback Database, you set up a flash recovery area, and set a
flashback retention target, to specify how far back into the past you want to be able to restore your database with Flashback Database.

  From that time on, at regular intervals, the database copies images of each altered block in every datafile into the flashback logs. These block images can later be reused to reconstruct the datafile contents as of any moment at which logs were captured.
  When a database is restored to its state at some past target time using Flashback Database, each block changed since that time is restored from the copy of the block in the flashback logs most immediately prior to the desired target time. The redo log is
then used to re-apply changes since the time that block was copied to the flashback logs.
  在OCP培训官方教材中有:
  EXAM TIP Unlike redo logs, the flashback logs cannot be multiplexed and are not archived. They are created and managed automatically.
  从上面的红字描述上可以容易判断AC是正确的,其他都是错误的;
  *************************************************************************************************************************
  题目:

13.You executed the following query:
SELECT operation, undo_sql, table_name FROM flashback_transaction_query;
Which statement is correct regarding the query output?
A. It would return information regarding only the last committed transaction.
B. It would return only the active transactions in all the undo segments in the database.
C. It would return only the committed transactions in all the undo segments in the database.
D. It would return both active and committed transactions in all the undo segments in the database.
E. It would return information regarding the transactions that began and were committed in the last 30 minutes.
Answer: D
  答案解释:关于flashback transaction query的,继续看文档说明吧:
  Flashback Transaction Query

Flashback Table Query and Flashback Versions Query use undo data for an object.Flashback Transaction Query analyzes the undo by a different dimension: it will

retrieve all the undo data for a transaction, no matter how many objects it affects.The critical view is FLASHBACK_TRANSACATION_QUERY。

A one-line SQL statement might generate many rows in FLASHBACK_TRANSACTION_QUERY. This is because SQL is a set-oriented language:
one statement can affect many

rows. But each row affected will have its own row in the view
.
The view will show committed transactions and also transactions in progress
. For an active transaction, the COMMIT_SCN and COMMIT_TIMESTAMP columns are NULL. Rolled-back transactions are not displayed.

红字就是描述的选项D,flashback一些列的功能其实就是基于undo数据段扩展的很多功能,所有的信息都在undo数据段里存放着,只不过通过flashback工具命令做了一些恢复的事情,或是该题目中的查询分析;
版权声明:本文为博主原创文章,未经博主允许不得转载。

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-136591-1-1.html 上篇帖子: ocp原厂培训笔记(第八天) 下篇帖子: 备考ocp_ORACLE专题之网络
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表