Benefit#3: You can run automated reports or tasks again and again on demand without minimal effort, on demand.
Benefit#4: You free up some of your time.
Instead of spending 1-2
hours on delivering one of the reports I mentioned above, you can deliver the same report in seconds or minutes. Isn’t that AWESOME?
NOW you can focus on that project you never got time for.
NOW you can focus on writing that script.
NOW you have the time to study or read a technical article.
NOW finally you can leave work on time.
2.What Do I Need To Automate?
Automate anything that has to do with the
following: (this might seem so obvious for many, but never assume that it is)
- backing up databases
- backing up archived logs
- gathering statistics on tables
- recycling alert logs and cleaning up trace files
- recycling listener logs and reporting on the listener log file
Automate repetitive tasks such as:
- changing sys and system passwords
- changing DBA passwords
- terminating user
accounts,
- creating user accounts, locking user accounts, listing user accounts
- database refreshes
Automate anything that you run often. Anything that would make your job and life easier.
Do you wonder if you should automate a task or or not, then automate.
3.Where Do I Start?
When automating a task or process, use scripts:
- sql, plsql scripts
- Unix shell scripts
- Windows
scripts
- Perl scripts
When automating, keep in mind the following:
- anything that changes, such as username, password, has to be passed to your script as a parameter
- never ever hard code passwords in scripts
- make the scripts runnable in one database, or all databases (where applicable)
Do you have anything automated already? Hopefully the backups are already automated. If not start there.
Bring awareness to the daily/weekly tasks
that you perform and are tedious, boring and time consuming.
Make a list of these things. These are your starting points.
You might not have time to work on scripting and automating these processes right away, but you will, once you make them a priority.
Once you get a taste for automating things, you will never stop.
Remember: A Good DBA Automates (Almost Everything)