OCP试题解析之052-- DROP PROFILE app_user
2014-08-23 23:40
411 查看
133.You created a profile APP_USER and assigned it to the users. After a month, you decide to drop the
profile. Some user sessions are currently connected to the database instance and are using the
APP_USER profile.
This command is used to drop the profile:
SQL> DROP PROFILE app_user;
Which statement describes the result?
A. The command produces an error.
B. The profile is dropped and current user sessions use the DEFAULT profile immediately.
C. The profile is dropped and only the subsequent user sessions use the DEFAULT profile.
D. The profile is dropped, the sessions are terminated, and the subsequent user sessions use the
DEFAULT profile.
Answer: A
【解析】
CREATE PROFILE profile1 LIMIT;
ALTER USER scott PROFILE profile1;
--此时查看用户SCOTT的default profile变为:profile1
SYS@orcl> drop profile profile1;
drop profile profile1
*
第 1 行出现错误:
ORA-02382: 概要文件 PROFILE1 指定了用户, 不能没有 CASCADE 而删除
SYS@orcl> drop profile profile1 cascade;
配置文件已删除。
--profile1删除后,scott的default profile自动变回default
答案一目了然!
profile. Some user sessions are currently connected to the database instance and are using the
APP_USER profile.
This command is used to drop the profile:
SQL> DROP PROFILE app_user;
Which statement describes the result?
A. The command produces an error.
B. The profile is dropped and current user sessions use the DEFAULT profile immediately.
C. The profile is dropped and only the subsequent user sessions use the DEFAULT profile.
D. The profile is dropped, the sessions are terminated, and the subsequent user sessions use the
DEFAULT profile.
Answer: A
【解析】
CREATE PROFILE profile1 LIMIT;
ALTER USER scott PROFILE profile1;
--此时查看用户SCOTT的default profile变为:profile1
SYS@orcl> drop profile profile1;
drop profile profile1
*
第 1 行出现错误:
ORA-02382: 概要文件 PROFILE1 指定了用户, 不能没有 CASCADE 而删除
SYS@orcl> drop profile profile1 cascade;
配置文件已删除。
--profile1删除后,scott的default profile自动变回default
答案一目了然!
相关文章推荐
- OCP解决问题052-- DROP PROFILE app_user
- APP-PER-50022 (system administrator > profile > system . HR:User Type)
- OCP-052 & 053部分答案解析
- (转)ORA-01940: cannot drop a user that is currently connected 问题解析
- OCP-052 & 053部分答案解析
- OCP-052 & 053部分答案解析
- ORA-01940: cannot drop a user that is currently connected 问题解析
- OCP试题解析之053-17 CONFIGURE CONTROLFILE AUTOBACKUP ON
- Oracle OCP认证考试题库解析052-7
- Oracle OCP认证考试题库解析052-6
- Instruments User Guide编程指南4-Profile You App's Performance
- OCP试题解析之053-16 MEMORY_TARGET
- Oracle OCP认证考试题库解析052-2
- Oracle OCP认证考试题库解析052-1
- Oracle OCP认证考试题库解析052-8
- Oracle OCP认证考试题库解析052-3
- Oracle OCP 11G 052答案解析目录
- Oracle OCP认证考试题库解析052-1
- Oracle OCP认证考试题库解析052-4
- AppUserProfileJob