Oracle Insert with Select Gave Error

Dear Experts,

I have an INSERT statement with a complex SELECT as given below. When I run this, it waits for some time then gives error: 'Unable to extend temporary segment by 64' and fails. I suspect that the problem is about SELECT part with joins. I need your help for how I can get around this problem and how I can eliminate such problematic joins?

Best Regards

INSERT INTO /*+ PARALLEL NOLOGGING */ SCHEMAX.MRN_GFLD      (select  CURRENCY_DATE,      TM.TMNAME || '|' || CM.FLDNO as CMCUR,      CM.*       from  SCHEMAY.MRN_GFLD      CM, SCHEMAY.MRN_GTM TM where CM.TMID=TM.TMID and CM.CSB=TM.CSB );
GurcanKAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slightwv (䄆 Netminder) Commented:
Is this sort of not the same as your previous question?
http://www.experts-exchange.com/questions/28702836/Oracle-Very-Slow-with-Inserts.html


Add more space to the TEMP tablespace?

From your previous question:
Generate and post the explain plan.

>> I can eliminate cascaded joins

I don't know what a 'cascaded' join is.  The join you posted seems to be OK to me.
0
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
Increase the temp tablespace. Or reduce the amount of data to select, e.g. by building batches of XYWZID (e.g. 100 000 IDs per command).
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.