20151201 ocp 卷3 1-30

来源:互联网 发布:mac最新远程windows 编辑:程序博客网 时间:2024/06/05 00:20

1.examine the following statement that is used to modify the primary key constraint on the sales table

sql>alter table sales midify constraint pk disable validate;

a.the constraint remains calid

b.the index on the constraint is dropped

c.it allows the loading of data into the table using sql*loader

这道题,可用排除法来做 d属于enable novalidate e.不能对已存在的数据做updata

简单来讲,disable enable 是针对新增的数据是否符合约束,novalidatevalidate是针对已经存在的数据是否符合约束

4.you execute the following command to change the status of the sales tablespace;

sql>alter tablespace sales offline;

which statements describe the effect of the command?

b.the checkpoint is taken on all data files that associated with the sales tablespace

c.the session that subsequently try to access the objects in the sales tablespace receive a error

a.当表空间有offline转为online时,不会要求恢复,因为这个表空间没有被改变过

b.当表空间置为offline状态时,会生成一个检查点,放在控制文件里

c.当一个表空间被置为offline时,此空间就不能被访问

d.当被offline时,就已经生成了检查点,放在了控制文件,而不是等到关闭后

7.you set the following parameters in the parameter file and restarted the database

MEMORY_MAX_TARGET=0

MEMORY_TARGET=500M

PGA_AGGREGATE_TARGET=90M

SGA_TARGET=270M

a.the memory_max_target parameter is automatically set to 500mb

d.the lower bounds of PGA_AGGREGATE_TARGET and sga_target parameter are set to 90mb and 270mb respectively

只需要设置一个目标内存大小初始化参数(memory_target)和一个最大内存大小初始化参数(memory_max_target)

数据库就会根据处理需求在sga和实例pga之间动态交换内存

自动内存管理是通过两个初始化参数配置的

memory_target:动态控制sgapga时,oracle总共可以使用的共享内存大小,这个参数是动态的,因此提供给Oracle

内存赠送两是可以动态增大,也可以动态减小的

他不能超过memory_max_target参数设置的大小,默认是0

memory_max_target:这个参数定义了memory_target最大可以达到而不用重新启动实例的值,如果没有设置memory_max_target的值

默认等于memory_target的值

使用动态内存管理时,sga_targetpga_target代表他们各自内存区域的最小值,要让oracle完全控制内存管理,这两个参数应该设置为0

但不会因为设置了memory_target这两个参数就会自动变为0

9.you want to configure and schedule offline database backups to run automatically.which tool or utility would you user to achive this?

d.enterprise manager to schedual the backup

利用em的调度定制备份来备份脱机备份

11.witch three statements are correct about temporary tables?

a.indexs and views can be created on temporary tables

c.temporary tables are always created in a user's temporary tablespace

e.data manipulation language (DML) locks are never acquired on the data of temporary tables

在临时表中可以创建索引,视图,触发器,还可以使用export and inport data pump导出和导入临时表的定义。但是,即使使用了rows选项

也不会导出数据

15.you are working on a database that must be functioning 25 hours a day,7days a week.the database

is configured in archivelog mode,which two options do you have for performing user_maneged backups?

a.you can perform a complete database backup without shutting down the database instance.

d.you can backup only those data files WHOSE HEADERS ARE FROZEN BY USING ALTER TABLESPACE BEGIN BACKUO OR ALTER DATABASE BEGIN BACVKUP COMMANDS

自己的理解

数据库不关闭的情况下一定是不一致备份所以

热备是可以在数据库不关闭的情况下进行的所以b

16.examine the command that is used t ocreate a table:

sql>create table orders(oid number(6) primary key,odate date,ccode number(6)) tablespace users;

which two stetments are true about the effect of the above command?

b.a not null constarints is created on the OID column

d.the orders and a unique index are created in the users tablespace

a.oid列上不是check约束,是主键约束

b.主键约束包含唯一约束和非空约束 所以b正确

d.默认情况下,user是用户创建对象默认的表空间,所以创建的表和索引都放在users表空间里

17.note the funcitonalities of various backgroud processed;

1.perform recovery at instance startup 

6.cleanup unused temporary segments 

系统监视器进程(SMON) 在实例启动时执行恢复(如果需要)

smon还负责清楚不再使用的临时段

22.you have set tablespace full metrcs threshold values for the users tablespace as follows warning (%):90

critical(%):95

which backgroud process is responsible for issuing alerts when the threshold is crossed?

d.manageability monitor process(MMON)

可管理性监视器进程(MMON),可执行各种可管理性相关的后台任务,例如

每当给定的度量超过其阈值时发出预警

通过衍生附加进程(mmon从属进程)获取快照

捕获近期已做修改的sql对象的统计值

23.user scott executes the following command on the emp table but has not issued commit,rollback,or ant data 

definition langguange(DDL) command:

sql>select ename from emp where job ='CLERK' for update of empno;

scott has opened another session to work with the database instance,

which three operation would warit when issued in scott's second session?

a.lock table emp in share mode;

b.lock table emp in execlusive mode;

e.select ename from emp where job='clerk' for update of empno;

使用forupdate of column_name来限定更改的列,此时只会锁定特定表中的行。

发出select ..for update语句时,关系数据库管理系统会自动获得对由select语句标识的所有行的航行级互斥锁

因此可暂挂这些记录仅供一个回话更改。其他人无法更改这些记录,直至你执行rollbackcommit为止

28.you are managing an oracle database 11g database.you configured the database to run in archivelog mode.which two statements are true in this scenario?

c.you can perform complete database backups without closing the database

d.all the previous closed database backups including control files become invaild after you configure the database to archiverlog mode

b.在归档模式下,不用指定快速恢复区,归档日志可以重新自己指定本地位置或远程为止来归档

d.在非归档模式转为归档模式,或者重新配置成归档模式,之前所有的备份,包括控制文件,都已经变为无效的,因为第日志信息的序列号是重头开始的

 

0 0