Temp segment issue [message #188260] |
Thu, 17 August 2006 12:14 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
kudur_kv
Messages: 75 Registered: February 2005
|
Member |
|
|
Hi,
This is an issue I faced with oracle 8i (8.1.7.4)
I was moving an index from its original Tablespace to new tablespace. The table on which this index was built has about 20 mill rows.
I deleted the index(dont ask me why i did not try to rebuild it online!!!??) and then tried to create the new index in the new tablespace. The target tablespace is a dictionary managed tablespace.
The problem was that when i tried to create the index the first time, it reported ORA-1630. some thing like this - max extents reached for temp segments in tablespace ABC
I increased the max extents for that tablespace and tried to create the index , the same issue.
Why is oracle looking for a temporary segment in a permanent tablespace when there is ample amount of temporary tablespace available??
Can some one explain this for me please
Thanks in advance!!
|
|
|
|
Re: Temp segment issue [message #188365 is a reply to message #188263] |
Fri, 18 August 2006 04:10 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
kudur_kv
Messages: 75 Registered: February 2005
|
Member |
|
|
The reason i was moving the indexes from their original tablespace to a new one was because the DBA who built/designed the database kept both the indexes and the tables in the same tablespace!! Can you believe that??? This is a database which is the life line of the company's day to day functioning and operations.
I then decided to move all the indexes to the tablespace dedicated to the indexes. This new TBS was unused so far though it was created a long time ago.
I guess your answer makes a lot sense.
What I did was to drop the tablespace after ensuring there were no objects in that TBS, create a new TBS with unlimited max extents and the issue was resloved.
I did not know that oracle will acquire temp segments from the target tablespace for sorting!! Thank you for the quick response!
However, one question still stands. Before I dropped the index TBS and created the new one, I did try create the index back in the original tablespace which has a total of 50+ gigs worth datafiles and about 45+ gig worth data. This TBS should have had enough extents for the index creation right??
But this too gave the same error of not enough temp segments??!!
|
|
|
|
Re: Temp segment issue [message #188978 is a reply to message #188380] |
Tue, 22 August 2006 11:21 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
kudur_kv
Messages: 75 Registered: February 2005
|
Member |
|
|
Apologies mahesh,
The 45GB of occupied space in the TBS includes all the indexes for 1800+ tables.
BTW, the error that I was receiving was ORA-1630.
Thanks.
|
|
|