0
点赞
收藏
分享

微信扫一扫

.数据库备份导出空表的解决方案


.数据库备份导出空表的解决方案

1.查询当前用户下的所有空表,一个用户最好对应一个默认的表空间,命令如下:   >SQL:  select table_name from user_tables where num_rows='0' 2.根据上述查询的语句,可以构建针对空表分配空间的命令语句,具体如下;           >SQL:select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0 or num_rows is null(注意:很多教程没有这里,这里是有可能位空的)

举报

相关推荐

0 条评论