OCP试题解析之052--DROPPROFILEapp_user

PHPz
풀어 주다: 2019-02-23 15:25:08
원래의
1173명이 탐색했습니다.

相关mysql视频教程推荐:《mysql教程

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

答案一目了然!
로그인 후 복사

관련 라벨:
원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!