CUUG内部OCP题库解析-052-文档10

上传人:j*** 文档编号:93170048 上传时间:2019-07-17 格式:DOCX 页数:28 大小:63.54KB
返回 下载 相关 举报
CUUG内部OCP题库解析-052-文档10_第1页
第1页 / 共28页
CUUG内部OCP题库解析-052-文档10_第2页
第2页 / 共28页
CUUG内部OCP题库解析-052-文档10_第3页
第3页 / 共28页
CUUG内部OCP题库解析-052-文档10_第4页
第4页 / 共28页
CUUG内部OCP题库解析-052-文档10_第5页
第5页 / 共28页
点击查看更多>>
资源描述

《CUUG内部OCP题库解析-052-文档10》由会员分享,可在线阅读,更多相关《CUUG内部OCP题库解析-052-文档10(28页珍藏版)》请在金锄头文库上搜索。

1、CUUG内部OCP题库解析-052-文档10题库新特点:oracle 11g版本的ocp认证考试题库,来自cuug整理,考试题大部分都在这里能找到,如果想考ocp认证可以参考这些文档。下面的题是(052考试-第10个文档)里的一些考题。其他题找相关文档,或者在群里讨论101-5267-481Administrator CUUG内部OCP题库解析-052-文档10 7/17/19九.Privileges47. USER1 grants SELECT, INSERT, and UPDATE privileges on USER1.EMP to USER2. Sys executes this co

2、mmand:SQL REVOKE UPDATE ON user1.emp FROM user1; What will be the outcome?A) It will fail because USER1 is the owner of USER1.EMP.B) It will succeed but neither USER1 nor USER2 will be able to performSELECT, INSERT, or UPDATEon USER1.EMP.C) It will succeed and only USER1 will be unable to perform SE

3、LECT,INSERT, or UPDATE onUSER1.EMP.D) It will succeed and neither USER1 nor USER2 will be able to performINSERT or UPDATE on USER1.EMP, but both will be able to query USER1.EMP.E) It will succeed and only USER2 will be unable to perform SELECT,INSERT, or UPDATE onUSER1.EMP. Answer:A49. Examine these

4、 facts about a database: 1. USER is the database default tablespace.2. USER1, USER2, and USER3 have the CREATE SESSION privilege.3. They also have UNLIMITED QUOTA on the default tablespace USERS.4. They have no other privileges.Examine these commands:SQL conn / as sysdba Connected.SQL GRANT CREATE T

5、ABLE TO user1 WITH ADMIN OPTION; Grant succeeded.SQL conn user1/oracle_4UConnected.SQL GRANT CREATE TABLE TO user2;Grant succeeded.SQL GRANT CREATE TABLE TO user3 WITH ADMIN OPTION;Grant succeeded.Which two are true?A) If SYS revokes CREATE TABLE from USER1, it is not revoked fromUSER2 and USER3.B)

6、Only SYS can revoke CREATE TABLE from USER1.C) If SYS revokes CREATE TABLE from USER1, it is revoked from USER2but not from USER3.D) Any user with CREATE TABLE WITH ADMIN OPTION can revokeCREATE TABLE from USER1.E) Only SYS and USER1 can revoke CREATE TABLE from USER3.(为什么错 了?)Answer: AD49. In one o

7、f your databases:1. USER1 and USER2 have no system privileges. 2. ROLE1 only has these privileges: CREATE SESSION CREATE TABLE CREATE VIEWExamine these commands: SQL conn / as sysdbaConnected.SQL GRANT create table, role1 TO user1 WITH ADMIN OPTION;Grant succeeded.SQL conn user1/oracle_4U Connected.

8、SQL GRANT role1 TO user2; Grant succeeded.Which command would you execute and as which user, to revoke the create tableprivilege from USER2? A) REVOKE CREATE TABLE FROM user2 as SYSB) REVOKE CREATE TABLE FROM role1 as SYSC) REVOKE CREATE TABLE FROM role1 as USER1D) REVOKE CREATE TABLE FROM user1 as

9、SYSAnswer: B只有sys用户才能够从role中revoke权限,而user1只能把role授权给其它用户,或者从其它用户回 收role。51. Examine these facts about a database: The database default tablespace to EXAMPLE. DEFERRED_SEGMENT_CREATION is TRUE (原来为FALSE,题目有错) Examine these commands: SQL CREATE USER user1 IDENTIFIED BY oracle_4U PASSWORD EXPIRE; User

10、 created.SQLALTER USER user1 IDENTIFIED BY oracle;User altered.SQLGRANT CREATE SESSION TO user1;Grant succeeded.SQLGRANT CREATE TABLE TO user1 WITH ADMIN OPTION; Grant succeeded.Which four are true?A) User1 can connect to the database instance. B) User1 can create in the EXAMPLE tablespace. C) User1

11、 must change the password at rst login. D) User1 can grant the CREATE SESSION privilege to other users.E) User1 can grant the CREATE TABLE privilege to other users.F) User1 can REVOKE the CREATE TABLE privilege from users that were granted theprivilege by SYS .G) User1 can REVOKE the CREATE SESSION

12、privilege from users that were granted the privilege by SYS .Answer: ABEF52. IN one of your databases;The database default tablespace is EXAMPLE.DEFERRED_SEGMENT_CREATION IS FALES.Examine these commands;SQL.CREATE USER user1 IDENTIFIED BY oracle_4Upassword expire; User created.SQLALTER USER user1 AC

13、COUUNT UNLOCK;User altered.SQLGRANT CREATE SEAAION TO user1;Grant succeeded;SQLGRANT CREATE TABLE TO user1 WITH ADMIN OPTION;Grant succeeded.Which three are true?A) USER1 can create indexes in EXAMPLE tablespaceB) USER1 can grant the CREATE TABLE privilege to other usersC) USER1 can log into the dat

14、abase instanceD) USER1 must change its password at rst loginE) USER1 can create tables in the EXAMPLE tablespace Answer:BCD53. IN one of your databases; The database default tablespace is EXAMPLE. DEFERRED_SEGMENT_CREATION IS FALSE.Examine these commands;SQL CREATE USER user1 IDENTIFIED BY oracle_4U

15、; Usercreated.SQLGRANT CREATE SESSION TO user1;User alteredWhich two are true?A) USER1 can create tables in EXAMPLE tablespaceB) USER1 must change their password at rst loginC) USER1 can create tables in the EXAMPLE tablespaceD) USER1 can be granted access to tables in other schemasE) USER1 can log in to the database instance.Answer:DE 54. You have decided to implement the principle of least privilege andseparation of duties. Which two actions must you take?A) Grant SYSOPER to application schema owners.B) Grant access to the Oracle software owner O/S account to all dat

展开阅读全文
相关资源
相关搜索

当前位置:首页 > IT计算机/网络 > 数据库

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号