最近作一个项目用到了原来项目的几张表,用pl/sql间原来的表导入到新建的库中提示表空间不存在,于是新建了需要的表空间A。可项目要求所有表使用新的表空间B,于是从网上索罗了很多修改表空间的方法终于搞定了。 主要用到了下面几个sql: (1) 查询占用该表空间的表: select segment_name,bytes/1024/1024 from dba_segments where tablespace_name='ts_name' and segment_type='TABLE'; (2) 修改表所使用的表空间: alter table buffalo_wf_processinstance move tablespace "ts_name"; (3) 修改带有大字段表的表空间: alter table tb_name(表名) move tablespace tbs_name(表空间名) lob(col_lob1(字段名),col_lob2) store as(tablesapce tbs_name); (4) 对于有索引的表重建索引: alter index PK_T_CMS_CATALOG(索引名) rebuild; 不知道各位高手在遇到这种情况的时候是如何修改它的表空间?