Shell script to pull out value of tablespace used %age...
441858Mar 27 2009 — edited Apr 2 2009Oracle 11gR1 RHEL5
Hi all,
I'm sure there is something out there, but I was wondering if anyone knew an easy way to create a script the will take a value from a sql script and then if is a certain value or greater, then it will email me. So basically I'm trying to figure out how I can get a shell script to read sql output (tablespace free space) and grab let's say any tablespace that is more than 80% full, and then send me an email with the tablespace name. I have some references but just can't seem to figrue out the reading the value part. I'm still kinda new to the shell scripting world...but eager to learn.
Thanks.