I work in a company where we use a lot of Oracle databases, which are used by our in-house software. The database is updated as the software changes and these updates are put in PL/SQL Scripts. We have clients that are still running older versions of our software and so have 'older' versions of our database.
Now when we upgrade a client's software we now have to and run all scripts that were written since the the version the client has running. Sometimes this is a lot of different scripts and it takes a lot of man hours just to manually go run through them.
I wondered if there is some way we could automate the running of each of these upgrade PL/SQL scripts?
Would it be a feasible option to maybe write a little program that will go execute the scripts on the database?
There is also the issue of errors popping up when the scripts are run, when automating how would one deal with that? Perhaps write to a log file.
Any input on automation of running these scripts would be appreciated?