查看当前用户所属的表空间:
    select tablespace_name from user_tablespaces;
查看数据库所有的表空间[查看的用户得有查看的权限]:
    select tablespace_name from dba_tablespaces;
查看用户的表空间配额:
    select * from user(dba)_ts_quotas;
查看用户或角色系统权限:
    select * from dba_sys_privs;
    select * from user_sys_privs;
    select * from dba_sys_privs where grantee='用户名';
查看角色所包含的权限:
    select * from role_sys_privs;
查看用户对象权限:
    select * from dba_tab_privs;
    select * from all_tab_privs;
    select * from user_tab_privs;
查看所有角色:
    select * from dba_roles;
查看用户所拥有的角色:
    select * from dba_role_privs;
    select * from user_role_privs;
查看 oracle 中提供的系统权限:
    select * from sys.system_privilege_map;
向某一用户授予不限制的表空间:    
    grant unlimited tablespace to 用户名
修改表空间配额:
    alter user 用户名 quota 10M on 表空间名
收回系统权限:
    revoke system_privs from {user|role|public}
用户锁定及解锁

  alter user 用户名 account lock(unlock)

查找表中字段的注释:
  select * from user_col_comments where table_name='表名[大写]'

查找表的注释:
  select * from user_tab_comments where table_name='表名[大写]'

 

相关文章:

  • 2022-12-23
  • 2021-06-20
  • 2021-11-29
  • 2022-03-10
  • 2021-11-27
  • 2021-12-31
  • 2021-12-07
  • 2021-12-02
猜你喜欢
  • 2021-12-25
  • 2021-10-31
  • 2021-11-20
  • 2022-03-05
  • 2021-09-01
相关资源
相似解决方案