exp,imp 小参数详解(之二)

本文详细解析了Oracle数据库IMP工具中的COMMIT参数的作用与影响。包括不同设置下(如Y/N)的数据导入行为变化,特别是在嵌套表、分区表及包含特定类型列(如LOBs)的表中如何进行事务提交。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 COMMIT
Default: n
Specifies whether Import should commit after each array insert. By default, Import commits only after loading each table, and Import performs a rollback when an error occurs, before continuing with the next object.

If a table has nested table columns or attributes, the contents of the nested tables are imported as separate tables. Therefore, the contents of the nested tables are always committed in a transaction distinct from the transaction used to commit the outer table.

If COMMIT=n and a table is partitioned, each partition and subpartition in the Export file is imported in a separate transaction.

For tables containing LOBs, LONG, BFILE, REF, ROWID, or UROWID columns, array inserts are not done. If COMMIT=y, Import commits these tables after each row.


||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1.如果指定commit=Y,imp的时候 每个组(array) insert之后,都会commit.(Specifies whether Import should commit after each array insert.)如果是NO,每个表装后才进行一次commit,如果有错,将回滚这个操作。
2.commit=n的情况下,嵌套表和分区表都是在单独的事务中间提交的。(If a table has nested table columns or attributes, the contents of the nested tables are imported as separate tables. Therefore, the contents of the nested tables are always committed in a transaction distinct from the transaction used to commit the outer table.)
3.对于包含LOBS.LONG.BFILE.REF.ROWID.UROWID列的表,如果选择commit=y,imp的时候会在每行插入之后做commit的操作。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值