考试科目:1Z0-082
考试题量:90
通过分数:60%
考试时间:150min
本文为云贝教育郭一军(微信:guoyJoe)原创,请尊重知识产权,转发请注明出处,不接受任何抄袭、演绎和未经注明出处的转载。
44. While one of your databases was in mount state, the datafiles were renamed because they had been moved to a new file system
The database was then opened
Which two statements are true?
A.DBA_DATA_FILES displays both the new name and the old name for the data files
B.DBA_DATA_FILES displays the original name for the data files
C.V$DATAEILE displays the new names for the data files
D.DBA_DATA_FILES must be resynchronized manually with the control file in order to have it display the new file names
E.DBA_DATA_FILES displays the new name for the data files
参考答案:CE
解析:题目描述的是在mount状态修改了数据文件的名称,然后再open,进行查询各个视图,下面提供测试脚本,都会显示new name
A:错
B:错
C:对
D:错,不需要手动同步控制文件
E:对
drop tablespace apps_data_tablespace_test including contents and datafiles;
--1.创建表空间
create tablespace apps_data_tablespace_test
datafile '/usr/local/oracle19c/oradata/ORCL/APPS_DATA_TABLESPACE_TEST.dbf'
size 20m
--2.重启,使得表空间位于mount状态
SQL> startup mount
--3复制文件
cp /usr/local/oracle19c/oradata/ORCL/APPS_DATA_TABLESPACE_TEST.dbf /usr/local/oracle19c/oradata/ORCL/APPS_DATA_TABLESPACE_TEST1.dbf
--4.重命名数据文件
alter tablespace apps_data_tablespace_test rename datafile
'/usr/local/oracle19c/oradata/ORCL/APPS_DATA_TABLESPACE_TEST.dbf' to
'/usr/local/oracle19c/oradata/ORCL/APPS_DATA_TABLESPACE_TEST1.dbf';--必须open数据库才能修改,所以使用5进行修改
--5.执行重命名
alter database rename file
'/usr/local/oracle19c/oradata/ORCL/APPS_DATA_TABLESPACE_TEST.dbf' to
'/usr/local/oracle19c/oradata/ORCL/APPS_DATA_TABLESPACE_TEST1.dbf';
--6.open
alter database open;
--7.查询
select * from dba_data_files d where d.TABLESPACE_NAME='APPS_DATA_TABLESPACE_TEST';
select d.NAME from v$datafile d
Oracle 19c OCP 考试为理论考试,需通过两门考试才能拿到“Oracle 19c OCP证书”。
Oracle 19c OCP 1z0-082考试详情
Oracle 19c OCP 1z0-083考试详情
Oracle 19c OCP证书如下 线下考试在提交培训记录后,需要一周的时间才可以获取到证书,线上考试在通过考试的一小时后可以获取证书。
云贝教育有专业的Oracle 19c OCP专家认证培训,想快速通过考试的同学可以扫码联系老师咨询(点击文字转跳至Oracle 19c OCP课程大纲)