select * from dba_sys_privs where GRANTEE='monkey'; select * from dba_role_privs where GRANTEE='monkey'; select * from DBA_TAB_PRIVS where GRANTEE='monkey';…
查看当前用户所在表空间 select username,default_tablespace from user_users; 修改用户默认表空间 alter user 用户名 default tablespace 新表空间; 查看用户所拥有的角色 select * from user_role_privs; 查询数据库中有多少张表 select * from user_tables;…
1.查看所有用户:select * from dba_users; select * from all_users; select * from user_users;2.查看用户或角色系统权限(直接赋值给用户或角色的系统权限):select * from dba_sys_privs; select * from user_sys_privs; (查看当前用户所拥有的权限)3.查看角色(只能查看登陆用户拥有的角色)所包含的权限sql>select * from role_sys_privs;4.…
查看当前用户的缺省表空间 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;…
查看当前用户的缺省表空间 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;…
在此次情况中,业务顾问就给我提供了一张客户公司客户化的Form,然后让找出界面上的数据是怎样生成的. 首先我们从EBS form 界面上找到了界面的数据来源于一张表ks_so_line_margin_all A:-------------------------------- 然后找出与这张表相关的数据库对象: SELECT * FROM dba_dependencies t WHERE t.referenced_name = 'KS_SO_LINE_MARGIN_ALL'; 查询结果中包含了一…
select * from dba_sys_privs t where t.grantee='HR';select * from dba_role_privs t where t.grantee='HR';…
01.查看当前open用户 select username,account_status,expiry_date,profile from dba_users; 02.查看目前的密码过期策略 select * from dba_profiles s where s.profile='DEFAULT' and resource_name='PASSWORD_LIFE_TIME'; 03.修改密码过期策略 alter profile default limit password_life_time…
步骤指南 创建用户 格式:; 语法:create user 用户名 identified by 密码; 注:密码不行的话,前后加(单引号):' create user TEST identified by '; 授予connect权限 格式:grant connect to TEST ; 语法:grant connect to 用户名 ; 授予只读权限 格式:grant select on AAA.BBB to TEST; 语法:grant select on 表空间.表名(或视图名) to 用…
--查看日志文件 select member from v$logfile; --查看表空间使用情况 SELECT SUM(bytes) / (1024 * 1024) AS free_space, tablespace_name  FROM dba_free_space  GROUP BY tablespace_name;  SELECT a.tablespace_name,  a.bytes total,  b.bytes used,  c.bytes free,  (b.bytes * 1…