首页 > 数据库 >Oracle-解除用户锁定

Oracle-解除用户锁定

时间:2022-10-04 19:00:33浏览次数:61  
标签:username KERNEL account PASSWORD 解除 UNLIMITEDDEFAULT TIME Oracle 锁定

查询用户状态

select username,account_status from dba_users;
select username,account_status,lock_date from dba_users;
select username,account_status,lock_date from dba_users order by 1;
select username,account_status,lock_date from dba_users where username = 'BAOYW';
select username,account_status,lock_date from dba_users where account_status <> 'OPEN' order by 1;

解除用户锁定

alter user username account unlock;

查看用户限制

set linesize 200
col profile for a20;
col limit for a30;
select profile,resource_name,resource_type,limit from dba_profiles where profile = 'DEFAULT';

PROFILE RESOURCE_NAME RESOURCE LIMIT
-------------------- -------------------------------- -------- ------------------------------
DEFAULT COMPOSITE_LIMIT KERNEL UNLIMITED
DEFAULT SESSIONS_PER_USER KERNEL UNLIMITED
DEFAULT CPU_PER_SESSION KERNEL UNLIMITED
DEFAULT CPU_PER_CALL KERNEL UNLIMITED
DEFAULT LOGICAL_READS_PER_SESSION KERNEL UNLIMITED
DEFAULT LOGICAL_READS_PER_CALL KERNEL UNLIMITED
DEFAULT IDLE_TIME KERNEL UNLIMITED
DEFAULT CONNECT_TIME KERNEL UNLIMITED
DEFAULT PRIVATE_SGA KERNEL UNLIMITED
DEFAULT FAILED_LOGIN_ATTEMPTS PASSWORD 10
DEFAULT PASSWORD_LIFE_TIME PASSWORD 180

PROFILE RESOURCE_NAME RESOURCE LIMIT
-------------------- -------------------------------- -------- ------------------------------
DEFAULT PASSWORD_REUSE_TIME PASSWORD UNLIMITED
DEFAULT PASSWORD_REUSE_MAX PASSWORD UNLIMITED
DEFAULT PASSWORD_VERIFY_FUNCTION PASSWORD NULL
DEFAULT PASSWORD_LOCK_TIME PASSWORD 1
DEFAULT PASSWORD_GRACE_TIME PASSWORD 7
DEFAULT INACTIVE_ACCOUNT_TIME PASSWORD UNLIMITED

17 rows selected.

标签:username,KERNEL,account,PASSWORD,解除,UNLIMITEDDEFAULT,TIME,Oracle,锁定
From: https://blog.51cto.com/baoyw/5731494

相关文章

  • Oracle-ORA-03113与ORA-04031导致的PDB启动失败
    查阅了网上的大部分文章,原因有很多:归档使用率高导致的(​​ORA-03113​​​),冷备后出现日志文件比控制文件新导致的(​​ORA-03113​​​),没有一致性关库导致的(​​ORA-03113​......
  • oracle中的行转列,列转行
    行转列:源表:  casewhen:selecty,sum(casewhenq=1thenamtend)q1,sum(casewhenq=2thenamtend)q2,sum(casewhenq=3thenamtend)q3,sum(casewhenq=4......
  • [Oracle] LeetCode 48 Rotate Image 思维
    Youaregivenannxn2Dmatrixrepresentinganimage,rotatetheimageby90degrees(clockwise).Youhavetorotatetheimagein-place,whichmeansyouhave......
  • [Oracle] LeetCode 141 Linked List Cycle 判环
    Givenhead,theheadofalinkedlist,determineifthelinkedlisthasacycleinit.Thereisacycleinalinkedlistifthereissomenodeinthelistthat......
  • [Oracle] LeetCode 2 Add Two Numbers
    Youaregiventwonon-emptylinkedlistsrepresentingtwonon-negativeintegers.Thedigitsarestoredinreverseorder,andeachoftheirnodescontainsasin......
  • [Oracle] LeetCode 54 Spiral Matrix 模拟
    Givenanmxnmatrix,returnallelementsofthematrixinspiralorder.Solution点击查看代码classSolution{public:vector<int>spiralOrder(vector<ve......
  • oracle数据库运行内存PGA+SGA分配
    调整内存大小用dba身份进入oracle,(sqlplussys/密码assysdba):--显示内存分配情况showparametersga;--修改占用内存的大小altersystemsetsga_max_size=200mscop......
  • [Oracle] LeetCode 53 Maximum Subarray 贪心
    Givenanintegerarraynums,findthecontiguoussubarray(containingatleastonenumber)whichhasthelargestsumandreturnitssum.Asubarrayisacontig......
  • #yyds干货盘点#oracle常见面试题
    数据库对象:表(table)视图(view)序列(sequence)索引(index)同义词(synonym)1.视图:存储起来的select语句createviewemp_vwasselectemployee_id,last_name,salary......
  • Oracle 托管文件Oracle Managed Files
    什么是Oracle托管文件?使用Oracle托管文件可以简化Oracle数据库的管理。OracleManagedFiles使您(DBA)无需直接管理构成Oracle数据库的操作系统文件。使用Oracle......