24.Which two statements correctly describe the relation between a data file and the logical database
来源:互联网 发布:今日财经数据 编辑:程序博客网 时间:2024/05/23 23:48
structures? (Choose two.)
A.An extent cannot spread across data files.
B.A segment cannot spread across data files.
C.A data file can belong to only one tablespace.
D.A data file can have only one segment created in it.
E.A data block can spread across multiple data files as it can consist of multiple operating system (OS)
blocks.
答案:AC
解析:
参考:http://docs.oracle.com/cd/E11882_01/server.112/e40540/logical.htm#CNCPT303
1 select a.FILE_NAME,count(*) from dba_data_files a,dba_segments b
2 where a.TABLESPACE_NAME=b.tablespace_name and a.tablespace_name='USERS'
3* group by a.file_name
SQL> /
FILE_NAME COUNT(*)
---------------------------------------- ----------
/u01/oracle/oradata/wahaha3/users01.dbf 43
一个数据文件有43个segment,排除D
一个数据文件可以包括多个segment,一个segment可以有多个extent,一个extent可以有多个oracle block,一个block可以有多个os block,排除E
下面这句,说明A正确
By default, the database allocates an initial extent for a data segment when the segment is created. An extent is always contained in one data file.
Although no data has been added to the segment, the data blocks in the initial extent are reserved for this segment exclusively.
--这里验证一下B
SQL> create tablespace tt datafile '/home/oracle/tt.dbf' size 2m;
Tablespace created.
SQL> create table ts (a char(1000)) tablespace tt;
Table created.
SQL> begin
2 for i in 1..10000 loop
3 insert into ts values(i);
4 commit;
5 end loop;
6 end;
7 /
begin
*
ERROR at line 1:
ORA-01653: unable to extend table SYS.TS by 128 in tablespace TT
ORA-06512: at line 3
SQL> select count(*) from ts;
COUNT(*)
----------
826
SQL> alter tablespace tt add datafile '/home/oracle/tt01.dbf' size 2m;
Tablespace altered.
SQL> begin
2 for i in 1..10000 loop
3 insert into ts values(i);
4 commit;
5 end loop;
6 end;
7 /
begin
*
ERROR at line 1:
ORA-01653: unable to extend table SYS.TS by 128 in tablespace TT
ORA-06512: at line 3
SQL> select count(*) from ts;
COUNT(*)
----------
1708
SQL> select segment_name from dba_segments where tablespace_name='TT'
2 ;
SEGMENT_NAME
--------------------------------------------------------------------------------
TS
--这里tt表空间只有一个segment,在第一个数据文件的时候,他是一个,在增加一个数据文件他还是一个,只不过空间增大了,因此B错误
- 24.Which two statements correctly describe the relation between a data file and the logical database
- Question 4: Which of the following statements correctly describe the code below in C++?
- Question 9: Which of the following statements correctly describe the results of executing the code below in C++?
- (NOT CLEAR)Question 47: Which of the following statements correctly describe functions of the endl manipulator for the ostream o
- 103.Which two statements are true regarding the Oracle Data Pump export and import operations? (Choo
- 21.Which three statements are true about logical structures of the Oracle database? (Choose three.)
- 73 Which two are the prerequisites to enable Flashback Data Archive? (Choose two.) A. Database must
- 19.Which two statements about the background process of the database writer are true? (Choose two.)
- 46.Which two statements are true about the Automatic Database Diagnostic Monitor (ADDM)? (Choose two
- the "true story" about using data mining to identify a relation between sales of beer and diapers
- Relation between the main stack and agent
- Question 48: In C++, which of the following statements accurately describe a base class destructor calling a virtual function ov
- 170.Which two statements are true regarding the DELETE and TRUNCATE commands? (Choose two.)
- 108 Which two statements are true about the Automatic Diagnostic Repository (ADR)? (Choose two.) A.
- 142 Which two statements are true about encrypting RMAN backup? (Choose two.) A. The transparent enc
- Which of the following statements describe the result when standard new CANNOT allocate the requeste
- 181 You performed the RMAN database backup with the KEEP option. Which two statements are true about
- Question 28: Which of the following statements accurately describe the new[] operator in C++?
- struts2 ValueStack的set方法与setValue方法的区别
- Android 异步查询框架AsyncQueryHandler的使用
- PHP设计模式之——策略模式
- mysql存储过程和游标遍历
- 免安装Oracle客户端使用PLSQL Developer连接Oracle
- 24.Which two statements correctly describe the relation between a data file and the logical database
- 【腾讯Bugly干货分享】深入理解 ButterKnife,让你的程序学会写代码
- MySQL的几个概念:主键,外键,索引,唯一索引
- 前端基础 及遇到的问题
- Android Intent
- 层序遍历二叉树
- iOS开发-打包更新版本
- shell输入密码隐藏回显
- Android开发之RecyclerView的使用全解