from castor_stager.accounting a, castor_stager.filesystem b, castor_stager.diskpool2svcclass c
from ".$db_instances[$service]['schema']."accounting a, ".$db_instances[$service]['schema']."filesystem b, ".$db_instances[$service]['schema']."diskpool2svcclass c
where a.filesystem = b.id
and b.diskpool = c.parent) temp, castor_stager.svcclass
where temp.svcclass = castor_stager.svcclass.id
and b.diskpool = c.parent) temp, ".$db_instances[$service]['schema']."svcclass
where temp.svcclass = ".$db_instances[$service]['schema']."svcclass.id
group by euid,name
UNION
select name , 'free_space' usern,free bsize
from (
select child svcclass,diskpool,sum(free) free
from castor_stager.filesystem a, castor_stager.diskpool2svcclass b
from ".$db_instances[$service]['schema']."filesystem a, ".$db_instances[$service]['schema']."diskpool2svcclass b
where a.diskpool = b.parent
group by child,diskpool ) c , castor_stager.svcclass
where c.svcclass = castor_stager.svcclass.id
group by child,diskpool ) c , ".$db_instances[$service]['schema']."svcclass
where c.svcclass = ".$db_instances[$service]['schema']."svcclass.id
order by name";
...
...
@@ -46,13 +42,9 @@ if (!OCIExecute($parsed1))
{echo"Error Executing Query";exit();}
$svcclass="foo";
$j=0;
echo"<svcclass>\n<username><volume in MBs>\n";
echo"<svcclass><username><userid><volume in MBs>\n";