Examine these facts about a database: The database default tablespace to EXAMPLE. DEFERRED_SEGMENT_C
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 first 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
赵:
A 对,create session 就是允许使用这个用户在服务器上创建 session。就是允许这个用户登录。
C 错,已测试。PASSWORD EXPIRE 使密码过期,用户 user1 刚创建时用了 EXPIRE,在下次登录时必须修改密码。但是接下来通过 alter 命令行修改了他的密码,所以下次 USER1 登录数据库时就不必再修改密码了。
D 错,授权给 user1 用户 create session 权限 时没有用 with admin option。所以他不能将这个权限授给他人。
F 对,有 WITH ADMIN OPTION 权限的用户,可以收回其他用户的系统权限。
G 错,授权 create session 时没有用 WITH ADMIN OPTION,不能收回其他用户的系统权限。