#切换到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;
本文出自 “技术在手,天下我有” 博客,请务必保留此出处http://xin521long.blog.51cto.com/11884590/1833634
原文地址:http://xin521long.blog.51cto.com/11884590/1833634