免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123
最近访问板块 发新帖
楼主: hongmei_01
打印 上一主题 下一主题

删除chunk问题,求教!! [复制链接]

论坛徽章:
11
金牛座
日期:2015-03-19 16:56:22数据库技术版块每日发帖之星
日期:2016-08-02 06:20:00数据库技术版块每日发帖之星
日期:2016-04-24 06:20:00数据库技术版块每日发帖之星
日期:2016-04-13 06:20:00IT运维版块每日发帖之星
日期:2016-04-13 06:20:00数据库技术版块每日发帖之星
日期:2016-02-03 06:20:00数据库技术版块每日发帖之星
日期:2015-08-06 06:20:00季节之章:春
日期:2015-03-27 15:54:57羊年新春福章
日期:2015-03-27 15:54:37戌狗
日期:2015-03-19 16:56:41数据库技术版块每日发帖之星
日期:2016-08-18 06:20:00
21 [报告]
发表于 2008-01-23 09:48 |只看该作者
原帖由 wanyaozong 于 2008-1-22 16:40 发表
回19楼,昨天就已经试过了,3个chunk都只有TBLSPACE,可是chunk也不能删,报chunk not empty ,dbspace也不能删,报not empty


额.......昨天我做了个测试..在RHEL AS3 + IDS 9.40UC4W4 版本里先dbexport出database,然后就可以删除dbspaces....
但是在dbimport后,第一个chunk里仍然有TBLSpace

============================================================
以下是来自IIUG里的Mark Jamison对这种情况的解释..

The tblspace tblspace entries are not tied to databases, but rather
dbspaces. Any database object, for any database in that dbspaces is
represented in the tblspace tblspace. As you get more datbasee objects, you
get more tblspace tblspace entires, which eventually leads to additional
extents like what you showed us below. Since IDS doesn't allow for users
to drop internal system tables, it means that you have to call IBM
Informix Technical support to remove the chunk or the dbspace,
depending on what you want.

It also appears at the moment, that at least by our documentation you
cannot prune the tblspace tblspace table in any version. The good news
though is that beginning in version 10 you can size the tblspace
tblspace table's first extent and next extent. For dbspacess that
expect to have a lot of tables, or detached indices this can really help. To
reference the
manual

You can specify a non-default size for the first and next extents for a
tblspace tblspace in the following ways:

For the root dbspace, set the TBLTBLFIRST and TBLTBLNEXT configuration
parameters.For non-root dbspaces, use the onspaces utility -ef and -en options
when you create
a dbspace.

But again to your original problem, you need to contact Tech Support.

Hope this Helps,

Mark Jamison

论坛徽章:
11
金牛座
日期:2015-03-19 16:56:22数据库技术版块每日发帖之星
日期:2016-08-02 06:20:00数据库技术版块每日发帖之星
日期:2016-04-24 06:20:00数据库技术版块每日发帖之星
日期:2016-04-13 06:20:00IT运维版块每日发帖之星
日期:2016-04-13 06:20:00数据库技术版块每日发帖之星
日期:2016-02-03 06:20:00数据库技术版块每日发帖之星
日期:2015-08-06 06:20:00季节之章:春
日期:2015-03-27 15:54:57羊年新春福章
日期:2015-03-27 15:54:37戌狗
日期:2015-03-19 16:56:41数据库技术版块每日发帖之星
日期:2016-08-18 06:20:00
22 [报告]
发表于 2008-01-23 09:56 |只看该作者

删除含TBLSpace的dbspaces的操作(接上).

1,dbexport database and drop it.
2,onstat -d
458b0c80 5     5    25         50000      49797                 PO-B  /opt/informix/data/workdbs1
3,oncheck -pe workdbs1
DBspace Usage Report: workdbs1            Owner: informix  Created: 10/16/2007


Chunk Pathname                                         Size      Used      Free
     5 /opt/informix/data/workdbs1                     50000       203     49797

Description                                                     Offset     Size
------------------------------------------------------------- -------- --------
RESERVED PAGES                                                       0        2
CHUNK FREELIST PAGE                                                  2        1
workdbs1:'informix'.TBLSpace                                         3       50
FREE                                                                53      712
workdbs1:'informix'.TBLSpace                                       765       50
FREE                                                               815     1765
workdbs1:'informix'.TBLSpace                                      2580       50
FREE                                                              2630    12745
workdbs1:'informix'.TBLSpace                                     15375       50
FREE                                                             15425    34575

Total Used:      203
Total Free:    49797

4,drop workdbs1
onspaces -d workdbs1
WARNING: Dropping a DBspace.
Do you really want to continue? (y/n)y
Space successfully dropped.
** WARNING **  A level 0 archive will need to be done before any chunks from
DBspace workdbs1 can be reused (see Dynamic Server Administrator's manual).

THE dbspace workdbs1 droped...

论坛徽章:
0
23 [报告]
发表于 2008-01-30 16:45 |只看该作者
我也做了测试,数据库版本7.32  操作系统aix5.2,具体如下
DBspace Usage Report: wjfldbs             Owner: informix  Created: 12/20/2007

    Chunk: 13  /usr/informix/disk/wjfl1                  Size     Used     Free
                                                   524287      653   523634

        Disk usage for Chunk 13                          Start    Length
        -------------------------------------------  --------- ---------
        OTHER RESERVED Pages                                 0         2
        CHUNK FREE LIST PAGE                                 2         1
        TBLSPACE TBLSPACE                                    3        50
        FREE                                                53       434
        TBLSPACE TBLSPACE                                  487        50
        FREE                                               537      2306
        TBLSPACE TBLSPACE                                 2843        50
        FREE                                              2893     11562
        TBLSPACE TBLSPACE                                14455        50
        FREE                                             14505      2827
        TBLSPACE TBLSPACE                                17332        50
        FREE                                             17382     22108
        TBLSPACE TBLSPACE                                39490        50
        FREE                                             39540      3923
        TBLSPACE TBLSPACE                                43463        50
        FREE                                             43513       813
        TBLSPACE TBLSPACE                                44326        50
        FREE                                             44376    171110
        TBLSPACE TBLSPACE                               215486        50
        FREE                                            215536     38513
        TBLSPACE TBLSPACE                               254049        50
        FREE                                            254099      9225
        TBLSPACE TBLSPACE                               263324        50
        FREE                                            263374       802
        TBLSPACE TBLSPACE                               264176        50
        FREE                                            264226    249319
        TBLSPACE TBLSPACE                               513545        50
        FREE                                            513595     10692

    Chunk: 14  /usr/informix/disk/wjflw                  Size     Used     Free
                                                   524287       53   524234

        Disk usage for Chunk 14                          Start    Length
        -------------------------------------------  --------- ---------
        OTHER RESERVED Pages                                 0         2
        CHUNK FREE LIST PAGE                                 2         1
        FREE                                                 3    515599
        TBLSPACE TBLSPACE                               515602        50
        FREE                                            515652      8635

    Chunk: 15  /usr/informix/disk/wjfl3                  Size     Used     Free
                                                   524287       45   524242

        Disk usage for Chunk 15                          Start    Length
        -------------------------------------------  --------- ---------
        OTHER RESERVED Pages                                 0         2
        CHUNK FREE LIST PAGE                                 2         1
        FREE                                                 3    434999
        TBLSPACE TBLSPACE                               435002        50
        FREE                                            435052     89235
执行onspaces结果如下
[P615]:/swnx/run>onspaces -d wjfldbs -p /usr/informix/disk/wjfl3 -o 0
WARNING:  Dropping a chunk.
Do you really want to continue? (y/n)y
Chunk not dropped.
ISAM error:  Chunk not empty

[P615]:/swnx/dblive/DDtrace>onspaces -d wjfldbs
WARNING: Dropping a DBspace.
Do you really want to continue? (y/n)y
Cannot drop the Space.
ISAM error: DBspace is not empty

论坛徽章:
0
24 [报告]
发表于 2008-11-06 18:45 |只看该作者
求助。我也遇到这种问题了。

论坛徽章:
0
25 [报告]
发表于 2008-11-06 18:45 |只看该作者

补充一下

我的拷屏:
Chunk Pathname                                         Size      Used      Free
    54 /home/informix/dbs/datadbs132                 1000000       603    999397

Description                                                     Offset     Size
------------------------------------------------------------- -------- --------
RESERVED PAGES                                                       0        2
CHUNK FREELIST PAGE                                                  2        1
FREE                                                                 3   916812
datadbs:'informix'.TBLSpace                                     916815      200
FREE                                                            917015    52009
datadbs:'informix'.TBLSpace                                     969024      200
FREE                                                            969224     1673
datadbs:'informix'.TBLSpace                                     970897      200
FREE                                                            971097    28903

Total Used:      603
Total Free:   999397

论坛徽章:
0
26 [报告]
发表于 2008-11-06 18:46 |只看该作者
里面是有600个page用掉了。但是不知谁用的以及怎么删除

论坛徽章:
11
金牛座
日期:2015-03-19 16:56:22数据库技术版块每日发帖之星
日期:2016-08-02 06:20:00数据库技术版块每日发帖之星
日期:2016-04-24 06:20:00数据库技术版块每日发帖之星
日期:2016-04-13 06:20:00IT运维版块每日发帖之星
日期:2016-04-13 06:20:00数据库技术版块每日发帖之星
日期:2016-02-03 06:20:00数据库技术版块每日发帖之星
日期:2015-08-06 06:20:00季节之章:春
日期:2015-03-27 15:54:57羊年新春福章
日期:2015-03-27 15:54:37戌狗
日期:2015-03-19 16:56:41数据库技术版块每日发帖之星
日期:2016-08-18 06:20:00
27 [报告]
发表于 2008-11-06 19:46 |只看该作者
额..chunk里有tblspace是不可以删除chunk的,只可以删除chunk所在的dbspace..

论坛徽章:
0
28 [报告]
发表于 2008-11-10 17:23 |只看该作者
rootdbs 上我是不敢删chunk的,谁知道chunk里面写了些什么系统数据,删了会出问题吧。还是不要删了

论坛徽章:
0
29 [报告]
发表于 2008-11-11 10:24 |只看该作者
删库,再删dbs

论坛徽章:
0
30 [报告]
发表于 2008-11-11 10:25 |只看该作者
顶一下暗夜
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP