Users to roles and system privileges
select
lpad(' ', 2*level) || granted_role "User, his roles and privileges"
from
(
/* THE USERS */
select
null grantee,
username granted_role
from
dba_users
where
username like upper('%&enter_username%')
/* THE ROLES TO ROLES RELATIONS */
union
select
grantee,
granted_role
from
dba_role_privs
/* THE ROLES TO PRIVILEGE RELATIONS */
union
select
grantee,
privilege
from
dba_sys_privs
)
start with grantee is null
connect by grantee = prior granted_role;
System privileges to roles and users
select
lpad(' ', 2*level) || c "Privilege, Roles and Users"
from
(
/* THE PRIVILEGES */
select
null p,
name c
from
system_privilege_map
where
name like upper('%&enter_privliege%')
/* THE ROLES TO ROLES RELATIONS */
union
select
granted_role p,
grantee c
from
dba_role_privs
/* THE ROLES TO PRIVILEGE RELATIONS */
union
select
privilege p,
grantee c
from
dba_sys_privs
)
start with p is null
connect by p = prior c;
Object privileges
select
case when level = 1 then own || '.' || obj || ' (' || typ || ')' else
lpad (' ', 2*(level-1)) || obj || nvl2 (typ, ' (' || typ || ')', null)
end
from
(
/* THE OBJECTS */
select
null p1,
null p2,
object_name obj,
owner own,
object_type typ
from
dba_objects
where
owner not in
('SYS', 'SYSTEM', 'WMSYS', 'SYSMAN','MDSYS','ORDSYS','XDB', 'WKSYS', 'EXFSYS',
'OLAPSYS', 'DBSNMP', 'DMSYS','CTXSYS','WK_TEST', 'ORDPLUGINS', 'OUTLN')
and object_type not in ('SYNONYM', 'INDEX')
/* THE OBJECT TO PRIVILEGE RELATIONS */
union
select
table_name p1,
owner p2,
grantee,
grantee,
privilege
from
dba_tab_privs
/* THE ROLES TO ROLES/USERS RELATIONS */
union
select
granted_role p1,
granted_role p2,
grantee,
grantee,
null
from
dba_role_privs
)
start with p1 is null and p2 is null
connect by p1 = prior obj and p2 = prior own;
分享到:
相关推荐
copy datafile 'c:\oracle\oradata\rman\users01.dbf' to 'e:\dbbackup\u.dbf' tag=u1215; } ``` **说明:** - `copy datafile` 命令用于复制特定的数据文件。 - `to` 子句指定了复制后文件的目标位置。 - `tag` ...
NAV350 报文解析 Telegram_listing_Telegrams_for_Configuring_and_Operating_the_NAV350_
SQL>select username,default_tablespace from user_users; 查看当前用户的角色 SQL>select * from user_role_privs; 查看当前用户的系统权限和表级权限 SQL>select * from user_sys_privs; SQL>select * ...
亚马逊Listing视频文件下载谷歌插件是一款专为亚马逊平台的运营人员设计的实用工具,它极大地简化了下载Listing中展示的视频文件的过程。在电子商务领域,尤其是亚马逊这样的大型平台,产品视频已经成为提高销售转化...
亚马逊打造listing.jpg.zip" 指的是一个压缩文件,其中包含了一个关于如何在亚马逊平台上创建和优化产品Listing的教程或指南的图像文件。这个压缩包的核心内容是帮助跨境电商卖家理解并提升他们在亚马逊上的产品展示...
Listing the files inside a directory http://www.geekpedia.com/tutorial148_Listing-the-files-inside-a-directory.html
1、如何创建listing?
例如,如Listing A所示的查询,通过使用"ordered"提示,我们可以强制Oracle按照WHERE子句中的顺序进行评估。 其次,"ordered_predicates"提示则用于控制WHERE子句中布尔判断的评估顺序。Oracle默认的评估规则可能会...
Oracle数据库查找替换工具是一款专为Oracle数据库设计的实用软件,它可以帮助数据库管理员和开发人员高效地在数据库中进行数据查找和替换操作。在日常的数据库维护和管理中,有时我们需要定位并更新特定的数据,或者...
"Listing 10-12_ORACLE.sql"可能是Oracle特有的实现,可能包含了Oracle特有的语法或优化技巧。"Listing 10-14.sql"和"Listing 10-13.sql"可能演示了其他递归子查询的应用实例,比如处理更复杂的数据结构或者优化查询...
在亚马逊平台上,卖家有时会发现一个已有热销产品的listing,希望将自己的产品添加到这个成功的商品页面下,形成变体,共享其流量和销量。这被称为“建立他人的刊登(listing)变体”。本教程将深入讲解如何操作这一...
virtual Listing sort(string field); This is a new method. This method returns a copy of the invoking Listing object sorted by the field name given in the parameter. Use an appropriate STL sorting ...
Simple Directory Listing可能已经考虑到了这一点,使用了媒体查询(Media Queries)和响应式布局,确保在手机、平板电脑和桌面设备上都能提供良好的用户体验。 八、性能优化 对于大量文件的目录,优化文件遍历的...
本插件安装后,还要设置两个地方.. 后台: Configuration——>Product Listing——>Product Listing ——> Layout ...Configuration——>Product Listing——>Product Listing ——>Product Listing - Columns Per Row
提供的文件"Listing 10-10.sql"和"Listing 10-10_oracle.sql"很可能展示了如何在标准SQL和Oracle特有语法下使用Subquery Factoring的例子。在Oracle SQL中,我们可以在`WITH`子句后定义一个或多个子查询,每个子查询...
C++并发编程实战代码
C++并发编程实战代码
C++并发编程实战代码
Excel VBA tool to list files/folders by certain criteria
C++并发编程实战代码