设为首页 加入收藏

TOP

Oracle 用户user锁定lock如何知道是什么原因导致的(五)
2015-12-01 16:03:13 来源: 作者: 【 】 浏览:126
Tags:Oracle 用户 user 锁定 lock 如何 知道 什么 原因 导致
/
? defgrp_seq#? number,? ? ? ? ? ? ? /* global sequence number for? the grp *
? spare? ? ? ? varchar2("M_IDEN"),? ? ? ? ? ? ? ? ? /* reserved for future */
? astatus? ? ? number default 0 not null,? ? ? ? ? /* status of the account */
? ? ? ? ? ? ? ? /* 0x00 =? ? ? 0 = Open? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? */
? ? ? ? ? ? ? ? /* 0x01 =? ? ? 1 = Locked? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? */
? ? ? ? ? ? ? ? /* 0x02 =? ? ? 2 = Expired? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? */
? ? ? ? ? ? ? ? /* 0x03 =? ? ? 3 = Locked and Expired? ? ? ? ? ? ? ? ? ? ? */
? ? ? ? ? ? ? ? /* 0x10 =? ? ? 16 = Password matches a default value? ? ? ? */
? lcount? ? ? ? number default 0 not null, /* count of failed login attempts */
? defschclass? varchar2("M_IDEN"),? ? ? ? ? ? ? ? /* initial consumer group */
? ext_username? varchar2("M_VCSZ"),? ? ? ? ? ? ? ? ? ? /* external username */
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? /* also as base schema name for adjunct schemas */
? spare1? ? ? ? number, /* used for schema level supp. logging: see ktscts.h */
? spare2? ? ? ? number,? ? ? /* used to store edition id for adjunct schemas */
? spare3? ? ? ? number,
? spare4? ? ? ? varchar2(1000),
? spare5? ? ? ? varchar2(1000),
? spare6? ? ? ? date
?)
?cluster c_user#(user#)



而据上可知,user$的resource$是与表profile$的profile#关联,所以还是要分析profile$表



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#


?



?SQL> desc dba_profiles;
? Name? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Null?? ? Type
? ----------------------------------------- -------- ----------------------------
?PROFILE? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? NOT NULL VARCHAR2(30)
? RESOURCE_NAME? ? ? ? ? ? ? ? ? ? ? ? ? ? NOT NULL VARCHAR2(32)
? RESOURCE_TYPE? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? VARCHAR2(8)
? LIMIT? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?

首页 上一页 2 3 4 5 6 下一页 尾页 5/6/6
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇MySQL多主一从同步 下一篇shell脚本:MySQL启动简易脚本

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: