-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathusers.sql
More file actions
30 lines (25 loc) · 691 Bytes
/
users.sql
File metadata and controls
30 lines (25 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
-- Lists database users
SET LINESIZE 200
SET PAGESIZE 1000
COLUMN username FORMAT A30
COLUMN account_status FORMAT A25
COLUMN lock_date FORMAT A11
COLUMN expiry_date FORMAT A11
COLUMN created FORMAT A11
COLUMN default_tablespace FORMAT A15
COLUMN temporary_tablespace FORMAT A15
COLUMN profile FORMAT A15
prompt ***************
prompt ** Users **
prompt ***************
prompt
SELECT username,
account_status,
TO_CHAR(lock_date, 'DD-MM-YYYY') AS lock_date,
TO_CHAR(expiry_date, 'DD-MM-YYYY') AS expiry_date,
default_tablespace,
temporary_tablespace,
TO_CHAR(created, 'DD-MM-YYYY') AS created,
profile
FROM dba_users
ORDER BY username;