查看当前用户的缺省表空间
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/
,如需转载,请注明出处,否则将追究法律责任。