Skip to Main Content
  • Questions
  • Select * tables from database where column stores a clob

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Lorena.

Asked: September 14, 2015 - 12:55 pm UTC

Last updated: September 16, 2015 - 3:59 am UTC

Version: 11g

Viewed 10K+ times! This question is

You Asked

Hello!
First , sorry for bad english D: and by ignorance =[
I would be grateful if you help me.
I need to find all clob fields of a database, regardless of schema or owner...everything.Can you help me with the select?

Select * tables from database
where column datatype = clob

Something like this?

Thank you very much.


and Connor said...

SQL> select owner, table_name, column_name
  2  from   dba_tab_columns
  3  where  data_type in ('CLOB','BLOB','BFILE')
  4  order by owner, table_name, column_name
  5  /

OWNER                          TABLE_NAME                     COLUMN_NAME
------------------------------ ------------------------------ ------------------
SYS                            ECOL$                          BINARYDEFVAL
SYS                            EDITION$                       CODE
SYS                            JIREFRESHSQL$                  SQLTEXT
SYS                            PDB_SYNC$                      LONGSQLTXT
SYS                            SQL$                           SPARE2
SYS                            SQL$TEXT                       SQL_TEXT
SYS                            SQLTXL_SQL$                    SQLTEXT
SYS                            SQLTXL_SQL$                    TXLTEXT
SYS                            VIEWCON$                       CON_TEXT
...
...
...


Hope this helps

Rating

  (1 rating)

Is this answer out of date? If it is, please let us know via a Comment

Comments

Ty very much

Lorena, September 15, 2015 - 12:25 pm UTC

Exactly as i needed!

It motivated me to learn more.

Success!



Connor McDonald
September 16, 2015 - 3:59 am UTC

Excellent. Enjoy the journey

More to Explore

CLOB/BLOB/etc

Complete documentation on Securefiles and Large Objects here