Home >Database >Mysql Tutorial >ORA-01093: ALTER DATABASE CLOSE only permitted with no sessi

ORA-01093: ALTER DATABASE CLOSE only permitted with no sessi

WBOY
WBOYOriginal
2016-06-07 16:07:511444browse

Oracle 10.2.0.3环境下的DG主备切换演练,关闭应用且重启主库之后,主库查询切换状态:

Oracle 10.2.0.3环境下的DG主备切换演练,关闭应用且重启主库之后,主库查询切换状态:

SQL> select switchover_status from v$database;

SWITCHOVER_STATUS

--------------------

SESSIONS ACTIVE

执行以下命令尝试切换

SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY;

报错如下:

ORA-01093: ALTER DATABASE CLOSE only permitted with no sessions connected

同时,alert日志报错很多SYSTEM 用户的进程未断开。

解决:

通过查MOS发现,是由于10g版本的DG会racgimon进程监控实例状态,因为可以从v$session.program看到许多racgimon进程.

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

切换成功。

本文永久更新链接地址:

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn