1.先关数据库:
代码如下:
[oracle@oeltan1 ~]$ srvctl stop database -d tantest1. 分别创建两个实例的ASM目录
任意一个实例,grid用户下:
还可以通过asmcmd创建目录:
3.两个节点上分别都执行:
--修改一个实例时,另一个实例不能在open状态,否则报ORA-01126: database must be mounted in this instance and not open in any
4.分别检查:
sql> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination +FRI/tantest/arch2
Oldest online log sequence 6
Next log sequence to archive 7
Current log sequence 7
sql>