I have an Oracle database table LOG_MESSAGES
with a CLOB column called MESSAGE
. Some of the rows contain the same MESSAGE
.
For each MESSAGE
which has at least a duplicate, I'd like to know the number of duplicates. Quite a number of these CLOBs are huge (> 100 kB), so converting to VARCHAR2
is out of question. Since many traditional methods such as GROUP BY
do not work with CLOB
, could someone please enlighten me?
For information, the table is very large (around 1 TB). So an optimised method would very much be appreciated.
Thank you in advance for your help.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…