Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1
DBA Activities
Contents
1. What Is the use of archieve logs: .................................................................................. 3
2. Enabling archive log: ................................................................................................. 4
3. Here is the screen output: ........................................................................................... 5
2
DBA Activities
Normally production backups are made with the database online. Again a reason to run your
database in archivelog mode. IF not running archivelog mode, in a disaster scenario you might lose all your
transactions made since the last backup. If your transactions are really important it could be smart to copy
the archived log files to a second DC on a very regularly basis. How regularly depends on the cost of
loosing transactions. If you can handle losing one day, you copy daily, most sites copy a few times/hour or
even use standby databases that receive the transactions in a near sync way.
3
DBA Activities
➢ We need to build the pfile from spfile to add new entries. If you already have recent pfile,
the you do not need to do this step.
➢ Once pfile is created, then edit the pfile and add the below two parameters.
log_archive_format=Log_%s_%t_%r.arc
log_archive_dest='/plcc/db/apps_st/arch/'
➢ Once pfile is edited, then we need to create the spfile with modified pfile. Login as sys
user and execute the below command.
➢ Rename the original SPFILEORCL.ORA to different name. Then rename the XX.ORA to
SPFILEORCL.ORA.
➢ Login as sys user and shutdown the database and follow the steps.
4
DBA Activities