OCP最新考试题库解析之052考试原题-10-20180810
052题库解析,最新15道题 052-题库解析-10-20180810,题库新特点:, 最新052题库,按知识点分类,方便大家学习每周五晚8点-直播地址:ke.qq.com/course/326223 ocp考试讨论群:836361015 验证:ocp CUUG整理,官网:www.cuug.com,九.Privileges,47. USER1 grants SELECT, INSERT, and UPDATE privileges on USER1.EMP to USER2. Sys executes this command: 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 perform SELECT, INSERT, or UPDATE,on USER1.EMP.,C) It will succeed and only USER1 will be unable to perform SELECT, INSERT, or UPDATE on,USER1.EMP.,D) It will succeed and neither USER1 nor USER2 will be able to perform INSERT 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 on,USER1.EMP. Answer:A,49. Examine these 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 TABLE TO user1 WITH ADMIN OPTION; Grant succeeded. SQL> conn user1/oracle_4U Connected. 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 from USER2 and USER3. B) Only SYS can revoke CREATE TABLE from USER1. C) If SYS revokes CREATE TABLE from USER1, it is revoked from USER2 but not from USER3. D) Any user with CREATE TABLE WITH ADMIN OPTION can revoke CREATE TABLE from USER1.,E) Only SYS and USER1 can revoke CREATE TABLE from USER3.(为什么错 了?),Answer: AD,49. In one of your databases:,1. USER1 and USER2 have no system privileges. 2. ROLE1 only has these privileges: CREATE SESSION CREATE TABLE CREATE VIEW Examine these commands: SQL> conn / as sysdba,Connected.,SQL> GRANT create table, role1 TO user1 WITH ADMIN OPTION; Grant succeeded. SQL> conn user1/oracle_4U Connected. SQL> GRANT role1 TO user2; Grant succeeded. Which command would you execute and as which user, to revoke the create table privilege from USER2? A) REVOKE CREATE TABLE FROM user2 as SYS B) REVOKE CREATE TABLE FROM role1 as SYS C) REVOKE CREATE TABLE FROM role1 as USER1 D) REVOKE CREATE TABLE FROM user1 as SYS Answer: 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 created.,SQL>ALTER USER user1 IDENTIFIED BY oracle; User altered. SQL>GRANT CREATE SESSION TO user1; Grant succeeded. SQL>GRANT 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 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 the privilege by SYS .,G) User1 can REVOKE the CREATE SESSION privilege from users that were granted the privilege by SYS .,Answer: ABEF,52. 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_4U password expire; User created. SQL>ALTER USER user1 ACCOUUNT UNLOCK; User altered. SQL>GRANT CREATE SEAAION TO user1; Grant succeeded;,SQL>GRANT CREATE TABLE TO user1 WITH ADMIN OPTION; Grant succeeded.,Which three are true?,A) USER1 can create indexes in EXAMPLE tablespace B) USER1 can grant the CREATE TABLE privilege to other users C) USER1 can log into the database instance D) USER1 must change its password at rst login E) USER1 can create tables in the EXAMPLE tablespace Answer:BCD,53. 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; User created. SQL>GRANT CREATE SESSION TO user1; User altered,Which two are true?,A) USER1 can create tables in EXAMPLE tablespace B) USER1 must change their password at rst login C) USER1 can create tables in the EXAMPLE tablespace D) USER1 can be granted access to tables in other schemas E) USER1 can log in to the database instance. Answer:DE,54. You have decided to implement the principle of least privilege and separation 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 database administrators. C) Assign the OSOPER and OSDBA groups to the Oracle software owner O/S account. D) Assign different O/S groups to the OSOPER and OSDBA credentials. E) Assign the DBA role to application schema owners.,