您好,欢迎访问一九零五行业门户网

ORA-01093错误解决

环境是rac+rac的dg的10.2.0.5环境,当时是把主备库打开,想启动mrp进程(实时应用),但是执行语句时出现1093错误:
环境是rac+rac的dg的10.2.0.5环境
当时是把主备库打开,想启动mrp进程(实时应用),但是执行语句时出现1093错误:
sql> alter database recover managed standby database ;
 alter database recover managed standby database
 *
 error at line 1:
 ora-01093: alter database close only permitted with no sessions connected
sql> !oerr ora 1093
 01093, 00000, alter database close only permitted with no sessions connected
 // *cause:  there is at least one more session other than the current one
 //        logged into the instance.  alter database close is not permitted.
 // *action: find the other sessions and log them out and resubmit the command
上面说的很清楚:原因是多于一个的会话连接当前数据库实例。alter database close is not permitted;
解决办法是退出该会话;
字面意思没有很懂,当我查看主备库状态时发现备库处于只读状态:
sql> select open_mode from gv$database;
open_mode
 ----------
 read only
 read only
哎,粗心误大事啊,启动实时应用备库需要在mount状态下的;
解决办法是,把备库启动到mount状态下,再执行:
sql> shutdown immediate;
 database closed.
 database dismounted.
 oracle instance shut down.
 sql> startup  mount;
 oracle instance started.
total system global area  327155712 bytes
 fixed size                  1273516 bytes
 variable size              96469332 bytes
 database buffers          226492416 bytes
 redo buffers                2920448 bytes
 database mounted.
 sql> alter database recover managed standby database disconnect from session;
database altered.
ok,,问题解决,其实就是要注意启用mrp,备库要处于mount状态下进行
(注意:oracle 10g,要在mount状态下,才能开启mrp。然而11g在open就可以)
oracle 11g 在redhat linux 5.8_x64平台的安装手册
linux-6-64下安装oracle 12c笔记
在centos 6.4下安装oracle 11gr2(x64)
oracle 11gr2 在vmware虚拟机中安装步骤
debian 下 安装 oracle 11g xe r2
本文永久更新链接地址:
其它类似信息

推荐信息