ITPub博客

首页 > Linux操作系统 > Linux操作系统 > ORA-1093 During Switchover or Close of Standby Database (Doc ID 444362.1)

ORA-1093 During Switchover or Close of Standby Database (Doc ID 444362.1)

原创 Linux操作系统 作者:thompsun 时间:2010-02-01 10:25:45 0 删除 编辑

Applies to:

Oracle Server - Enterprise Edition - Version: 10.1.0.2 to 10.2.0.3
This problem can occur on any platform.

Symptoms

During switchover from Primary to Physical Standby the following errors occur:

 

SQL> alter database commit to switchover to physical standby;
alter database commit to switchover to physical standby;
*
ERROR at line 1:
ORA-01093: ALTER DATABASE CLOSE only permitted with no sessions connected
 

 

SQL> select switchover_status from v$database;

SWITCHOVER_STATUS
--------------------
SESSIONS ACTIVE


Checking v$session will show the following:

SQL> select SID, PROCESS, PROGRAM
    2>  from v$session where type = 'USER' and
    3>  SID <> (select DISTINCT SID from v$mystat);

SID       PROCESS    PROGRAM
--------- ---------------- ------------------------------------------------
1078    622624         racgimon@koalav1 (TNS V1-V3)
1079    622624         racgimon@koalav1 (TNS V1-V3)
1080    622624         racgimon@koalav1 (TNS V1-V3)
1086    622624         racgimon@koalav1 (TNS V1-V3)


This error can also occur when any standby database registered with the Oracle Clusterware is being closed.

  • ALTER DATABASE CLOSE
  • Running RECOVER MANAGED STANDBY DATABASE on a standby that was previously opened in READ ONLY mode

Cause

Oracle Clusterware uses the RAC Global Instance Monitor (racgimon) to monitor instance availability on each node.  In order to close any database, all sessions must be disconnected.

Solution

If the error occurs during switchover in a Data Guard environment, simply re-run the switchover command with the additional clause WITH SESSION SHUTDOWN.

SQL> alter database commit to switchover to WITH SESSION SHUTDOWN;

Otherwise stop racgimon using the following command in the database ORACLE_HOME on a single node:

% racgimon stopd

Re-issue the original command that failed.

Starting in Oracle11g Release 1 and up, the racgimon sessions will be ignored on a standby during close.

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/11134237/viewspace-626517/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-01-11

  • 博文量
    96
  • 访问量
    276888