[英]error of finding size of database in IBM netezza Aginity workbench on win 7
I need to find the size of a database in Aginity Workbench for Netezza on win 7. 我需要在Win 7上的Netezza的Aginity Workbench中找到数据库的大小。
The SQL does not work for me: SQL对我不起作用:
select orx.database::nvarchar(64) as "databasename" ,
case when sum(sod.used_bytes) is null then 0 else sum(sod.used_bytes)/1073741824 end as "usedspace_gb",
case when sum(sod.allocated_bytes) is null then 0 else sum(sod.allocated_bytes)/1073741824 end as "allocatedspace_gb"
from _v_sys_object_dslice_info sod inner join _v_obj_relation_xdb orx on orx.objid = sod.tblid
group by "databasename"
order by "databasename";
The error is 错误是
permission denied on "_V_SYS_OBJECT_DSLICE_INFO".
Any 任何
Aginity Workbench will typically list the approximate database size next to name of each database in the object browser window, if you have permission to calculate the value. 如果您有权计算值,那么Aginity Workbench通常会在对象浏览器窗口中的每个数据库名称旁边列出近似的数据库大小。
In order to calculate the size of the database you need select privileges on _V_SYS_OBJECT_DSLICE_INFO and _V_OBJ_RELATION_XDB with in the database in question. 为了计算数据库的大小,您需要对所涉及的数据库具有_V_SYS_OBJECT_DSLICE_INFO和_V_OBJ_RELATION_XDB的特权。 You are not authorized to do what you want. 您无权做自己想做的事。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.