I have a script which does nothing but analyze all tables, while another one is to analyze all indexes. On one side, this is a one time process for testing, so I am not going to do this as a cronjob. And on the other side, it could be hours before this script finishes running, so I'd like to run it in the background.

I know it's doable on UNIX, but how can I achieve that? An example will be specially appreciated...

FYI - it's a SUN box. Let me know if you need other info...

Elaine