怎么不中断用户访问在DB2 表LOAD的时候?

有一张表LOAD要15分钟,但是LOAD的时候用户就不能访问了,请问有什么好的思路可以保证用户可以24×7的访问这张表?

谢谢大神!!

参与5

2同行回答

dbliondblion数据库开发工程师天阳
参考官方文档: DB2信息中心中的解释提到的ALLOW READ ACCESSLoad will lock the target table in a share mode. The table state will be set to both Load In Progress and Read Access. Readers can access the non-delta portion of the data while the table is bein...显示全部

参考官方文档: DB2信息中心中的解释

提到的

ALLOW READ ACCESSLoad will lock the target table in a share mode. The table state will be set to both Load In Progress and Read Access. Readers can access the non-delta portion of the data while the table is being load. In other words, data that existed before the start of the load will be accessible by readers to the table, data that is being loaded is not available until the load is complete.

LOAD FROM file.del OF DEL MESSAGES file.msg INSERT INTO table_name ALLOW READ ACCESS

在LOAD期间可以访问表中的原有数(即非增量数据),增量导入数据在执行LOAD期间不可以访问。

收起
银行 · 2015-11-20
浏览995
marvelyumarvelyu软件开发工程师IBM
分区试试,按照分区导入显示全部

分区试试,按照分区导入

收起
互联网服务 · 2015-11-20
浏览710

提问者

小葱葱
研发工程师ibm

相关资料

问题状态

  • 发布时间:2015-11-20
  • 关注会员:2 人
  • 问题浏览:2211
  • 最近回答:2015-11-20
  • X社区推广