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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Changing Oracle gid and uid?

Re: Changing Oracle gid and uid?

From: Mark Bole <makbo_at_pacbell.net>
Date: Thu, 06 Oct 2005 18:37:00 -0700
Message-ID: <4345D13C.1040604@pacbell.net>


Mark Bole wrote:

[...]
> # get "before" list of files to be changed for logging purposes
> find / -user oracle -exec ls -ld {} \; > /tmp/ora_owned_files.lst
>

[...]
> Or, instead of -exec option of 'find',
> pipe output to xargs command. Just be sure you handle symbolic links
> correctly. (Your SA should understand all of this, in case you don't).
>

I have been gently reminded that use of 'xargs' in conjunction with 'find' (piped output) is vastly superior to use of the '-exec' option of 'find' alone. This is in line with the core Unix approach of "software tools", and I agree whole-heartedly. (The problem is one of exec'ing a new process for every found file using 'find ... -exec ...', versus exec'ing just one process for a whole bunch of input filenames at once).

-- 
Mark Bole
http://www.bincomputing.com



--
http://www.freelists.org/webpage/oracle-l
Received on Thu Oct 06 2005 - 20:40:20 CDT

Original text of this message

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