
First of all connect database as sys user to configure it in archive log mode.
[oracle@12c ~]$ sqlplus “/ as sysdba”
// Show database log mode;
SQL> archive log list;
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 106
Current log sequence 108
// Shutdown database:
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
// Startup your database in mount state:
SQL> startup mount;
ORACLE instance started.
Total System Global Area 5167382528 bytes
Fixed Size 5415672 bytes
Variable Size 1275071752 bytes
Database Buffers 3875536896 bytes
Redo Buffers 11358208 bytes
Database mounted.
// Configure your database in archivelog mode by issue the following:
SQL> alter database archivelog;
Database altered.
// Alter database in open mode:
SQL> alter database open;
Database altered.
SQL> select open_mode from v$database;
OPEN_MODE
--------------------
MOUNTED
// Database has been successfully configured in archive log mode.
Issue the following:
SQL> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 106
Next log sequence to archive 108
Current log sequence 108
Comments
Post a Comment