Oracle 插入到间隔分区中
我正在使用oracle 11g 在我的数据库中,我有一个带有rqnge间隔的表,该间隔是1,表示月份 当我在表中执行insert select时,它将进入无休止的循环 但我在另一个分区表中执行相同的insert select——不是间隔表,这很好 我对一个简单的插入测试进行了跟踪,结果如下:Oracle 插入到间隔分区中,oracle,oracle11g,partitioning,Oracle,Oracle11g,Partitioning,我正在使用oracle 11g 在我的数据库中,我有一个带有rqnge间隔的表,该间隔是1,表示月份 当我在表中执行insert select时,它将进入无休止的循环 但我在另一个分区表中执行相同的insert select——不是间隔表,这很好 我对一个简单的插入测试进行了跟踪,结果如下: insert into "DELIVERY_BY_MONTH_PART" (SAVE_MNTH) values (trunc (to_date('01/01/2018', 'dd/mm/yyyy'),
insert into "DELIVERY_BY_MONTH_PART" (SAVE_MNTH)
values
(trunc (to_date('01/01/2018', 'dd/mm/yyyy'), 'month'))
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 1.40 5.37 0 228 23167 1
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 1.40 5.37 0 228 23167 1
Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
Parsing user id: 21300
Rows Row Source Operation
------- ---------------------------------------------------
0 LOAD TABLE CONVENTIONAL DELIVERY_BY_MONTH_PART (cr=153359 pr=0 pw=0 time=5899030 us)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
control file sequential read 880 0.00 0.09
db file sequential read 88 0.00 0.00
Disk file operations I/O 132 0.14 0.27
Data file init write 44 0.00 0.00
db file single write 44 0.00 0.00
control file parallel write 132 0.00 0.02
rdbms ipc reply 44 0.00 0.06
log file sync 1 0.00 0.00
SQL*Net message to client 1 0.00 0.00
SQL*Net message from client 1 15.24 15.24
********************************************************************************
某人
谢谢。问题涉及
插入。。。选择
statement,但您已经显示了INSERT…VALUES
命令的跟踪。很难给X看Y的人任何建议。但我的目标是展示即使使用简单的插入,它仍然是这样。