Bo's Oracle Station

查看: 986|回复: 0

2014-07-07-2.sql

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2014-7-8 09:51:02 | 显示全部楼层 |阅读模式
select u.username, u.account_status
from dba_users u  where username in ('HR','U1','OPS$ORACLE', 'SYS');
;

alter user u1 account lock;

grant connect to u1;

alter user u1 account unlock;

alter user u1 password expire;


-----
select    distinct  sp.privilege   from dba_sys_privs sp   order by 1  ;

select  * from dba_sys_privs sp where sp.grantee='U1';

select  * from dba_role_privs  rp where rp.grantee='U1';

select  * from dba_tab_privs  tp where tp.grantee='U1';
---
  grant select any table to u1;
revoke select any table from u1;




回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-5-7 13:28 , Processed in 0.036647 second(s), 24 queries .

快速回复 返回顶部 返回列表