Enabling Archivelog Mode
Note: it is recommended that performing a backup of the full database before changing the archive status of a database.- Check the database log mode
[oracle@ora1 ~]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.1.0 Production on Thu Apr 8 12:02:52 2010Copyright (c) 1982, 2009, Oracle. All rights reserved.Connected to:Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL> archive log listDatabase log mode No Archive ModeAutomatic archival DisabledArchive destination USE_DB_RECOVERY_FILE_DESTOldest online log sequence 12Current log sequence 17Or You can use v$database view to query archive log mode
SQL> select log_mode from v$database;
LOG_MODE
------------
NOARCHIVELOGIf the database log mode is noarchivelog mode you can enable archivelog mode.- Shutdown immediately the database and get it backup in mount mode.
SQL> shutdown immediateDatabase closed.Database dismounted.ORACLE instance shut down.SQL> startup mountORACLE instance started.Total System Global Area 849530880 bytesFixed Size 1339824 bytesVariable Size 511708752 bytesDatabase Buffers 331350016 bytesRedo Buffers 5132288 bytesDatabase mounted.SQL>Set archive log mode and open the database
SQL> alter database archivelog;Database altered.SQL> alter database open;Database altered.SQL> select log_mode from v$database;
LOG_MODE
------------
ARCHIVELOG
Now we can see that archive log mode is enabled.
Hiç yorum yok:
Yorum Gönder