ORA-16003: standby database is restricted to read-only access
2016-06-01 14:36
1631 查看
dg失败导致,从库一直只能read only开启。
解决办法:
SQL> shutdown immediate
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup nomount
ORACLE instance started.
Total System Global Area 1068937216 bytes
Fixed Size 2235208 bytes
Variable Size 893387960 bytes
Database Buffers 167772160 bytes
Redo Buffers 5541888 bytes
SQL> alter database mount standby database;
Database altered.
SQL> alter database activate standby database;
Database altered.
SQL> shutdown immediate;
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup open;
ORACLE instance started.
Total System Global Area 1068937216 bytes
Fixed Size 2235208 bytes
Variable Size 893387960 bytes
Database Buffers 167772160 bytes
Redo Buffers 5541888 bytes
Database mounted.
Database opened.
SQL> select open_mode from v4database;
select open_mode from v4database
*
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> select open_mode from v$database;
OPEN_MODE
--------------------
READ WRITE
解决办法:
SQL> shutdown immediate
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup nomount
ORACLE instance started.
Total System Global Area 1068937216 bytes
Fixed Size 2235208 bytes
Variable Size 893387960 bytes
Database Buffers 167772160 bytes
Redo Buffers 5541888 bytes
SQL> alter database mount standby database;
Database altered.
SQL> alter database activate standby database;
Database altered.
SQL> shutdown immediate;
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup open;
ORACLE instance started.
Total System Global Area 1068937216 bytes
Fixed Size 2235208 bytes
Variable Size 893387960 bytes
Database Buffers 167772160 bytes
Redo Buffers 5541888 bytes
Database mounted.
Database opened.
SQL> select open_mode from v4database;
select open_mode from v4database
*
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> select open_mode from v$database;
OPEN_MODE
--------------------
READ WRITE
相关文章推荐
- 欢迎使用CSDN-markdown编辑器
- org.hibernate.hql.ast.QuerySyntaxException: INVOICE is not mapped [from INVOICE]
- RMQ与LCA(From TopCoder Algorithm Tutorials)
- Java foreach语法糖探秘
- 实战3--实现一组功能的步骤
- cpp 内嵌函数(lambda,struct)
- cocos2D-X源码分析之从cocos2D-X学习OpenGL(5)---绘制基本图形
- 三层加密密钥相关名词
- 常用开源协议
- Bootstrap 附加导航(Affix)插件实例详解
- synchronized 修饰在 static方法和 非static方法的区别
- linux进程通信--共享内存
- Oracle基础
- Fiddler监听HttpClient-(Monitoring HTTP Output with Fiddler in .NET HTTP Clients and WCF Proxies - Rick Strahl's Web Log )
- UVA 10790
- 安卓时间工具类,计算时间差,比较当前时间
- linux 静态与动态ip设置
- Android绘图机制与处理技巧(五)——View的孪生兄弟SurfaceView
- 合格的字符串
- 怎么实现ZBrush中复数对象的快速运用