GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — common_oracle_scripts/sec_users.sql at master · webster5361/common_oracle_scripts

Expand file tree

/

sec_users.sql

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
executable file
·
53 lines (48 loc) · 2 KB
/

sec_users.sql

Copy path

File metadata and controls

executable file
·
53 lines (48 loc) · 2 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
SET TERMOUT OFF;
COLUMN current_instance NEW_VALUE current_instance NOPRINT;
SELECT rpad(instance_name, 17) current_instance FROM v$instance;
SET TERMOUT ON;
PROMPT
PROMPT +------------------------------------------------------------------------+
PROMPT | Report : Security - All Users |
PROMPT | Instance : &current_instance |
PROMPT +------------------------------------------------------------------------+
SET ECHO OFF
SET FEEDBACK 6
SET HEADING ON
SET LINESIZE 180
SET PAGESIZE 50000
SET TERMOUT ON
SET TIMING OFF
SET TRIMOUT ON
SET TRIMSPOOL ON
SET VERIFY OFF
CLEAR COLUMNS
CLEAR BREAKS
CLEAR COMPUTES
COLUMN username FORMAT a30 HEAD 'Username'
COLUMN account_status FORMAT a17 HEAD 'Status'
COLUMN expiry_date HEAD 'Expire Date'
COLUMN default_tablespace FORMAT a28 HEAD 'Default Tablespace'
COLUMN temporary_tablespace FORMAT a15 HEAD 'Temp Tablespace'
COLUMN created HEAD 'Created On'
COLUMN profile FORMAT a10 HEAD 'Profile'
COLUMN sysdba FORMAT a6 HEAD 'SYSDBA'
COLUMN sysoper FORMAT a7 HEAD 'SYSOPER'
SELECT distinct
a.username username
, a.account_status account_status
, TO_CHAR(a.expiry_date, 'mm/dd/yyyy HH24:MI:SS') expiry_date
, a.default_tablespace default_tablespace
, a.temporary_tablespace temporary_tablespace
, TO_CHAR(a.created, 'mm/dd/yyyy HH24:MI:SS') created
, a.profile profile
, DECODE(p.sysdba,'TRUE', 'TRUE','') sysdba
, DECODE(p.sysoper,'TRUE','TRUE','') sysoper
FROM
dba_users a
, v$pwfile_users p
WHERE
p.username (+) = a.username
ORDER BY username
/
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.