![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I'm following my own practices to document my job on databases, but also I'm wondering if they are correct or how other DBAs manage their own documentation for a day-to-day job. We have about 5 instances or databases to check. Each instance has a number of schemas or users, tablespaces and datafiles, blobs, indexes etc. On my Windows XP, I distribute my documentation in folders and Excel files. I keep my scripts or queries as small text files. If I have 10 text files, each text file has one script or a documented command. These text files are storaged in folders. For example, one root folder is named "Scripts and Commands" that contains general scripts and useful commands for an Oracle DBA . This folder is divided by sub-folders. For example sub-folder "Tablespace_Management" contains scripts and commands for managing tablespaces. Other root folder is named "Instance_1", which is the name of our instance 1. It contains scripts for recreating schemas, users, tablespaces, etc of that instance. It also contains specific queries for end-user information. This folder contains sub-folder "Backup_Management" which has docs about the backup process. Also, I keep an important Excel file with many sheets. One sheet lists server's IP, instances, schemas, passwords and some comments. Another sheet lists instances, schemas and tablespaces. Another sheet lists database servers and performance features like model, memory, processors, hard disks, etc. I update manually this Excel file every three days by querying my databases or after any big change that I made to a database. Of course I also use EM db console and Toad. Is there any advice or suggestion that you could provide? Thanks a lot ! |
#3
| |||
| |||
|
|
On Jun 6, 2:41Â*pm, Big George <jbet... (AT) gmail (DOT) com> wrote: Hello, I'm following my own practices to document my job on databases, but also I'm wondering if they are correct or how other DBAs manage their own documentation for a day-to-day job. We have about 5 instances or databases to check. Each instance has a number of schemas or users, tablespaces and datafiles, blobs, indexes etc. On my Windows XP, I distribute my documentation in folders and Excel files. I keep my scripts or queries as small text files. If I have 10 text files, each text file has one script or a documented command. These text files are storaged in folders. For example, one root folder is named "Scripts and Commands" that contains general scripts and useful commands for an Oracle DBA . This folder is divided by sub-folders. For example sub-folder "Tablespace_Management" contains scripts and commands for managing tablespaces. Other root folder is named "Instance_1", which is the name of our instance 1. It contains scripts for recreating schemas, users, tablespaces, etc of that instance. It also contains specific queries for end-user information. This folder contains sub-folder "Backup_Management" which has docs about the backup process. Also, I keep an important Excel file with many sheets. One sheet lists server's IP, instances, schemas, passwords and some comments. Another sheet lists instances, schemas and tablespaces. Another sheet lists database servers and performance features like model, memory, processors, hard disks, etc. I update manually this Excel file every three days by querying my databases or after any big change that I made to a database. Of course I also use EM db console and Toad. Is there any advice or suggestion that you could provide? Thanks a lot ! How you organize your scripts and reference documentation should be done in a manner that makes sense to you and your teammates. Mine are organized in my UNIX home directory under a directory named ora then in subdirectories by functional grouping. I have a subdirectory for scritps related to tables, indexes on the table, columns in an index, FK to a table, and so one. I have another directory for information related to database data files, tablespaces, redo logs, and undo segments. I back my scritps up by copying my scritps from my development server to my production server so I have access to my scripts on each server I need to work on. If you are placing your information folders on the same server as your database you should give some though to their availability in the event of a media problem on the server. |
#4
| |||
| |||
|
|
Highly recommend using a revision control system. Doesn't really matter which one. I like GIT, but some find it conceptually challenging. Mercurial (Hg) is very similar, but apparently a bit more user friendly. Bazaar (bzr) is also pretty good. Even subversion is better than nothing! |
#5
| |||
| |||
|
|
On Jun 17, 3:34Â*pm, Tim X <t... (AT) nospam (DOT) dev.null> wrote: Highly recommend using a revision control system. Doesn't really matter which one. I like GIT, but some find it conceptually challenging. Mercurial (Hg) is very similar, but apparently a bit more user friendly. Bazaar (bzr) is also pretty good. Even subversion is better than nothing! Since I can't get sign-off on any of this from my boss, and indeed, can't convince anyone a DBA is necessary, and am working under a RAD system where vendor people can get authorization to do all sorts of strange stuff without telling me about it, I keep everything on subfolders on the server where I can simply search for stuff when I need it, and be sure it is backed up, and be sure the rc scripts bring everything up right with no attention. If others are too clueless to read a script, not my problem (until I have to fix it when I come back from vacation). I habitually modify dangerous scripts to start with an exit. I have recently been able to document a couple of problems created more than 10 years ago by doing it this way, should you be laughing or shaking your head at this. |
![]() |
| Thread Tools | |
| Display Modes | |
| |