Sto cercando di ottenere le dimensioni totali di tutte le foreste collegate a un determinato database.Per ottenere le dimensioni totali di tutte le foreste collegate a un determinato database
Usando sottostante Codice ho avuto le dimensioni di tutti i singoli foreste, ma bloccato su come realizzare la soluzione:
for $db-id in xdmp:databases()
let $db-name := xdmp:database-name($db-id)
for $forests in xdmp:forest-status(xdmp:database-forests(xdmp:database($db-name)))
let $space := $forests//forest:device-space
let $f_name := $forests//forest:forest-name
for $stand in $forests//forest:stands
let $f_size := fn:sum($stand/forest:stand/forest:disk-size)
Grazie Man .. !! Ha funzionato bene ... :) –