主库:
-
[oracle@primary ~]$ sqlplus / as sysdba
-
-
SQL*Plus: Release 11.2.0.3.0 Production on Fri Jun 12 10:04:03 2015
-
-
Copyright (c) 1982, 2011, Oracle. All rights reserved.
-
-
-
Connected to:
-
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
-
With the Partitioning, OLAP, Data Mining and Real Application Testing options
-
-
SQL> select status from v$instance;
-
-
STATUS
-
------------
-
MOUNTED
-
-
SQL> alter database open;
-
alter database open
-
*
-
ERROR at line 1:
-
ORA-03113: end-of-file on communication channel
-
Process ID: 3896
-
Session ID: 1 Serial number: 5
open不了
主备库之间网络中断,网络弄好后,重启备库并应用,其实备库是不会被关闭的,这是我重启的备库。
-
[oracle@standby ~]$ sqlplus / as sysdba
-
-
SQL*Plus: Release 11.2.0.3.0 Production on Fri Jun 12 10:03:50 2015
-
-
Copyright (c) 1982, 2011, Oracle. All rights reserved.
-
-
Connected to an idle instance.
-
-
SQL> startup;
-
ORACLE instance started.
-
-
Total System Global Area 839282688 bytes
-
Fixed Size 2233000 bytes
-
Variable Size 520097112 bytes
-
Database Buffers 314572800 bytes
-
Redo Buffers 2379776 bytes
-
Database mounted.
-
Database opened.
-
SQL>
-
SQL> select protection_mode ,protection_level , open_mode from v$database;
-
-
PROTECTION_MODE PROTECTION_LEVEL OPEN_MODE
-
-------------------- -------------------- --------------------
-
MAXIMUM PROTECTION MAXIMUM PROTECTION READ ONLY
-
-
SQL> alter database recover managed standby database disconnect from session;
-
-
Database altered.
然后主库启动这样就好了
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29990276/viewspace-1696517/
,如需转载,请注明出处,否则将追究法律责任。