欢迎来到天天文库
浏览记录
ID:34725136
大小:71.18 KB
页数:3页
时间:2019-03-10
《oracle用户解锁与加锁》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、SQL*Plus:Release9.2.0.4.0-ProductiononTueJul1418:12:382009 Copyright(c)1982,2002,OracleCorporation.Allrightsreserved. SQL>connsys/sysassysdba Connected. SQL>showuser USERis"SYS" SQL>descdba_users NameNull?Type -----------------------------------------------------------------
2、------------ USERNAMENOTNULLVARCHAR2(30) USER_IDNOTNULLNUMBER PASSWORDVARCHAR2(30) ACCOUNT_STATUSNOTNULLVARCHAR2(32) LOCK_DATEDATE EXPIRY_DATEDATE DEFAULT_TABLESPACENOTNULLVARCHAR2(30) TEMPORARY_TABLESPACENOTNULLVARCHAR2(30) CREATEDNOTNULLDATE PROFILENOTNULLVARCHAR2(30) I
3、NITIAL_RSRC_CONSUMER_GROUPVARCHAR2(30) EXTERNAL_NAMEVARCHAR2(4000) SQL>setlines200 SQL>selectusername,account_statusfromdba_users; USERNAMEACCOUNT_STATUS -------------------------------------------------------------- SYSOPEN SYSTEMOPEN DBSNMPOPEN SCOTTOPEN OUTLNEXPIRED&LOC
4、KED WMSYSEXPIRED&LOCKED ORDSYSEXPIRED&LOCKED ORDPLUGINSEXPIRED&LOCKED MDSYSEXPIRED&LOCKED CTXSYSEXPIRED&LOCKED XDBEXPIRED&LOCKED USERNAMEACCOUNT_STATUS -------------------------------------------------------------- ANONYMOUSEXPIRED&LOCKED WKSYSEXPIRED&LOCKED WKPROXYEXPIRE
5、D&LOCKED ODMEXPIRED&LOCKED ODM_MTREXPIRED&LOCKED OLAPSYSEXPIRED&LOCKED HREXPIRED&LOCKED OEEXPIRED&LOCKED PMEXPIRED&LOCKED SQL>alteruserhraccountunlock;(解锁) Useraltered. SQL>selectusername,account_statusfromdba_users; USERNAMEACCOUNT_STATUS --------------------------------
6、------------------------------ SYSOPEN SYSTEMOPEN DBSNMPOPEN SCOTTOPEN HREXPIRED OUTLNEXPIRED&LOCKED WMSYSEXPIRED&LOCKED ORDSYSEXPIRED&LOCKED ORDPLUGINSEXPIRED&LOCKED QL>alteruserhridentifiedbyhr;(更改密码) Useraltered. SQL>selectusername,account_statusfromdba_users; USERNA
7、MEACCOUNT_STATUS -------------------------------------------------------------- SYSOPEN SYSTEMOPEN DBSNMPOPEN SCOTTOPEN HROPEN OUTLNEXPIRED&LOCKED SQL>connhr/hr Connected. SQL>conn/assysdba Connected. SQL>alteruserhraccountlock;(加锁) Useraltered. SQL>selectusername,acco
8、unt_statusfromdba_u
此文档下载收益归作者所有