Escolar Documentos
Profissional Documentos
Cultura Documentos
Hai, this article I will show how to fix error ORA-16191 for
datagaurd setup.
PRIMARY DB (192.168.1.11)
Primary alert log
=============================================================================
=================================
Tue Apr 04 13:37:55 2017
Error 1017 received logging on to the standby
------------------------------------------------------------
Check that the primary and standby are using a password file
and remote_login_passwordfile is set to SHARED or EXCLUSIVE,
and that the SYS password is same in the password files.
returning error ORA-16191
------------------------------------------------------------
Errors in file
/u01/db/tech_st/11.1.0/admin/DELL_rac1/diag/rdbms/dell_live/DELL/trace/DELL_a
rcp_16727.trc:
ORA-16191: Primary log shipping client not logged on standby
PING[ARCp]: Heartbeat failed to connect to standby 'DELL_STBY'. Error is
16191.
Tue Apr 04 13:42:56 2017
Error 1017 received logging on to the standby
------------------------------------------------------------
Check that the primary and standby are using a password file
and remote_login_passwordfile is set to SHARED or EXCLUSIVE,
and that the SYS password is same in the password files.
returning error ORA-16191
------------------------------------------------------------
Errors in file
/u01/db/tech_st/11.1.0/admin/DELL_rac1/diag/rdbms/dell_live/DELL/trace/DELL_a
rcp_16727.trc:
ORA-16191: Primary log shipping client not logged on standby
PING[ARCp]: Heartbeat failed to connect to standby 'DELL_STBY'. Error is
16191.
Tue Apr 04 13:47:28 2017
Stopping background process CJQ0
Tue Apr 04 13:47:56 2017
Error 1034 received logging on to the standby
Errors in file
/u01/db/tech_st/11.1.0/admin/DELL_rac1/diag/rdbms/dell_live/DELL/trace/DELL_a
rcp_16727.trc:
ORA-01034: ORACLE not available
PING[ARCp]: Heartbeat failed to connect to standby 'DELL_STBY'. Error is
1034.
=============================================================================
=================================
DESTINATION
-----------------------------------------------------------------------------
---
STATUS ERROR
--------- -----------------------------------------------------------------
DELL_STBY
ERROR ORA-16191: Primary log shipping client not logged on standby
SQL>
SQL>
STANDBY DB (192.168.1.12)
SQL> select CONTROLFILE_TYPE from v$database;
CONTROL
-------
STANDBY
Database altered.
Database dismounted.
ORACLE instance shut down.
SQL> exit
SOLUTION:
Recreate password file with following parameters on “PRIMARY” &
“STANDBY”
[oraerp@rac2 dbs]$ rm -rf orapwDELL
[oraerp@rac2 dbs]$ orapwd file=orapwDELL password=sys entries=100
ignorecase=Y
=============================================================================
=================================
Creation of Password file for PRIMARY DATABASE
[oraerp@rac1 dbs]$ rm -rf orapwDELL
[oraerp@rac1 dbs]$ orapwd file=orapwDELL password=sys entries=100
ignorecase=Y
=============================================================================
=================================
PRIMARY DB (192.168.1.11)
DESTINATION
-----------------------------------------------------------------------------
---
STATUS ERROR
--------- -----------------------------------------------------------------
DELL_STBY
VALID
SQL> alter system switch logfile;
System altered.
STANDBY DB (192.168.1.12)
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /u01/db/apps_st/arch
Oldest online log sequence 14
Next log sequence to archive 0
Current log sequence 15
SQL>
Switched Log on Primary database
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /u01/db/apps_st/arch
Oldest online log sequence 15
Next log sequence to archive 0
Current log sequence 16
SQL>
SQL>
SQL> alter database flashback on;
Database altered.
SQL> select LOG_MODE,FLASHBACK_ON,FORCE_LOGGING from v$database;
SQL>
CONCLUSION:
ORA-16191 ISSUE RESOLVED
Regards,
Mohammed Areefuddin.