Possible Duplicate:
Oracle Search all tables all columns for string
I’m looking for a simple way to search in Oracle for a ID/Text in all tables.
Any ideas?
I’m using currently SQL Developer.
Thank you!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
You can use the
USER_TABLESandUSER_TAB_COLUMNSsystem tables to read what tables and columns you have.Using that information, you can write a procedure or anonymous code block to dynamically build a query for searching those tables. Then execute it using
EXECUTE IMMEDIATE.But beware that this will probably not perform too well in large databases. Also, you might want to check the data type of the column to decide wether to include it in your search or not.