RE: opatch napply

  • From: Tanel Poder <tanel.poder.003@xxxxxxx>
  • To: joe_dba@xxxxxxxxxxx, oracle-l@xxxxxxxxxxxxx
  • Date: Tue, 14 Aug 2007 23:36:26 +0800

Hi,

Try something like that:

for i in [0-9]* ; do cd $i ; opatch apply ; cd .. ; done

Of course test this out first in some dummy environment, also you might want
to add some error checking to the script..

Tanel.
http://blog.tanelpoder.com


> -----Original Message-----
> From: oracle-l-bounce@xxxxxxxxxxxxx 
> [mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of Joe Smith
> Sent: Tuesday, August 14, 2007 21:53
> To: oracle-l@xxxxxxxxxxxxx
> Subject: opatch napply
> 
> Is there a way to force opatch to apply all patches with one command?
> 
> With the chagne in opatch it installs numerous directories like below:
> 
> -bash-3.00$ ls -ltr
> total 214
> -rw-r--r--   1 oracle   dba         2871 Jun 12 09:32 patchmd.xml
> drwxr-xr-x   4 oracle   dba          512 Jul  4 11:42 6121268
> drwxr-xr-x   4 oracle   dba          512 Jul  4 11:42 6121267
> drwxr-xr-x   4 oracle   dba          512 Jul  4 11:42 6121266
> drwxr-xr-x   4 oracle   dba          512 Jul  4 11:42 6121264
> drwxr-xr-x   4 oracle   dba          512 Jul  4 11:42 6121263

--
//www.freelists.org/webpage/oracle-l


Other related posts: