Environment Information: Oracle 9i
* Oracle version: 9i
* Operating system: Solaris 10 (UNIX)
Sirs,
I am deleting data from a table that is very large, and with that, it ends up the space on the Undo tablespace. She is cleaning but it takes a day to the other practically. I would like to know how I can force the cleaning of this tablespace undo.
I'm waiting
Wide Undo Tablespace
-
- Moderador
- Posts: 1177
- Joined: Thu, 15 Oct 2009 10:28 am
- Location: Recife
Undo does not need to clean, according to the UNDO_RETETION parameter if it is configured it will eliminate,
what you can do is, if you are cleaning the entire table without specifying clause WHERE, is to change the Instruction for Truncate Table, which will not generate undo.
See the possibility of by the table in Nologging.
what you can do is, if you are cleaning the entire table without specifying clause WHERE, is to change the Instruction for Truncate Table, which will not generate undo.
TRUNCATE TABLE SUATABELA;
-
- Rank: Programador Sênior
- Posts: 48
- Joined: Thu, 17 Sep 2009 3:47 pm
- Location: rio de janeiro
Well the command I'm using is as follows:
Can I use Truncate?
I await.
delete EMAIL_MESSAGES WHERE EXISTS (SELECT ID FROM EMAIL_MESSAGES_OLD) AND ROWNUM <= 1000000 and create_date <= '31/12/2009 23:59;59';
commit;
I await.
-
- Moderador
- Posts: 1177
- Joined: Thu, 15 Oct 2009 10:28 am
- Location: Recife
Can not, could do a loop in the table, and then go excluding 10 thousand in 10 thousand, because then you would be committing 10 thousand in 10 thousand, so your undo has not grown for the control, this if the guarantee of retention of your Undo tablespace is disabled,
If you are in the Undo retention policy, decrease the time for the Retetion Undo, standard 900 seconds, 15 minutes,
If you are in the Undo retention policy, decrease the time for the Retetion Undo, standard 900 seconds, 15 minutes,
-
- Moderador
- Posts: 1177
- Joined: Thu, 15 Oct 2009 10:28 am
- Location: Recife
You can change to not guarantee retention, then you can by fixed size on the Undo tablespace.
-
- Rank: Programador Júnior
- Posts: 16
- Joined: Fri, 14 May 2010 8:06 pm
- Location: São José dos Campos - SP
O Primeiro passo não vale nada se você não chegar ao final.
Friend as the undo being full, it does not mean that you can not use it.
As Oracle said to try to keep the information in the Undo according to the value of the retention, but he tries, if any other process needs oracle releases what he was guarding because of the retention.
As you are in 9i, it is sure that Oracle does not guarantee the retention, already in 10g to configure for retention to be guaranteed, but as you are in 9i can continue to perform your independent process From free space in undo.
As Oracle said to try to keep the information in the Undo according to the value of the retention, but he tries, if any other process needs oracle releases what he was guarding because of the retention.
As you are in 9i, it is sure that Oracle does not guarantee the retention, already in 10g to configure for retention to be guaranteed, but as you are in 9i can continue to perform your independent process From free space in undo.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 1 guest