Search All Fields In All Tables For A Specific Value (Oracle)

前端 未结 16 2093
一整个雨季
一整个雨季 2020-11-22 01:05

Is it possible to search every field of every table for a particular value in Oracle?

There are hundreds of tables with thousands of rows in some tables so I know th

16条回答
  •  星月不相逢
    2020-11-22 01:58

    Yes you can and your DBA will hate you and will find you to nail your shoes to the floor because that will cause lots of I/O and bring the database performance really down as the cache purges.

    select column_name from all_tab_columns c, user_all_tables u where c.table_name = u.table_name;
    

    for a start.

    I would start with the running queries, using the v$session and the v$sqlarea. This changes based on oracle version. This will narrow down the space and not hit everything.

提交回复
热议问题