设为首页 加入收藏

TOP

Oracle 用户user锁定lock如何知道是什么原因导致的(四)
2015-12-01 16:03:13 来源: 作者: 【 】 浏览:125
Tags:Oracle 用户 user 锁定 lock 如何 知道 什么 原因 导致
? ? ? ? ? ? ? ? ? ? ? ? ? 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 *
首页 上一页 1 2 3 4 5 6 下一页 尾页 4/6/6
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇MySQL多主一从同步 下一篇shell脚本:MySQL启动简易脚本

评论

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