ARCHIVELOG mode has a number of benefits:
- Database can be backed up online
- Backup policy can be managed through RMAN
- Database can be recovered point-in-time
- Connect as sysdba
- Shut down the database
- Modify pfile by setting LOG_ARCHIVE_START parameter to true
- Startup and mount your database using your parameter file or create spfile from your pfile and then mount
- Enable ARCHIVELOG mode
- Open your database
sqlplus / as sysdba
SHUTDOWN IMMEDIATE;
LOG_ARCHIVE_START=TRUE
STARTUP MOUNT PFILE='/u01/app/oracle/product/11.2.0.3/dbs/init.ora';or
CREATE SPFILE='/u01/app/oracle/product/11.2.0.3/dbs/spfile.ora' FROM PFILE='/u01/app/oracle/product/11.2.0.3/dbs/init.ora'; STARTUP MOUNT;
ALTER DATABASE ARCHIVELOG;
ALTER DATABASE OPEN;
ARCHIVE LOG LIST;The output should look something like that:
Database log mode Archive Mode Automatic archival Enabled Archive destination USE_DB_RECOVERY_FILE_DEST Oldest online log sequence 56 Next log sequence to archive 58 Current log sequence 58
No comments:
Post a Comment