2026-03-12 20:23:15
This commit is contained in:
56
vg/dnfs_files.sql
Normal file
56
vg/dnfs_files.sql
Normal file
@@ -0,0 +1,56 @@
|
||||
@@header
|
||||
|
||||
/*
|
||||
*
|
||||
* Author : Vishal Gupta
|
||||
* Purpose : Display dNFS Files
|
||||
* Version :
|
||||
* Parameters :
|
||||
*
|
||||
*
|
||||
* Revision History:
|
||||
* ===================
|
||||
* Date Author Description
|
||||
* --------- ------------ -----------------------------------------
|
||||
* 15-Aug-13 Vishal Gupta Created
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/************************************
|
||||
* INPUT PARAMETERS
|
||||
************************************/
|
||||
|
||||
/************************************
|
||||
* CONFIGURATION PARAMETERS
|
||||
************************************/
|
||||
|
||||
|
||||
Prompt ******************
|
||||
Prompt * dNFS Files
|
||||
Prompt ******************
|
||||
|
||||
COLUMN inst_id HEADING "I#" FORMAT 99
|
||||
COLUMN pnum HEADING "Process|Number" FORMAT 999999
|
||||
COLUMN svrname HEADING "ServerName" FORMAT a20
|
||||
COLUMN filesize HEADING "FileSize|(GB)" FORMAT 99999.99
|
||||
COLUMN filename HEADING "FileName" FORMAT a100
|
||||
|
||||
BREAK ON inst_id ON svrname SKIP 1
|
||||
|
||||
SELECT f.inst_id
|
||||
, s.svrname
|
||||
, f.pnum
|
||||
, ROUND(f.filesize/power(1024,3),2) filesize
|
||||
, f.filename
|
||||
FROM gv$dnfs_servers s
|
||||
,gv$dnfs_files f
|
||||
WHERE s.inst_id = f.inst_id
|
||||
AND s.id = f.svr_id
|
||||
ORDER BY f.inst_id
|
||||
, s.svrname
|
||||
, f.filename
|
||||
;
|
||||
|
||||
@@footer
|
||||
Reference in New Issue
Block a user