Re: Changing Oracle gid and uid?
- From: Mark Bole <makbo@xxxxxxxxxxx>
- To: oracle-l@xxxxxxxxxxxxx
- Date: Thu, 06 Oct 2005 18:37:00 -0700
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
--
//www.freelists.org/webpage/oracle-l
Other related posts: