Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9005563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:10:45+00:00 2026-06-16T01:10:45+00:00

I want to identify all rows whose content in a clob column is not

  • 0

I want to identify all rows whose content in a clob column is not unique.

The query I use is:

select
  id,
  clobtext
from
  table t
where 
    (select count(*) from table innerT where dbms_lob.compare(innerT.clobtext, t.clobtext) = 0)>1

However this query is very slow. Any suggestions to speed it up? I already tried to use the dbms_lob.getlength function to eliminate more elements in the subquery but I didn’t really improve the performance (feels the same).

To make it more clear an example:

table

ID | clobtext

1 | a

2 | b

3 | c

4 | d

5 | a

6 | d

After running the query. I’d like to get (order doesn’t matter):

1 | a

4 | d

5 | a

6 | d

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:10:46+00:00Added an answer on June 16, 2026 at 1:10 am

    In the past I’ve generated checksums (in my C# code) for each clob.

    Whilst this will inccur a one off increase in io (to generate the checksum)
    subsequent scans will be quicker, and you can index the value too

    TK has a good PL\SQL example here:
    Ask Tom

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want identify all mouse click event in PreTranslateMessage, but when I use WM_LBUTTONDOWN
Hey all I want to reseed my IDENTITY COLUMN values starting from 1 I
I want to quickly identify all writable files in the directory. What is the
I want to identify two kinds of string: one end with numbers (or not
I want to identify from where a visitor coming to my webpage.Is there anyways
I want to extract text from a column using regular expressions in Oracle 11g.
Given an HTML document, I want to identify all the numbers in the document
Is there a good way to use git to identify all the modified functions
i want to dynamically add a class to all rows of a table except
I want to import data from a CSV to a SharePoint list, all I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.