能源采矿

如何看当前INFORMIX中有哪些数据库空间?

谢谢  如何看当前INFORMIX中有哪些数据库空间?为迁移做准备
参与3

3 同行回答

filvyo filvyo 系统工程师 B
onstat -d显示全部
onstat -d 收起
互联网服务 · 2013-01-31
浏览514
chenchao79 chenchao79 技术经理 浪潮通信
在给你一个看dbs使用情况的sqlselect name dbspace,sum(chksize) allocated,sum(nfree) free,round (((sum(chksize)-sum(nfree))/sum(chksize))*100,4)||"%" pcusedfrom sysdbspaces d,syschunks cwhere d.dbsnum=c.dbsnum group by name order by 4 desc显示全部
在给你一个看dbs使用情况的sql
select name dbspace,sum(chksize) allocated,sum(nfree) free,
round (((sum(chksize)-sum(nfree))/sum(chksize))*100,4)||"%" pcused
from sysdbspaces d,syschunks c
where d.dbsnum=c.dbsnum group by name order by 4 desc 收起
电信设备制造商 · 2013-01-31
浏览524
yangyong yangyong 项目经理 pharmacodia
[informix@kdyw ~]$ onstat -dYour evaluation license will expire on 2013-04-10 00:00:00IBM Informix Dynamic Server Version 11.70.FC7TL -- On-Line -- Up 7 days 23:20:35 -- 181988 KbytesDbspacesaddress          number ...显示全部
[informix@kdyw ~]$ onstat -d
Your evaluation license will expire on 2013-04-10 00:00:00

IBM Informix Dynamic Server Version 11.70.FC7TL -- On-Line -- Up 7 days 23:20:35 -- 181988 Kbytes

Dbspaces
address          number   flags      fchunk   nchunks  pgsize   flags    owner    name
4b772028         1        0x70001    1        1        2048     N  BA    informix rootdbs
4b89e5b0         2        0x70001    2        1        2048     N  BA    informix physdbs
4b89e758         3        0x60001    3        1        2048     N  BA    informix logdbs
4b89e900         4        0x60001    4        1        2048     N  BA    informix datadbs
4b89eaa8         5        0x68001    5        1        2048     N SBA    informix sbspace
4b89ec50         6        0x42001    6        1        2048     N TBA    informix tempdbs
6 active, 2047 maximum

Chunks
address          chunk/dbs     offset     size       free       bpages     flags pathname
4b7721d0         1      1      0          100000     90971                 PO-B-- /opt/IBM/informix/ol_informix1170_1/dbspaces/rootdbs
4b89edf8         2      2      0          25088      459                   PO-B-- /opt/IBM/informix/ol_informix1170_1/dbspaces/plogdbs
4b7724a0         3      3      0          30720      3019                  PO-B-- /opt/IBM/informix/ol_informix1170_1/dbspaces/llogdbs
4b7726a0         4      4      0          25600      23945                 PO-B-- /opt/IBM/informix/ol_informix1170_1/dbspaces/datadbs
4b7728a0         5      5      0          16384      15205      15205      POSB-- /opt/IBM/informix/ol_informix1170_1/dbspaces/sbspace
                                 Metadata 1126       837        1126   
4b772aa0         6      6      0          25600      25547                 PO-B-- /opt/IBM/informix/ol_informix1170_1/dbspaces/tempdbs
6 active, 32766 maximum

NOTE: The values in the "size" and "free" columns for DBspace chunks are
      displayed in terms of "pgsize" of the DBspace to which they belong.


Expanded chunk capacity mode: always 收起
互联网服务 · 2013-01-18
浏览498

提问者

liuli98
采购代理/经理 琉璃
评论90

问题状态

  • 发布时间:2013-01-16
  • 关注会员:0 人
  • 问题浏览:5160
  • 最近回答:2013-01-31
  • X社区推广