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

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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?

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.
Qlemo"Batchelor", 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).

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.