OCP-1Z0-052-V8.02-152题
2013-09-28 19:07
429 查看
152. Examine the command:
SQL> ALTER USER skd ACCOUNT LOCK;
Which two statements are true after the command is executed? (Choose two.)
A.The SKD user cannot log in to the database instance.
B.The objects owned by the SKD user are not accessible to any user.
C.The other users can access the objects owned by the SKD user, on which they have access.
D.The password for the SKD user expires and the user is forced to change the password at the next log in.
Answer: AC
答案解析:
1、将scott用户上锁
sys@TEST0910> alter user scott account lock;
User altered.
2、不能连接到数据库,A正确。
下一次连接时,只是不能连接到数据库,但密码没有过期,也没有强制要求改变密码,D错误。
sys@TEST0910> conn scott/tiger
ERROR:
ORA-28000: the account is locked
Warning: You are no longer connected to ORACLE.
3、使用SYS用户可以访问到scott用户的表,C正确,B错误
sys@TEST0910> conn /as sysdba
Connected.
sys@TEST0910> select * from scott.emp;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
---------- ---------- --------- ---------- --------- ---------- ---------- ----------
7369 SMITH CLERK 7902 17-DEC-80 800 20
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
SQL> ALTER USER skd ACCOUNT LOCK;
Which two statements are true after the command is executed? (Choose two.)
A.The SKD user cannot log in to the database instance.
B.The objects owned by the SKD user are not accessible to any user.
C.The other users can access the objects owned by the SKD user, on which they have access.
D.The password for the SKD user expires and the user is forced to change the password at the next log in.
Answer: AC
答案解析:
1、将scott用户上锁
sys@TEST0910> alter user scott account lock;
User altered.
2、不能连接到数据库,A正确。
下一次连接时,只是不能连接到数据库,但密码没有过期,也没有强制要求改变密码,D错误。
sys@TEST0910> conn scott/tiger
ERROR:
ORA-28000: the account is locked
Warning: You are no longer connected to ORACLE.
3、使用SYS用户可以访问到scott用户的表,C正确,B错误
sys@TEST0910> conn /as sysdba
Connected.
sys@TEST0910> select * from scott.emp;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
---------- ---------- --------- ---------- --------- ---------- ---------- ----------
7369 SMITH CLERK 7902 17-DEC-80 800 20
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
相关文章推荐
- 外面的世界很无奈,大家做事要严谨,细心噢,不要贪心,我同事昨天都被骗了2000RMB
- ZT: 台湾清华大学某员工/学生主页上的Dijkstra 最短路径算法,配合图表,讲解的非常清楚
- 求组合数
- QT4的中文问题解决方法
- 1008_右旋
- VC控件
- C#开发和调用webservice
- 第一次c++上机
- 编译器1
- 适配器、泛型算法
- 红黑树数据结构剖析
- JAVA WEB入门级
- hdu 4004 The Frog's Games ( 二分+贪心 )
- 海思3531芯片资料汇总
- 修改weblogic部署的应用名称
- 22,数据结构(5)
- 多媒体信息检索技术简介
- SIGTERM与SIGKILL
- STL中的算法
- 进程通信参考网址(比较全)