#切换到Oracle用户
su - oracle
#设置显示格式
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;