How to put the database in archive mode in rac?
SQL> select name from v$database;
NAME
---------
EBSTEST
SQL> alter system set cluster_database=False scope=spfile;
System altered.
SQL>
srvctl status database -d ebstest
srvctl stop database -d ebstest
sqlplus "/as sysdba"
SQL> startup mount
ORACLE instance started.
Total System Global Area 9556852736 bytes
Fixed Size 2166288 bytes
Variable Size 6375346672 bytes
Database Buffers 3154116608 bytes
Redo Buffers 25223168 bytes
Database mounted.
SQL> alter database archivelog;
Database altered.
SQL> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination +ARCH
Oldest online log sequence 380
Next log sequence to archive 382
Current log sequence 382
SQL> alter system set cluster_database=true scope=spfile;
System altered.
SQL> shutdown immediate
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL>
srvctl start database -d ebstest
No comments:
Post a Comment