Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: searching entire database

Re: searching entire database

From: Ana C. Dent <anacedent_at_hotmail.com>
Date: Sun, 11 Feb 2007 02:03:20 GMT
Message-ID: <Xns98D3B7AB4827Banacedenthotmailcom@69.28.173.184>


seannakasone_at_yahoo.com wrote in news:1171096816.180163.16760 @s48g2000cws.googlegroups.com:

> How do I search the entire database for a value and return the
> tablenames and column names that contain this value? For argument
> sake, let's say I'm searching for the text "the quick brown fox".
>
> I think someone posted this question before but it never got any
> responses--since it's been awhile, i thought i might post it again.
>
> In case your wondering why I want to do this, I'm using a software
> package that stores all it's data in a database. It shows me the
> data, but I have no idea what tables and column names contain these
> values so it's hard to change the data through sql scripting.
>
> thanks a lot,
> Sean.
>

for dbf in `ls -1 *dbf`
do

   strings ${dbf} | grep -l "the quick brown fox" done

will quickly narrow down to files (tablespaces) for detailed search Received on Sat Feb 10 2007 - 20:03:20 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US