Oracle 用户状态查询
Oracle 用户状态查询
#切换到Oracle用户
su - oracle
#登录sqlplus
sqlplus / as sysdba
#设置显示格式
set pagesize 300;
set linesize 300;
#查询用户列表及用户状态
select USERNAME,password,ACCOUNT_STATUS from dba_users;
#查看用户分配的权限
select * from dba_role_privs order by GRANTEE;
select * from dba_role_privs where GRANTEE = 'PATROL';
#查询Oracle的密码策略配置
select profile from dba_users where username='user_name';
#查询默认帐户是否使用默认口令
[oracle@yjbsdb3 ~]$ sqlplus
set pagesize 300;
set linesize 300;
select USERNAME,password,ACCOUNT_STATUS from dba_users;
相关推荐
oraclemch 2020-11-06
Seandba 2020-08-16
dbasunny 2020-08-16
娜娜 2020-06-22
lklong 2020-11-22
shilukun 2020-10-10
周嘉笙 2020-11-09
iilegend 2020-10-19
EricRay 2020-10-16
zhuzhufxz 2020-09-16
dataminer 2020-08-17
bfcady 2020-08-16
Hody 2020-08-16
FightFourEggs 2020-08-16
数据库设计 2020-08-16
Omega 2020-08-16
zjyzz 2020-08-16
yanghuatong 2020-08-16