- 最后登录
- 2014-5-9
- 在线时间
- 38 小时
- 威望
- 0
- 金钱
- 741
- 注册时间
- 2011-12-26
- 阅读权限
- 10
- 帖子
- 223
- 精华
- 1
- 积分
- 0
- UID
- 124
|
7#
发表于 2013-4-24 22:45:21
(1)首先,alter system set log_archive_config='DG_CONFIG=(myasm,myasm_dg)' ;
alter system switch logfile ;
主从库工作正常,v$archive_dest没有报错,但alert还是报错;
(2)ALTER SYSTEM SET log_archive_config='NODG_CONFIG';
alter system switch logfile ;
归档无法传递到从库,但RFS成功;
ALTER SYSTEM SET log_archive_config='NODG_CONFIG' SCOPE=BOTH;
Wed Apr 24 22:35:31 2013
RFS[12]: Opened log for thread 1 sequence 83 dbid -62037650 branch 813487945
Archived Log entry 306 added for thread 1 sequence 83 rlc 813487945 ID 0xfc914212 dest 2:
Wed Apr 24 22:35:36 2013
Media Recovery Log +FRA/myasm/archivelog/2013_04_24/thread_1_seq_83.326.813623731
Media Recovery Waiting for thread 1 sequence 84
主库报错:ora-16009
Errors in file /u02/app/oracle/diag/rdbms/myasm_dg/myasm_dg/trace/myasm_dg_nsa2_17895.trc:
ORA-16009: invalid redo transport destination
Error 16009 for archive log file 2 to 'pri'
Errors in file /u02/app/oracle/diag/rdbms/myasm_dg/myasm_dg/trace/myasm_dg_nsa2_17895.trc:
ORA-16009: invalid redo transport destination
(3)tnsping都成功,sqlplus 都能连上
standby:
[oracle@test ~]$ sqlplus sys/oracle@pri as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Wed Apr 24 22:42:07 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> conn sys/oracle@std as sysdba
Connected.
primary:
[oracle@test ~]$ sqlplus sys/oracle@pri as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Wed Apr 24 22:43:28 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> conn sys/oracle@std as sysdba
Connected.
[oracle@test ~]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 24-APR-2013 22:45:04
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 23-APR-2013 10:30:59
Uptime 1 days 12 hr. 14 min. 5 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/grid/11.2.0/grid/network/admin/listener.ora
Listener Log File /u01/app/grid/diag/tnslsnr/test/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=test.linux.com)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM", status READY, has 1 handler(s) for this service...
Service "myasm.oracle.com" has 3 instance(s).
Instance "myasm", status UNKNOWN, has 1 handler(s) for this service...
Instance "myasm", status READY, has 1 handler(s) for this service...
Instance "myasm_dg", status READY, has 1 handler(s) for this service...
Service "myasmXDB.oracle.com" has 2 instance(s).
Instance "myasm", status READY, has 1 handler(s) for this service...
Instance "myasm_dg", status READY, has 1 handler(s) for this service...
Service "myasm_dg.oracle.com" has 2 instance(s).
Instance "myasm_dg", status UNKNOWN, has 1 handler(s) for this service...
Instance "myasm_dg", status READY, has 1 handler(s) for this service...
The command completed successfully
|
|