VIEW_NAME                                                    TEXT
 ------------------------------------------------------------ --------------------------------------------------------------------------------
 DBA_PROFILES                                                 select
                                                                 n.name, m.name,--对应dba_profiles的resource_name
                                                                 decode(u.type#, 0, 'KERNEL', 1, 'PASSWORD', 'INVALID'),
                                                                 decode(u.limit#,
                                                                        0, 'DEFAULT',
                                                                        2147483647, decode(u.resource#,
                                                                                           4, decode(u.type#,
                                                                                                     1, 'NULL', 'UNLIMITED'),
                                                                                           'UNLIMITED'),
                                                                        decode(u.resource#,
                                                                               4, decode(u.type#, 1, o.name, u.limit#),--对应dba_profiles的resource_type
                                                                               decode(u.type#,
                                                                                      0, u.limit#,
                                                                                      decode(u.resource#,
                                                                                             1, trunc(u.limit#/86400, 4),
                                                                                             2, trunc(u.limit#/86400, 4),
                                                                                             5, trunc(u.limit#/86400, 4),
                                                                                             6, trunc(u.limit#/86400, 4),
                                                                                             u.limit#))))  --对应dba_profiles的limit
                                                                from sys.profile$ u, sys.profname$ n, sys.resource_map m, sys.obj$ o
                                                                where u.resource# = m.resource#
                                                                and u.type#=m.type#
                                                                and o.obj# (+) = u.limit#
                                                                and n.profile# = u.profile#
Oracle 用户user锁定lock如何知道是什么原因导致的(4)
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:https://www.heiqu.com/c6664b2d49b134771d84df6e37da0dd1.html

