DBZ-4850 Add several retriable SQL error codes
This commit is contained in:
parent
80cda74e63
commit
efdb5d21fc
@ -106,6 +106,7 @@ Eric Slep
|
|||||||
Eric Weaver
|
Eric Weaver
|
||||||
Eric S. Kreiseir
|
Eric S. Kreiseir
|
||||||
Erik Malm
|
Erik Malm
|
||||||
|
Ethan Zou
|
||||||
Ewen Cheslack-Postava
|
Ewen Cheslack-Postava
|
||||||
Fabian Aussems
|
Fabian Aussems
|
||||||
Fabian Martinez
|
Fabian Martinez
|
||||||
|
@ -36,7 +36,10 @@ public class OracleErrorHandler extends ErrorHandler {
|
|||||||
"ORA-26653", // Apply DBZXOUT did not start properly and is currently in state INITIALI
|
"ORA-26653", // Apply DBZXOUT did not start properly and is currently in state INITIALI
|
||||||
"ORA-01291", // missing logfile
|
"ORA-01291", // missing logfile
|
||||||
"ORA-01327", // failed to exclusively lock system dictionary as required BUILD
|
"ORA-01327", // failed to exclusively lock system dictionary as required BUILD
|
||||||
"ORA-04030"); // out of process memory
|
"ORA-04030", // out of process memory
|
||||||
|
"ORA-00310", // archived log contains sequence *; sequence * required
|
||||||
|
"ORA-01343", // LogMiner encountered corruption in the logstream
|
||||||
|
"ORA-01371"); // Complete LogMiner dictionary not found
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Contents of this set should be any type of error message text;
|
* Contents of this set should be any type of error message text;
|
||||||
|
@ -57,7 +57,7 @@ static String currentRedoNameQuery() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static String currentRedoLogSequenceQuery() {
|
static String currentRedoLogSequenceQuery() {
|
||||||
return String.format("SELECT SEQUENCE# FROM %s WHERE STATUS = 'CURRENT'", LOG_VIEW);
|
return String.format("SELECT SEQUENCE# FROM %s WHERE STATUS = 'CURRENT' ORDER BY SEQUENCE#", LOG_VIEW);
|
||||||
}
|
}
|
||||||
|
|
||||||
static String databaseSupplementalLoggingAllCheckQuery() {
|
static String databaseSupplementalLoggingAllCheckQuery() {
|
||||||
|
@ -75,7 +75,7 @@ public void testStatements() {
|
|||||||
assertThat(result).isEqualTo(expected);
|
assertThat(result).isEqualTo(expected);
|
||||||
|
|
||||||
result = SqlUtils.currentRedoLogSequenceQuery();
|
result = SqlUtils.currentRedoLogSequenceQuery();
|
||||||
expected = "SELECT SEQUENCE# FROM V$LOG WHERE STATUS = 'CURRENT'";
|
expected = "SELECT SEQUENCE# FROM V$LOG WHERE STATUS = 'CURRENT' ORDER BY SEQUENCE#";
|
||||||
assertThat(result).isEqualTo(expected);
|
assertThat(result).isEqualTo(expected);
|
||||||
|
|
||||||
result = SqlUtils.databaseSupplementalLoggingAllCheckQuery();
|
result = SqlUtils.databaseSupplementalLoggingAllCheckQuery();
|
||||||
|
Loading…
Reference in New Issue
Block a user