2 OCA基础

编程入门 行业动态 更新时间:2024-10-18 03:22:32

2 OCA<a href=https://www.elefans.com/category/jswz/34/1770030.html style=基础"/>

2 OCA基础

privilege:系统权限和对象权限
role:  部分权限的集合,分为预定义角色(dba、connect、resource)和自定义角色/***sys、system拥有dba角色***/
schema(逻辑):数据库对象的集合(默认方案名和用户名相同)
tablespace(逻辑):数据文件(存储数据的物理文件)的集合,一个数据库由多个表空间组成,一个表空间可以包含多个数据文件
profile:概要文件(resource_parameters、password_parameters)


create user lcy identified by root;
grant connect to lcy;
grant resource to lcy;
drop user lcy cascade;/***将lcy的所有数据文件一并删除***/

--scott授权lcy对表emp的操作权限
conn scott/root;
grant all on scott.emp to lcy with grant option;
revoke all on scott.emp from lcy cascade constraints;/***lcy授予其他用户对scott.emp的权限也一并撤销***/

--profile
create profile lcy_profile limit failed_login_attempts 3 password_lock_time 2;
create profile lcy_profile limit password_life_time 10 password_grace_time 2 password_reuse_time 1;
alter user lcy profile lcy_profile;
drop profile lcy_profile cascade;

select * from dba_roles;
select * from dba_role_privs where grantee='SCOTT';
select * from system_privilege_map order by name;
select * from dba_sys_privs where grantee='DBA';
select distinct privilege from dba_tab_privs;

转载于:.html

更多推荐

2 OCA基础

本文发布于:2024-02-26 02:41:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1701090.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:基础   OCA

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!