? ? ? ? ? ? ? ? ? ? ? ? ? decode(u.ptime, '', to_date(NULL), ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? decode(pr.limit#, 2147483647, to_date(NULL), ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? decode(pr.limit#, 0, ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? decode(dp.limit#, 2147483647, to_date(NULL), u.ptime + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? dp.limit#/86400), ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? u.ptime + pr.limit#/86400)))), ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? dts.name, tts.name, u.ctime, p.name, ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? nvl(cgm.consumer_group, 'DEFAULT_CONSUMER_GROUP'), ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? u.ext_username, ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? decode(length(u.password),16,'10G ',NULL)||NVL2(u.spare4, '11G ' ,NULL), ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? decode(bitand(u.spare1, 16), ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 16, 'Y', ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 'N'), ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? decode(u.password, 'GLOBAL',? 'GLOBAL', ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 'EXTERNAL', 'EXTERNAL', ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 'PASSWORD') ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? from sys.user$ u left outer join sys.resource_group_mapping$ cgm ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? on (cgm.attribute = 'ORACLE_USER' and cgm.status = 'ACTIVE' and ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? cgm.value = u.name), ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? sys.ts$ dts, sys.ts$ tts, sys.profname$ p, ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? sys.user_astatus_map m, sys.profile$ pr, sys.profile$ dp ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? where u.datats# = dts.ts# ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? and u.resource$ = p.profile# ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? and u.tempts# = tts.ts# ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? and u.astatus = m.status# ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? and u.type# = 1 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? and u.resource$ = pr.profile# ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? and dp.profile# = 0 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? and dp.type#=1 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? and dp.resource#=1 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? and pr.type# = 1 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? and pr.resource# = 1 先看下user$,只有列resource$是我们关注的列 create table user$? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? /* user table */ ?( user#? ? ? ? number not null,? ? ? ? ? ? ? ? ? /* user identifier number */ ? name? ? ? ? ? varchar2("M_IDEN") not null,? ? ? ? ? ? ? ? /* name of user */ ? ? ? ? ? ? ? ? /* 0 = role, 1 = user, 2 = adjunct schema, 3 = schema synonym */ ? type#? ? ? ? number not null, ? password? ? ? varchar2("M_IDEN"),? ? ? ? ? ? ? ? ? ? /* encrypted password */ ? datats#? ? ? number not null, /* default tablespace for permanent objects */ ? tempts#? ? ? number not null,? /* default tablespace for temporary tables */ ? ctime? ? ? ? date not null,? ? ? ? ? ? ? ? /* user account creation time */ ? ptime? ? ? ? date,? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? /* password change time */ ? exptime? ? ? date,? ? ? ? ? ? ? ? ? ? /* actual password expiration time */ ? ltime? ? ? ? date,? ? ? ? ? ? ? ? ? ? ? ? /* time when account is locked */ ? resource$? ? number not null,? ? ? ? ? ? ? ? ? ? ? ? /* resource profile# */ ? audit$? ? ? ? varchar2("S_OPFL"),? ? ? ? ? ? ? ? ? ? /* user audit options */ ? defrole? ? ? number not null,? ? ? ? ? ? ? ? ? /* default role indicator: */ ? ? ? ? ? ? ? ? /* 0 = no roles, 1 = all roles granted, 2 = roles in defrole$ */ ? defgrp#? ? ? number,? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? /* default undo group * |