25 lines
663 B
SQL
25 lines
663 B
SQL
|
|
|
|
select dba_users.USERNAME, dba_users.account_status, dba_users.PROFILE,
|
|
( select limit as PASSWORD_LIFE_TIME from dba_profiles where profile = dba_users.PROFILE and RESOURCE_NAME = 'PASSWORD_LIFE_TIME' ) as PASSWORD_LIFE_TIME
|
|
from dba_users
|
|
|
|
|
|
|
|
|
|
col USERNAME for a30
|
|
col PROFILE for a30
|
|
col PASSWORD_LIFE_TIME for a10
|
|
col ACCOUNT_STATUSfor a10
|
|
set long 20000 longchunksize 20000 linesize 1000 pagesize 0
|
|
select a.USERNAME, a.account_status, a.PROFILE, b.limit
|
|
from dba_users a
|
|
left join dba_profiles b on a.PROFILE = b.profile
|
|
where b.RESOURCE_NAME = 'PASSWORD_LIFE_TIME'
|
|
and b.limit = 'UNLIMITED'
|
|
;
|
|
|
|
|
|
|
|
SELECT instance_name,host_name, version FROM V$INSTANCE;
|