ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 用户管理

用户管理

原创 Linux操作系统 作者:sswgej 时间:2008-08-04 20:51:57 0 删除 编辑
查看当前用户的缺省表空间

  SQL>select username,default_tablespace from user_users;

  查看当前用户的角色

  SQL>select * from user_role_privs;

  查看当前用户的系统权限和表级权限

  SQL>select * from user_sys_privs;

  SQL>select * from user_tab_privs;

  查看用户下所有的表

  SQL>select * from user_tables;

  1、用户

  查看当前用户的缺省表空间

  SQL>select username,default_tablespace from user_users;

  查看当前用户的角色

  SQL>select * from user_role_privs;

  查看当前用户的系统权限和表级权限

  SQL>select * from user_sys_privs;

  SQL>select * from user_tab_privs;

  显示当前会话所具有的权限

  SQL>select * from session_privs;

  显示指定用户所具有的系统权限

  SQL>select * from dba_sys_privs where grantee='GAME';
create user DB_USER identified by DB_USER_PW;
grant create session to DB_USER
grant resource to DB_USER;
grant dba to DB_USER;
alter user user1 identified by abcdef;
Alter
  user  用户名  ACCOUNT  LOCK;      - -加锁 
ACCOUNT  UNLOCK;   - -解锁   

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7301064/viewspace-418912/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 冷备
下一篇: 回退段
请登录后发表评论 登录
全部评论

注册时间:2008-07-28

  • 博文量
    62
  • 访问量
    81191