OCP-1Z0-052-V8.02-152题

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值