"Vergara, Michael (TEM)" wrote: > > Hi All! > > This is a question for the script gurus out there. I am running > an SAP system. Recently, during a DR test, we found several > files with corruption. These were found originally with an > ORA-600 [12700], and confirmed with dbv. > > So now they want me to run dbv's on the database files during > the maintenance window. Now, I can create a script that will > scan all the files, but it's linear and will take for-flipping-ever. > > So, has anyone out there created a script (csh, ksh, sh, perl, whatever) > that can take a parameter list of files, and keep several child > processes running at a time? > > What I want to do is create a list of all database files. This list > would be input to a script that would keep 'n' child processes > running (running 'dbv') until the list was exhausted. Say that 'n' > was six. This process would keep 6 dbv's running. When one child > dbv process finished, the next in line would be started. > > Anybody done something like this, or am I just an ambitious dreamer? > > Thanks, > Mike >
Mike, Take a look at http://www.oriole.com/scripts/analyze_parallel.kh - not exactly the same thing as what you want to do, far from it, but I think that if you query V$DBA_DATA_FILES instead of USER_SEGMENTS and run dbv instead of calling sqlplus and make it run analyze you should come very close. -- Regards, Stephane Faroult Oriole Software -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Stephane Faroult INET: [EMAIL PROTECTED] Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
