mdvorkinNov 19, 20201 min readDatabase Users (with last password change date)select s.name "User", p.granted_role "Role", s.ptime "Password change date" from dba_role_privs p, sys.user$ s, dba_users dwhere s.name = p.grantee and d.username = s.name and d.account_status = 'OPEN' order by 1,2,3;
select s.name "User", p.granted_role "Role", s.ptime "Password change date" from dba_role_privs p, sys.user$ s, dba_users dwhere s.name = p.grantee and d.username = s.name and d.account_status = 'OPEN' order by 1,2,3;
Get DDL for Oracle objectset feed off set long 1000000 set longchunksize 1000000 set pages 0 set lines 32767 set trimspool on set feed off set wrap on set...
Cancelled scheduled concurrent requestsThis SQL query returns all concurrent requests that were scheduled in the past and are not scheduled currently. It can be used for...
Foreign key constraint violation/* This PL/SQL script checks violations of foreign key constraints Example of the tables: CREATE TABLE temp_supplier ( supplier_id...
Comments