shellscripting question

I have been �commissioned� to write a shellscript to automate Oracle cold refeshes.. right now we perform about 20 refresh each 300gb in size which takes up our time. my goal is to write a shellscript which can be executed by a user on serverA to refresh any of the 7 databases on ServerA. I am trying to figure out how to tell the script how based on SID that is passed with the script how to figure out which mountpoints/directories are owned by that sid?

any ideas?

find /path -xdev -user ID -print

(Not sure what an SID is, I assume it's related to a UNIX UID, which is the ID in the find command above).

actually Sid is an Oracle_SID.. A databasename.

Are you saying that you have a unix user for each SID?

Objects (directories and files) in the UNIX filesystem are owned by UID's. If you want to find anything in them, you need to have a mapping between SID's and UID's somewhere.