8i | 9i | 10g | 11g | 12c | 13c | 18c | 19c | 21c | 23c | Misc | PL/SQL | SQL | RAC | WebLogic | Linux

Home » Dba » Here

Script: default_passwords.sql

( Download Script )

-- -----------------------------------------------------------------------------------
-- File Name    : https://oracle-base.com/dba/11g/default_passwords.sql
-- Author       : Tim Hall
-- Description  : Displays users with default passwords.
-- Requirements : Access to the DBA views.
-- Call Syntax  : @default_passwords
-- Last Modified: 26-NOV-2011
-- -----------------------------------------------------------------------------------

SELECT a.username, b.account_status
FROM   dba_users_with_defpwd a
       JOIN dba_users b ON a.username = b.username
ORDER BY 1;