Oracle查看用户所在表空间

来源:互联网 发布:趣医网软件开发面试 编辑:程序博客网 时间:2024/06/05 18:14

查看当前用户所在表空间

[sql] view plain copy
  1. select username,default_tablespace from user_users;  

修改用户默认表空间

[sql] view plain copy
  1. alter user 用户名 default tablespace 新表空间;  

查看用户所拥有的角色

[sql] view plain copy
  1. select * from user_role_privs;  

查询数据库中有多少张表

[sql] view plain copy
  1. select * from user_tables;  
0 0
原创粉丝点击