Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Changing Oracle gid and uid?
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-lReceived on Thu Oct 06 2005 - 20:40:20 CDT
![]() |
![]() |