1) Before data in the database is modified the original data is stored in the undo tablespace: this enables the rollback of a transaction by undoing the
modification using the original data stored in the undo segments
2) Before data is written to the database it is written to the redo logs: this enables the database to reconstruct its state if the database crashes or if
a datafile will be damaged (using a backup and the archive logs that are copies of the redo logs)
These are two different things. Both are necessary tu guarantee the importann ACID properties that are required for a transaction.
Feature 1) has additional advantages:
1) if a statement wants to read data that was modified by another transaction after the statement startet it can find the original data in the undo segments
and so can get a consistent view of the data
2) the undo data can be used to retrieve past data from the database (flashback query)
Flashback query is only supported if automatic undo management is enabled which is the default in Oracle 11r2. So contrary to the title of your post for flashback queries the undo information is used and not the redo log information.
In contrast to deletion and update of rows the insert of rows generates a lot of redo but almost no undo information.
So it is possible that a sessions generates a lot of redo but not much undo.
I am not aware of any method to find out how much undo information in the undo segment is from a special table
but the performance view v$transaction
(USED_UBLK
: Number of undo blocks used) helps you to identifie the transactions that use much undo space.
If you do not have sufficient old historical data you can try to reduce the undo information written by your applications , keep the transactions short and increase the size of the undo tablespace. If this is not sufficient you can tie a table to a Flashback Data Archive to guarantee that the modified data of the table is kept long enough. Oracle Flashback Data Archive (allso called Oracle Total Recall) is an option of Oracle Enterprise Edition that needs extra licensing.