首页 > 其他 > 详细

数据对象和权限

时间:2019-04-27 11:50:31      阅读:135      评论:0      收藏:0      [点我收藏+]

1、grant create session to   t2;

2、conn t3/t2;

3、conn t1/t1;

4、conn t2/t2;

5、grant create table to t3;

6、revoke from 

7、grant  to

角色  role

 

系统

对象

 

8、DML:删改查增  数据操作

     DDL:数据定义

9、grant create table to t2 with admin option;

10、grant create table to t3;

11、

dba   --->   t1

admin option

t1 ---> t2

没有admin

dba ---> t1 ---> t2 ---> t3

  adm  adm

dba

revoke create table from t1;

conn t2/t2;

create table tttt(id number(10));

系统权限给出去就收不回了;

select table_name from user_tables;

drop table tt;

drop table t;

conn / as sysdba;

alter user t3 identified by t3;

conn / as sysdba;

show user;

desc test;

insert into test values (sysdate(), ‘AAAA’);

select * from test;

select * from sys.test;

grant select on test to  t1;

select * from sys.test;

grant select on test to t2;

revoke select on test from t1;

grant select on test to t1 with grant option;

grant select on test to t2;

grant select on sys.test to t2;

select * from sys.test;

grant select on test to t2;

grant select on sys.test to t2;

revoke select on test from t1;

grant select on test to t1 with grant option;

--------------------------------------------------------

一组权限的组合   Roles

select table_name from dict where table_name like ‘%PRIV%‘;

desc USER_SYS_PRIVS;

select username from USER_SYS_PRIVS;

select unique(username) from USER_SYS_PRIVS;

select count(1) from USER_SYS_PRIVS;

grant connect, resource to t1;

 

select table_name from dict where table_name like ‘%PROFILE%‘;

select resource_name, limit from dba_profiles;

userprofile;

Schema

方案

结构

模式

纲要

用户对象的集合---Schema

 

数据对象和权限

原文:https://www.cnblogs.com/niaocaizhou/p/10778137.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!