Export ORACLE_HOME (grid_home), ORACLE_SID=+ASM1; $ asmcmd asmcmd> cd DATA/ ORATEST/ RACORA/ rac-scan/ ASMCMD> ls controlfile/ datafile/ onlinelog/ parameterfile/ tempfile/ spfileracora.ora ASMCMD> mkdir ARCHIVELOG ASMCMD> cd ARCHIVELOG ASMCMD> pwd +DATA/RACORA/ARCHIVELOG ASMCMD> exit Change ORACLE_HOME and ORACLE_SID i.e Export ORACLE_HOME (db_home), ORACLE_SID= RAC1 /////////////////////////////********Stop cluster database ***************/////////////////////////////// $ srvctl stop database -d RAC1 //////////********check that the other node/s are not running the database's instance *******///////// i.e $ ps -ef | grep pmon ///////////////only +ASM1 on one node and +ASM2 on other node will be running /////////////*****start db in no mount mode*********//////////////////// $ sqlplus / as sysdba
output :- connected to ideal instance..........................
> startup nomount //***changes in spfile parameters LOG_ARCHIVE_START and LOG_ARCHIVE_DEST_1 :***//// > alter system set log_archive_start=TRUE scope=spfile; >alter system set log_archive_dest_1='location=+DATA/RACORA/ARCHIVELOG' scope=spfile; ///////***mount database in mount mode ********////////////////// >alter database mount; /////*********set database in archivelog mode***********////////////////// >alter database archivelog; >alter database open; ...................................perform checks .............................. >archive log list
/////////archive mode will be seen
>alter system switch logfile;
> archive log list; >exit Re Export GRID home in ORACLE_HOME and ORACLE_SID=+ASM1 $ asmcmd ASMCMD> cd DATA/RACORA/ARCHIVELOG ASMCMD> ls /////// Archive file will be seen .............................