Previous | Table of Contents | Next |
Getting Oracle to start writing archive logs is a somewhat more difficult subject. When you create a data file within a tablespace, Oracle writes to it automatically when users place data into that tablespace. Oracle automatically writes to the redo logs that are created when you create your instance. However, the DBA has to go through a somewhat redundant and extremely sensitive process to get Oracle to write archive logs:
LOG_ARCHIVE_DEST = /disk57/oracle/logs/alog
LOG_ARCHIVE_FORMAT = %s.arc
alter database archivelog;
alter system switch logfile
You may have guessed by now that archive log files have bedeviled me on several occasions. I usually wind up grousing when Oracle rejects my LOG_ARCHIVE_DEST parameter for some little syntax error. It is a tedious procedure. Once you have archive logging operational, you always have to be concerned with running out of space for archive log files and locking up Oracles capability of writing transactions to the database. However, you have the comfort of knowing that you can recover all data committed up to the point of failure of a disk drive.
After that rather invigorating discussion of the archive log files, it is time to cool off a bit and discuss a relatively easy topicthe control files. If you are lucky, the only time that you have to bother with control files is when you create an Oracle instance. This is because control files are used by Oracle internally. You cannot manually edit them, you cannot control their size, and you can move them if you have to. Otherwise, the only time you will notice them is if one is missing. (Oracle will give you an error message indicating which control file is missing or damaged.) When this happens, you copy one of the other control files (they are identical to one another) into the location of the missing control file and restart the system.
Control files are a road map of the database as it is physically laid out on your computer system. They store such tidbits as the name of the database, the data files and redo log names, and a record of when they were created. You can add control files and delete existing ones if you want. One rule to remember when locating control files is that you always want at least one control file available so that you can re-create the others. You can re-create the control files manually in, but you do not want to have to try this. Therefore, spread your control files out over several disk drives whenever possible so that you always have one to start your instance.
Previous | Table of Contents | Next |