ITPUB??ì3
12月微软Hyper-V虚拟化沙龙主题征集
ITPUB论坛 » Oracle数据库管理 » 当初建时表initial和next写得过小,如何重建?

标题: 当初建时表initial和next写得过小,如何重建?
离线 zhonglei
初级会员



精华贴数 0
个人空间 0
技术积分 8 (96973)
社区积分 0 (48929)
注册日期 2001-11-4
论坛徽章:0
      
      

发表于 2001-11-4 11:12 
当初建时表initial和next写得过小,如何重建?

当初建时表initial和next写得过小,导致扩展块太多。
如何修改initial和next,使扩展块不致很多。


只看该作者    顶部
离线 snowhite2000
白雪红尘


精华贴数 15
个人空间 460
技术积分 21295 (44)
社区积分 1102 (921)
注册日期 2001-9-28
论坛徽章:97
现任管理团队成员Heart of PUBHeart of PUBHeart of PUBHeart of PUBHeart of PUB
Heart of PUBHeart of PUBHeart of PUBHeart of PUBHeart of PUBHeart of PUB

发表于 2001-11-4 11:36 
一下子想不出聪明的办法,笨的办法有一个,
use rename command rename your current table.
create a new table with your old table name with properly parameter.  then use insert into as select ...  copy your data to new table, drop the old table.


只看该作者    顶部
离线 zp8
中级会员



精华贴数 0
个人空间 0
技术积分 487 (4055)
社区积分 13 (9396)
注册日期 2001-9-29
论坛徽章:1
授权会员     
      

发表于 2001-11-4 12:26 
In th first,export the table data.
truncate table
alter table
import the table ignore=y


__________________
ORACLE freeman
只看该作者    顶部
离线 snowhite2000
白雪红尘


精华贴数 15
个人空间 460
技术积分 21295 (44)
社区积分 1102 (921)
注册日期 2001-9-28
论坛徽章:97
现任管理团队成员Heart of PUBHeart of PUBHeart of PUBHeart of PUBHeart of PUB
Heart of PUBHeart of PUBHeart of PUBHeart of PUBHeart of PUBHeart of PUB

发表于 2001-11-4 12:31 
you cannot change initial size by alter table command.


只看该作者    顶部
离线 duanyan
中级会员



精华贴数 1
个人空间 0
技术积分 425 (4649)
社区积分 1 (33157)
注册日期 2001-10-25
论坛徽章:1
授权会员     
      

发表于 2001-11-4 12:32 
other way to change it

use ur schema manager, locater to the target table,and in it's properties ,u can choice the storage and there u can change the next property.but the initial property can not be changed.in fact it don't  influence  ur use.


只看该作者    顶部
离线 llittle
一般会员



精华贴数 0
个人空间 0
技术积分 208 (9213)
社区积分 4 (16765)
注册日期 2001-10-9
论坛徽章:1
授权会员     
      

发表于 2001-11-4 14:17 
change the next and pctincrease value for the future extent allocate


只看该作者    顶部
离线 zhuyg
中级会员



精华贴数 0
个人空间 0
技术积分 264 (7455)
社区积分 2 (23301)
注册日期 2001-10-10
论坛徽章:1
授权会员     
      

发表于 2001-11-5 07:59 
exp/imp


只看该作者    顶部
离线 Arrayttdb
si bu hui gai de you xia


精华贴数 3
个人空间 0
技术积分 2341 (686)
社区积分 2587 (512)
注册日期 2001-9-24
论坛徽章:3
ITPUB元老会员2006贡献徽章授权会员   
      

发表于 2001-11-5 09:32 


QUOTE:
最初由 zp8 发布
In th first,export the table data.
truncate table
alter table
import the table ignore=y


why "alter table",not drop table and recreate table?


__________________
whopawhohttp://www.itpub.net/search.php今天你google了没有?
只看该作者    顶部
 
    

相关内容


CopyRight 1999-2006 itpub.net All Right Reserved.
北京皓辰广域网络信息技术有限公司. 版权所有
E-mail:Webmaster@itpub.net
京ICP证:010037号 联系我们 法律顾问