Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

UPDATE DATA TOO SLOW!

PAN KEVINNov 17 2017 — edited Nov 20 2017

Hi, I want to update one column in big table, I use two method, but both do not work,

MERGE INTO RS_DAYTIME_DATA DST

USING (SELECT LONGITUDE,

              LATITUDE,

              DATE_,

              OLR_D

       FROM   NOAA_OLR) SRC

ON (DST.LONGITUDE = SRC.LONGITUDE AND DST.LATITUDE = SRC.LATITUDE AND DST.DATE_ = SRC.DATE_)

WHEN MATCHED THEN

  UPDATE SET DST.OLR_NOAA = SRC.OLR_D;

for this, it has errors,

ORA-01652: unable to extend temp segment by 128 in tablespace TEMP

for the two method:

UPDATE RS_DAYTIME_DATA DST

   SET DST.OLR_NOAA =

       (SELECT SRC.OLR_D

          FROM NOAA_OLR SRC

         WHERE DST.LONGITUDE = SRC.LONGITUDE

           AND DST.LATITUDE = SRC.LATITUDE

           AND DST.DATE_ = SRC.DATE_);

it cost one whole night, and still no result;

the two table is very big, do you have a good solution?

This post has been answered by SeánMacGC on Nov 20 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 18 2017
Added on Nov 17 2017
30 comments
5,982 views