OCP-052考试题库汇总(58)-CUUG内部解答版

简介: 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...

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。

目录
相关文章
OCP-052考试题库汇总(59)-CUUG内部解答版
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 ...
2827 0
|
Oracle 关系型数据库 数据库
OCP-052考试题库汇总(45)-CUUG内部解答版
You want to access employee details contained in flat files created by an application. Which two methods will achieve this? A)Use a BFILE column in a table to access the flat file.
1862 0
|
SQL
OCP-052考试题库汇总(44)-CUUG内部解答版
Which two are true about external tables? A)They can be stored in an ASM Cluster File System(ACFS). B)They can always be updated using SQL.
8258 0
|
SQL 数据库 关系型数据库
OCP-052考试题库汇总(43)-CUUG内部解答版
Which is true about external tables? A)Segments are allocated for external tables. B)They may have indexes.
2131 0
|
XML SQL 数据库
OCP-052考试题库汇总(41)-CUUG内部解答版
Examine this session output: SQL> connect scott/tiger Connected. SQL>select name,value 2 from v$parameter 3 where name='audit_trail'; NAME VALUE ----...
890 0
|
数据安全/隐私保护 关系型数据库 Oracle
OCP-052考试题库汇总(35)-CUUG内部解答版
Which two are true about Oracle Data Pump in Oracle Database 11g Release 2? A)If the directory used in the export operation has existing dump files, it overwrites them.
693 0
|
Oracle 关系型数据库 数据库
OCP-052考试题库汇总(33)-CUUG内部解答版
Which two can be exported by a non-administrative account by using Data Pump? A)directory objects B)tables C)tablespaces D)schemas E)database Answer: BD 赵: EXP 和 IMP 是客户端工具程序,它们既可以在客户端使用,也可以在服务端使用。
648 0
|
数据库 关系型数据库 Oracle
OCP-052考试题库汇总(32)-CUUG内部解答版
Which state must a database be to enable ARCHIVELOG ? A)NOMOUNT B)OPEN IN READ WRITE mode C)OPEN IN READ ONLY mode D)OPEN IN RESTRICTED mode E)MOUNT ...
708 0
OCP-052考试题库汇总(27)-CUUG内部解答版
Which two of these must be available READ/WRITE to keep a database open? A)all copies of the control file.
512 0
|
Oracle 关系型数据库 数据库
OCP-052考试题库汇总(28)-CUUG内部解答版
Archivelog mode is enabled for your database and DB_CREATE_FILE_DEST is set to ‘/u01/oracle/db01’. The parameters, DB_CREATE_ONLINE_LOG_DEST_n and DB_RECOVERY_FILE_DEST, and not specified.
611 0