Oracle 使用者狀態查詢

來源:互聯網
上載者:User

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;

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.