I'm new to Oracle databases, having worked primarily in Microsoft SQL Server databases in the past.
My non-profit organization recently moved to a new CRM which allows us to use a web-based editor in their application to run P/L SQL. They recently notified me of the following:
We saw a script running early this morning when we got database alerts. It looks like the problem was a WITH statement being used instead of creating a table. That could cause performance issues. You can create a table using a WITH statement just not in lieu of creating a table. Please let us know if you run into any trouble, and we’ll help you out.
My question is why would this cause a performance issue - to describe the script generally, I am building a CTE through my 'WITH' statement, then performing a CREATE TABLE statement referencing that CTE as I join in other tables to the CTE into the created table.
I can't run an execution plan or any kind of diagnostics on my scripts, and my editor is a plain old text editor - making writing scripts difficult (I can't connect to the database via sql developer etc...).
Any wisdom would be appreciated :)
Thanks!