no shell script needed, you just need to learn what a runlevel is, and how to configure your system for oracle to be started when your box comes in runlevel 3
not that difficult to find on Unix groups !!