OMF management automatically add data file script add_datafile.sh
Oracle_ray.sh script can be found in my blog. If you need it, please find it yourself.
Modification item:
1 sqlplus cannot be found without reading the profile file in crontab. If it is linux, please read the bash_profile file
2 filter out temp and undo2 tablespaces in egrep-v to prevent errors
Digression: I have no choice but to change 4 versions of such a simple script. The main reason is carelessness. Careful is very important, careful is very important. Say important things three times!
#! / bin/bash#by raysuen#v04. ~ / .profileAddDataFile () {sqlplus-s / nolog