小叶同学在使用sqlldr加载数据时,觉得commit次数太多了,想加载更多行后再commit一次,而不是默认的每64行commit一次
我提醒他使用rows参数可以控制多少行提交一次
结果他加上rows=1000后,没有生效,如下图:
我在自己机器上测试,rows参数是生效的,如下:
[oracle@goolen goolen]$ seq 1 10000 > id.txt
[oracle@goolen goolen]$ cat a.ctl
load data
append into table sqlldr_test
(id)
SQL> create table sqlldr_test(id number);
[oracle@goolen goolen]$ sqlldr scott/tiger control=a.ctl data=id.txt
SQL*Loader: Release 10.2.0.4.0 - Production on Wed Dec 24 15:49:50 2014
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Commit point reached - logical record count 64
我提醒他使用rows参数可以控制多少行提交一次
结果他加上rows=1000后,没有生效,如下图:
我在自己机器上测试,rows参数是生效的,如下:
[oracle@goolen goolen]$ seq 1 10000 > id.txt
[oracle@goolen goolen]$ cat a.ctl
load data
append into table sqlldr_test
(id)
SQL> create table sqlldr_test(id number);
[oracle@goolen goolen]$ sqlldr scott/tiger control=a.ctl data=id.txt
SQL*Loader: Release 10.2.0.4.0 - Production on Wed Dec 24 15:49:50 2014
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Commit point reached - logical record count 64