免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 3558 | 回复: 13
打印 上一主题 下一主题

Pending的解除问题以及数据迁移 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-07-09 13:47 |只看该作者 |倒序浏览
1。如何消除DB2中各种pending?例如backup pending为yes的时候,可以在备份后,backup pending自动会变为no,但是我如何强制转换为no呢??
是用update指令,但是
update database configuration for sample using backup_pending no
会出错,那该如何写呢?

2。如何由sql server中的某个表把数据迁移到db2中??

thanks!!! :wink:

论坛徽章:
0
2 [报告]
发表于 2003-07-09 14:27 |只看该作者

Pending的解除问题以及数据迁移

2. SQLSERVER DTS啊
    如果你用過DELPHI, 那DATAPUMP也很好的

论坛徽章:
0
3 [报告]
发表于 2003-07-09 14:46 |只看该作者

Pending的解除问题以及数据迁移

接触不多!

论坛徽章:
0
4 [报告]
发表于 2003-07-09 15:20 |只看该作者

Pending的解除问题以及数据迁移

我使用dts导数据以后,发现db的一致性(consistent)变为no,该如何将他恢复正常?rollback work执行后不行。

论坛徽章:
0
5 [报告]
发表于 2003-07-09 15:35 |只看该作者

Pending的解除问题以及数据迁移

另外,pending问题有大侠解决吗?因为有时候因为误操作引起backup pending又要做Backup的话,如果是大数据库那样会很慢。

论坛徽章:
0
6 [报告]
发表于 2003-07-09 15:51 |只看该作者

Pending的解除问题以及数据迁移

1. db2dart

论坛徽章:
0
7 [报告]
发表于 2003-07-09 17:33 |只看该作者

Pending的解除问题以及数据迁移

如何使用db2dart??能举例吗?
谢谢CCBZZP大哥

论坛徽章:
0
8 [报告]
发表于 2003-07-09 17:45 |只看该作者

Pending的解除问题以及数据迁移

db2dart sample /t /tsi 3 /tn T1



Look for the T1 entry. It should look something like this:

    Table inspection start: DB2.T1

      Data inspection phase start. Data obj: 4  In pool: 3
      Data inspection phase end.


      Index inspection phase start. Index obj: 4  In pool: 3
       Scanning pages for index itoken(1) root page:258p.
      Index inspection phase end.

   Table inspection end.



As you can see, both the data object (the table) and the index object have the same table space ID (4) and object ID (3). To mark this index object as bad, execute the following db2dart command:

db2dart sample /mi /tsi 3 /oi 4



If this is successful, you will see the following:

Connecting to Buffer Pool Services...
Attempting to mark index (p=3;o=4) as bad.

Modification for page (obj rel 0, pool rel 256) of pool ID (3) obj ID
(4), written out to disk successfully.
                     ______________________________________

         The requested DB2DART processing has completed successfully!
                     All operation completed without error;
                   no problems were detected in the database.
                     ______________________________________



When T2 was created, it was created such that its table was in one table space and its indexes were in another. Find the index object ID for this table:

db2dart sample /t /tsi 3 /tn T2



Look for the T2 entry. It should look something like this:

    Table inspection start: DB2.T2

      Data inspection phase start. Data obj: 5  In pool: 3
      Data inspection phase end.


      Index inspection phase start. Index obj: 4  In pool: 4
      Index inspection phase end.

   Table inspection end.



In this case, the table space IDs are different (this is expected) and the object IDs are different as well. To mark the index object bad, specify the index table space (4) and index object ID (4):

db2dart sample /mi /tsi 4 /oi 4



If this is successful, you will see the following:

Connecting to Buffer Pool Services...
Attempting to mark index (p=4;o=4) as bad.

Modification for page (obj rel 0, pool rel 12 of pool ID (4) obj ID
(4), written out to disk successfully.
                     ______________________________________

         The requested DB2DART processing has completed successfully!
                     All operation completed without error;
                   no problems were detected in the database.
                     ______________________________________



If you accidentally use the table space ID and object ID of the base table, it will fail because the index object will not be found:

db2dart sample /mi /tsi 3 /oi 5

Connecting to Buffer Pool Services...
Attempting to mark index (p=3;o=5) as bad.

                     ______________________________________

                    DB2DART Processing completed with error!

                                  WARNING:                        
                    The inspection phase did not complete!

论坛徽章:
0
9 [报告]
发表于 2003-07-10 11:35 |只看该作者

Pending的解除问题以及数据迁移

db2dart该怎么用来解决pending问题?能否讲讲步骤吗?我看了它的说明,没有明白。
谢谢ccbzzp
另外,数据库会经常出现consistent=no,这样的话该怎么解决?
restart?

论坛徽章:
0
10 [报告]
发表于 2003-07-11 12:58 |只看该作者

Pending的解除问题以及数据迁移

我遇到的backup pending一般是某个tbs啊!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP