没有合适的资源?快使用搜索试试~ 我知道了~
首页Oracle 11g OCP 052:电源中断后实例恢复与重做日志应用
Oracle 11g OCP 052:电源中断后实例恢复与重做日志应用
需积分: 9 2 下载量 109 浏览量
更新于2024-07-19
收藏 2.63MB PDF 举报
Oracle 11g OCP 052 是关于Oracle数据库11g版本的Oracle Certified Professional (OCP)认证考试题目,主要考察数据库管理中的关键概念和技术。本题集关注实例恢复和用户权限管理。 在第一个问题中,Oracle数据库实例异常终止可能因为电源故障,这涉及到实例恢复过程。当实例恢复时,关键的是理解重做日志的作用。正确的选项是C:所有在上次检查点之后的重做日志条目都会从重做日志文件应用到数据文件中。这是因为重做日志负责记录事务的更改,以便在系统故障后恢复数据的一致性。即使在电源中断期间,这些未提交的更改也会被恢复。 第二个问题是关于用户管理。SQL命令`ALTER USER skd ACCOUNT LOCK;`用于锁定用户skd,这意味着该用户将无法登录到数据库实例(选项A正确),并且其拥有的对象将对其他用户不可见,除非这些对象被授予了适当的访问权限(选项B错误,因为SYS用户仍然可以访问,选项C正确,其他用户不能访问)。 总结起来,这部分内容强调了数据库实例的故障恢复机制,即重做日志在数据一致性恢复中的作用,以及用户权限管理中的账户锁定行为对数据库操作的影响。理解这些概念对于准备Oracle 11g OCP 052考试至关重要,因为它们测试了考生对核心数据库管理实践的理解。
资源详情
资源推荐
美河学习在线 www.eimhe.com 仅学习参考
information
D. The data collection for the incident is complete and the incident can be packaged and sent
to Oracle Support
调用意外事件打包服务,该服务可以对收集到的有关某个问题的所有诊断数据进行打
包,可以选择将这些数据上载到 Oracle 技术支持。上载之前可以对数据进行编辑,删
除敏感信息。
Answer: D
答案解析:
使用 Enterprise Manager(OEM) 支持工作台,可以通过执行以下常规步骤来调查、报告
并(在某些情况下)解决问题:
1. 在 Enterprise Manager 的“Database(数据库)”主页上,复查严重错误预警。选择一个
预警查看详细资料。
2. 分析问题详细信息并查看针对问题所记录的所有意外事件的列表。可显示自动运行的所
有健康状况检查的查找结果。
3. (可选)运行附加健康状况检查并调用 SQL Test Case Builder,该程序将收集与 SQL 问
题相关的所有必需数据,且以 Oracle 技术支持能够再现该问题的方式对这些信息进行打包。
4. 使用 My Oracle Support 创建一个服务请求并(可选)随问题信息一起记录服务请求号。
5. 调用意外事件打包服务,该服务可以对收集到的有关某个问题的所有诊断数据进行打包,
可以选择将这些数据上载到 Oracle 技术支持。上载之前能对数据进行编辑,删除敏感信息
6. 可以在支持工作台中维护一份服务请求的活动日志。可运行 Oracle 指导以帮助修复
SQL 故障或损坏的数据。
7. 为一个、一些或所有意外事件设置状态,以便关闭问题。
27.What can you achieve by implementing reverse key index?
通过实现反向键索引可以实现什么?
A. Reverse the bytes of each column indexed including the row ID
B. Store a bitmap for each key value instead of a list of row IDs in the leaf node
C. Prevent contention on the highest leaf block when using sequences to generate keys
使用序列生成密钥时防止最高叶块争用<记住答案>
D. Remove repeated key values from the index to fit more index entries in a given amount of
disk space
Answer: C
28.What is the effect of this command?
SQL> AUDIT DROP ANY TABLE BY scott BY SESSION WHENEVER SUCCESSFUL;
A. One audit record is created for every successful DROP TABLE command executed in the
session of SCOTT
B. One audit record is generated for the session when SCOTT grants the DROP ANY TABLE
privilege to other users
C. One audit record is created for the whole session if user SCOTT successfully drops one or
more tables in his session
美河学习在线 www.eimhe.com 仅学习参考
如果用户 scott 成功地在其会话中删除一个或多个表,则将为整个会话创建一个审核记
录。
D. One audit record is created for every session of any other user in which a table owned by
SCOTT is dropped successfully
E. One audit record is created for every successful DROP TABLE command executed by any
user to drop tables owned by SCOTT
Answer: C
答案解析:
指定审计选项
SQL 语句审计:AUDIT table;
上面显示的语句可审计影响表的任何数据定义语言(DDL) 语句,包括 CREATE TABLE、
DROP TABLE 和 TRUNCATE TABLE 等。
也可按用户名或者按成功或失败来设置 SQL 语句审计的重点:
SQL> AUDIT TABLE BY hr WHENEVER NOT SUCCESSFUL;
系统权限审计:可用来审计行使的任何系统权限(如 DROP ANY TABLE)。可按用户名或
者成功或失败设置审计的重点。
默认情况下,审计设置为 BY ACCESS。
每次行使经审计的系统权限时,都会生成一条审计记录。
可选择使用 BY SESSION 子句将这些记录组成一组,以便每个会话只生成一条记录。
(这样,如果一个用户针对另一个用户的表发出了多条更新语句,则只收集一条审计记录。)
使用 BY SESSION 子句来限制由于审计系统权限而对性能和存储产生的影响。
系统权限审计(非重点和重点):
AUDIT select any table, create any trigger;
AUDIT select any table BY hr BY SESSION;
对象权限审计:可用来审计关于表、视图、过程、序列、目录和用户定义数据类型的操作。
这种审计类型可按成功或失败设置审计的重点,而且可以按会话或访问权限分组。
与系统权限审计不同,默认情况下,对象权限审计按会话分组。
如果要为每个操作分别生成一条审计线索记录,必须显式指定 BY ACCESS。
对象权限审计(非重点和重点):
AUDIT ALL on hr.employees;
AUDIT UPDATE,DELETE on hr.employees BY ACCESS;
29.You executed the following command to perform a backup of the USERS tablespace:
SQL> ALTER TABLESPACE users BEGIN BACKUP;
ALTER TABLESPACE users BEGIN BACKUP
ERROR at line 1:
ORA-01123: cannot start online backup; media recovery not enabled
What could be the reason for this error?
美河学习在线 www.eimhe.com 仅学习参考
A. The MTTR Advisor is disabled.
B. The database is in NOARCHIVELOG mode.
因为数据库此时在非归档模式,无法进行热备
C. The tablespace is already in backup mode.
D. The Flash Recovery Area is not configured.
Answer: B
答案解析:
对数据库进行热备,必须把数据库设置为 archivelog 模式。
如果未处于 archivelog 模式,需 shutdown 数据库,启动到 mount 状态进行修改。
30.Note the points about data dictionary views and dynamic performance views:
注意数据字典视图和动态性能视图的要点:
1. These are stored in the SYSTEM tablespace
2. These are the based on the virtual tables
3. These are owned by the SYS user
4. These can be queried by a normal user only if O7_DICTIONARY_ACCESSIBLILITY parameter is
set to
TRUE
5. The V$FIXED_TABLE view can be queried to list the names of these views
Which statements listed below describe the data dictionary views?
下面列出哪些语句描述的是数据字典视图?
A. 1 and 3
B. 2,3 and 5
C. 1,2, and 5
D. 2,3,4 and 5
Answer: A
答案解析:
1,3.他们都被存在 system 表空间以及 owned 是 sys 用户。<记住答案>
2.动态性能视图以基于数据库服务器内部的内存结构构建的虚拟表为基础。
4.启用数据字典保护使用 O7_DICTIONARY_ACCESSIBILTY 参数设置为 false,则阻止普通用
户访问数据字典。
5.V$FIXED_TABLE 只能查询动能性能视图所有的名称。
31.View the Exhibit to examine the error that occurred during the database startup.
You opened an RMAN session for the database.
美河学习在线 www.eimhe.com 仅学习参考
To repair the failure, you executed the following command as the first RMAN command:
RMAN> REPAIR FAILURE;
Which statement describes the consequence of this command?
执行 RMAN> REPAIR FAILURE;语句结果是什么?
A. The command performs the recovery and closes the failure
B. The command only displays the advice and the RMAN script required for recovery
C. The command executes the RMAN script to repair the failure and remove the entry from
the Automatic
Diagnostic Repository (ADR)
D. The command produces an error because the ADVISE FAILURE command was not
executed before the REPAIR FAILURE command
Answer: D
在试图没有进行 advise failure 命令时使用 repair failure,则报错。
原因为:在 repair failure 之前,要先运行 list failure、再 advise failure,让 rman 列出所要
修复的错误,给出修复的建议,并给出修复的脚本,之后再运行 repair failure 完成修复。
即顺序为:运行 list failure-->advise failure-->repair failure 命令
利用 list failure 命令列出所要修复的错误,利用 advise failure 命令提供修复的建议,利用
repaire failure 命令根据建议恢复错误。
33.You plan to move data from a flat file to a table in your database. You decide to use
SQL*Loader direct path load method to perform this task. The table in which you plan to load
data in an important table having various integrity constraint defined on it.
您计划将数据从文件移动到数据库中的表。你决定使用 SQL*Loader 直接路径加载的方法来
执行这项任务。您计划在重要数据中加载数据的表 表上定义了各种完整性约束。
Which constraints will remain enabled by default during this operation? (Choose all that apply.)
A. CHECK
B. UNIQUE
C. NOT NULL
D. PRIMARY KEY
E. FOREIGN KEY
Answer: BCD
美河学习在线 www.eimhe.com 仅学习参考
35.User A executes the following command to drop a large table in your database:
SQL> DROP TABLE trans;
While the drop table operation is in progress; user B executes the following command on the
same table;
SQL> DELETE FROM trans WHERE tr_type='SL';
Which statement is true regarding the DELETE command?
两个 session 先后对一张大表执行全部删除和部分删除操作,下面哪句正确?
A. It fails to delete the records because the records are locked in the SHARE mode
B. It deletes the rows successfully because the table is locked in the SHARE mod
C. It fails to delete the records because the table is locked in EXCLUSIVE mode
DROP TABLE 的过程在执行,该会话已经获得了 EXCLUSIVE 锁,防止其他 DDL 或者 DML
的操作。
D. It deletes the rows successfully because the table is locked in SHARE ROW EXCLUSIVE
mode
Answer: C
36.In which situation may the UNDO_RETENTION parameter be ignored, even if it is set to a
value?哪种情况下 UNDO_RETENTION 参数有值还会被忽略?
A. When the data file of the undo tablespace is autoextensible
B. When there are more than one undo tablespace available in the database
C. When the undo tablespace is of a fixed size and retention guarantee is not enabled
在固定大小的还原表空间,且没有设置 retention guarantee 强制保留,UNDO_RETENTION 就会被忽略。
D. When the undo tablespace is autoextensible and retention guarantee is not enabled
Answer: C
答案解析:
UNDO_RETENTION 参数指定事务提交后原内容保留多少秒,flashback 闪回利用的就是撤销段
undo_retention 属性的事务提交后仍保留一段时间的特性,在固定大小的还原表空间,且没有设
置 retention guarantee 强制保留,UNDO_RETENTION 就会被忽略。如果设置了 retention
guarantee ,即使是固定大小的表空间,也不会忽略
37.You perform differential incremental level 1 backups of your database on each working day
and level 0 backup on Sunday to tape: 星期天执行 0 增量备份,工作日执行 1 级增量备份
Which two statements are true about differential incremental backups? (Choose two.)
A. The backup performed on Sundays contains all the blocks that have ever been used in the
database 星期天执行的 0 级增量备份会备份所有曾经在此数据库中使用的块。
B. The backup performed on Sundays contains all the blocks that have changed since the last
level 1
backup
C. The backup performed on each working day contains all the blocks that have changed
since the last
level 0 backup
D. The backup performed on Monday contains all the blocks that have changed since the
level 0 backup and every other working day contains all the blocks that have changed since
剩余91页未读,继续阅读
fish5241
- 粉丝: 1
- 资源: 13
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 多模态联合稀疏表示在视频目标跟踪中的应用
- Kubernetes资源管控与Gardener开源软件实践解析
- MPI集群监控与负载平衡策略
- 自动化PHP安全漏洞检测:静态代码分析与数据流方法
- 青苔数据CEO程永:技术生态与阿里云开放创新
- 制造业转型: HyperX引领企业上云策略
- 赵维五分享:航空工业电子采购上云实战与运维策略
- 单片机控制的LED点阵显示屏设计及其实现
- 驻云科技李俊涛:AI驱动的云上服务新趋势与挑战
- 6LoWPAN物联网边界路由器:设计与实现
- 猩便利工程师仲小玉:Terraform云资源管理最佳实践与团队协作
- 类差分度改进的互信息特征选择提升文本分类性能
- VERITAS与阿里云合作的混合云转型与数据保护方案
- 云制造中的生产线仿真模型设计与虚拟化研究
- 汪洋在PostgresChina2018分享:高可用 PostgreSQL 工具与架构设计
- 2018 PostgresChina大会:阿里云时空引擎Ganos在PostgreSQL中的创新应用与多模型存储
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功