您的位置:首页 > 其它

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: