Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
28 lines (21 loc) · 1.02 KB

File metadata and controls

28 lines (21 loc) · 1.02 KB
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
-- | PURPOSE : Provide a summary report of all clients making use of this ASM |
-- | instance. |
-- | NOTE : As with any code, ensure to test this script in a development |
-- | environment before attempting to run it in production. |
-- +----------------------------------------------------------------------------+
SET PAGESIZE 9999
SET VERIFY off
COLUMN disk_group_name FORMAT a20 HEAD 'Disk Group Name'
COLUMN instance_name FORMAT a20 HEAD 'Instance Name'
COLUMN db_name FORMAT a9 HEAD 'Database Name'
COLUMN status FORMAT a12 HEAD 'Status'
break on report on disk_group_name skip 1
SELECT
a.name disk_group_name
, c.instance_name instance_name
, c.db_name db_name
, c.status status
FROM
v$asm_diskgroup a JOIN v$asm_client c USING (group_number)
ORDER BY
a.name;
Morty Proxy This is a proxified and sanitized view of the page, visit original site.