12c OCP题库解析060-1 多租户环境下的临时表空间数据文件丢失

Your multitenant container (CDB) contains two pluggable databases (PDB), HR_PDB and ACCOUNTS_PDB, both of which use the CDB tablespace. The temp file is called temp01.tmp.

A user issues a query on a table on one of the PDBs and receives the following error:

ERROR at line 1:

ORA-01565: error in identifying file ‘/u01/app/oracle/oradata/CDB1/temp01.tmp’

ORA-27037: unable to obtain file status

Identify two ways to rectify the error.


A. Add a new temp file to the temporary tablespace and drop the temp file that that produced the error.

B. Shut down the database instance, restore the temp01.tmp file from the backup, and then restart the database.

C. Take the temporary tablespace offline, recover the missing temp file by applying redo logs, and then bring the temporary tablespace online.

D. Shutdown the database instance, restore and recover the temp file from the backup, and then open the database with RESETLOGS.

E. Shut down the database instance and then restart the CDB and PDBs.

 

【题意简述】

考察了多租户环境下的临时表空间数据文件丢失的处理方法。

容器数据库CDB包含两个PDB,HR_PDB 和ACCOUNTS_PDB,二者都使用CDB的表空间。其中,临时文件名称为temp01.tmp。

一个用户在其中一个PDB上针对一个表执行了查询语句,收到报错信息,选出两种方法来解决这个报错。

【考点分析】

1.       容器数据库CDB和可插拔数据库PDB是Oracle 12c的新特性。在CDB中最高层container被称为CDB$ROOT;用来创建其他PDB的模板PDB被称为PDB$SEED;CDB中可以用PDB$SEED创建多个PDB。

2.       从物理结构上来说,CDB和PDB的关系如下:

l  PDB没有独自的控制文件和重做日志文件

l  整个CDB只有一个UNDO表空间,PDB没有独自的UNDO表空间

l  CDB和每个PDB都有各自的SYSTEM和SYSAUX表空间

l  PDB可以有自己的临时表空间

3.       临时文件不能被备份并且没有任何redo信息产生,因此RMAN不会还原或恢复临时文件。但是,RMAN会追踪临时文件,确保在必要的时候可以自动重建临时文件。

【答案剖析】

A:正确,临时表空间中的数据文件丢失,可以采用向临时表空间中添加新的数据文件,并把丢失的文件drop掉的方法处理。

B:错误,临时文件中存在的数据都是临时数据,而非永久数据,因此无需进行还原和恢复,并且RMAN也不对临时文件进行备份。

C:错误,临时文件可以进行offline操作,但临时文件不能recover。

D:错误,临时文件中存在的数据都是临时数据,而非永久数据,因此无需进行还原和恢复。

E:正确,如果临时表空间中的文件丢失,重启数据库实例时,会自动创建丢失的临时文件。




~~~~~~~ the end~~~~~~~~~
hoegh
2016.05.10

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/30162081/viewspace-2097009/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/30162081/viewspace-2097009/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值