I wanted to create the copy of a table using the following sql command in oracle:
create table table_backup as select * from paper_search;
I encountered the error like this
[Err] ORA-01652: unable to extend temp segment by 8192 in tablespace
Since the table paper_search is 20GB of size. I googled and found increasing the TEMP memory size in oracle but I have no idea how to solve this any suggestion will be highly appreciated.
If you can’t find enough space for your temp segment (see Orangecrush’s answer), you may want to consider creating the table and populating it in separate steps – e.g.
then
in a loop with suitable ranges for id, committing between each batch (so that you don’t need so much temp space).
This is just a rough solution and may not be feasible depending on your requirements (e.g. whether it should take into account concurrent inserts/updates/deletes on the table while your batch job is running).