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

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. (Choose two.)
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.tmpfile 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. Shut down 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.
Correct Answer: AE
Section: (none)
Explanation
Explanation/Reference:
Explanation:
* Because temp files cannot be backed up and because no redo is ever generated for them, RMAN never
restores or recovers temp files.
RMAN does track the names of temp files, but only so that it can automatically re-create them when
needed.
* If you use RMAN in a Data Guard environment, then RMAN transparently converts primary control files
to standby control files and vice versa. RMAN automatically updates file names for data files, online redo
logs, standby redo logs, and temp files when you issue RESTORE and RECOVER.

 

您的多租户容器(CDB)包含两个可插拔数据库(PDB)、HR\u PDB和两个帐户都使用CDB表空间。临时文件名为temp01.tmp。

用户对其中一个PDB上的表发出查询,并收到以下错误:

第1行出错:

ORA-01565:识别文件“/u01/app/oracle/oradata/CDB1/temp01.tmp”时出错

ORA-27037:无法获取文件状态

确定纠正错误的两种方法。(选择两个。)

A、 向临时表空间添加一个新的临时文件,并删除产生错误的临时文件。

B、 关闭数据库实例,从备份中还原temp01.tmpfile,然后重新启动数据库。

C、 使临时表空间脱机,通过应用重做日志恢复丢失的临时文件,然后使临时表空间联机。

D、 关闭数据库实例,从备份中恢复临时文件,然后打开具有重置日志的数据库。

E、 关闭数据库实例,然后重新启动CDB和PDB。

正确答案:AE

 

1、每个容器都有属于的自己的temp表空间,PDB不共享CDB的temp表空间,CDB有自己的temp表空间,每个PDB也有自己的tmep表空间

2、当前容器下创建的tempfile只属于当前容器的temp表空间, 也就是说CDB下创建的tempfile只属于CDB,某个PDB创建的tempfile只属于这个PDB自己

3、 当前容器 可以删除CDB和任意PDB的tempfile,也就是说CDB可以删除任意PDB的tempfile,PDB也可以删除CDB和任意PDB的tempfile

4、我们平时所说的temp表空间不做特殊说明就是指共享临时表空间,12.2开始引入了"本地临时表空间"的概念,"本地临时表空间"必须是BIGFILE表空间并且不支持tablespace groups表空间组的形式,几乎很少情况下会用到"本地临时表空间",一般没什么大用,主要用于Oracle Real Application ClustersOr和acle Flex Clusters

5、CDB和任意PDB都可以创建本地临时表空间,创建本地临时表空间和创建普通临时表空间语法上没什么区别,就是TEMPORARY TABLESPACE前面多一个"local",后面多一个"FOR ALL"或"FOR LEAF"

6、临时文件不能被备份并且没有任何redo信息产生,因此RMAN不会还原或恢复临时文件

解释

说明/参考:

说明:

*因为临时文件无法备份,而且从未为它们生成重做,所以RMAN从不还原或恢复临时文件。

RMAN确实跟踪临时文件的名称,但只有这样它才能在需要时自动重新创建临时文件需要。

*如果在数据保护环境中使用RMAN,则RMAN将透明地转换主控制文件备份控制文件,反之亦然。RMAN自动更新数据文件的文件名,在线重做日志、备用重做日志和临时文件。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值