银行online

db2支持在线创建索引吗

请问db2支持在线创建索引吗?创建索引时是不是要锁表啊?db2 9.5
参与7

6同行回答

yellow-finyellow-fin项目经理浙江兰德纵横网络技术有限公司
应该是可以在线创建的,但是建议在业务低谷的时候操作另,新建索引后,必须runstats,才能被Db2优化器识别,这个很重要显示全部
应该是可以在线创建的,但是建议在业务低谷的时候操作
另,新建索引后,必须runstats,才能被Db2优化器识别,这个很重要收起
IT咨询服务 · 2014-02-07
浏览1218
drdb2drdb2系统工程师se
一般肯定在业务低峰建索引。。。 建索引的最后一刻,会加读锁,如果表非常大,肯定影响业务一下下 ...ysgift 发表于 2014-1-30 20:03 Agree.It is common practice/wisdom to do large index creation during less busy hours or maintenance window....显示全部
一般肯定在业务低峰建索引。。。 建索引的最后一刻,会加读锁,如果表非常大,肯定影响业务一下下 ...
ysgift 发表于 2014-1-30 20:03


Agree.
It is common practice/wisdom to do large index creation during less busy hours or maintenance window.收起
互联网服务 · 2014-01-30
浏览1246
drdb2drdb2系统工程师se
see the highlighted below:Notes    Concurrent read/write access to the table is permitted while an index is being created, except when the EXTEND USING clause is specified. However, the default index creation behavior differs for indexes on...显示全部
see the highlighted below:

Notes

    Concurrent read/write access to the table is permitted while an index is being created, except when the EXTEND USING clause is specified. However, the default index creation behavior differs for indexes on nonpartitioned tables, nonpartitioned indexes, and partitioned indexes:
        For indexes on nonpartitioned tables, once the index has been built, changes that were made to the table during index creation time are forward-fitted to the new index. Write access to the table is then briefly blocked while index creation completes, after which the new index becomes available.收起
互联网服务 · 2014-01-30
浏览1184
ysgiftysgift数据库管理员招商银行
一般肯定在业务低峰建索引。。。 建索引的最后一刻,会加读锁,如果表非常大,肯定影响业务一下下显示全部
一般肯定在业务低峰建索引。。。 建索引的最后一刻,会加读锁,如果表非常大,肯定影响业务一下下收起
银行 · 2014-01-30
浏览1245
wangzk0206wangzk0206数据库管理员scrcu
回复 2# drdb2    也就是说在业务高峰也可以创建索引吗?老大,您给的这个链接哪里有这句话哪?显示全部
回复 2# drdb2


   也就是说在业务高峰也可以创建索引吗?老大,您给的这个链接哪里有这句话哪?收起
银行 · 2014-01-30
浏览1199
drdb2drdb2系统工程师se
unlike MySQL, db2 index creation is onlinehttp://pic.dhe.ibm.com/infocente ... doc%2Fr0000919.html显示全部
unlike MySQL, db2 index creation is online
http://pic.dhe.ibm.com/infocente ... doc%2Fr0000919.html收起
互联网服务 · 2014-01-30
浏览1289

提问者

wangzk0206
数据库管理员scrcu

相关问题

问题状态

  • 发布时间:2014-01-29
  • 关注会员:1 人
  • 问题浏览:4344
  • 最近回答:2014-02-07
  • X社区推广