target_tablespace_name nologging
pctfree 10 pctused 60
storage(initial 5M next 5M minextents 1
maxextents unlimited pctincrease 0)
as select * from username.source_tablename where 条件;
注重事项: 新建表没有原来表索引和默认值, 只有非空(not null)约束素条件可以继续过来,其它约束条件或索引需要重新建立 2、直接插入思路方法 INSERT /*+ APPEND */ INTO target_tablename
SELECT * FROM username.source_tablename where 条件;
COMMIT;
注重事项: 用INSERT /*+ APPEND */ 思路方法会对target_tablename产生级别为6独占锁假如运行此命令时还有对target_tablenameDML操作会排队在它后面,对OLTP系统在用表操作是不合适 介绍说明:这两种思路方法转移数据时没有用SGA里数据缓冲区和事物处理回滚段, 也不写联机事物日志就象数据库装载工具Solload样直接把数据写到物理文件速度是很快在Oracle8i以后版本都可以使用
最新评论