Skip to content

Commit 9fcdc0c

Browse files
authored
Merge pull request #622 from afumagalli98/updating-unretrieveddb
Commented ORA-01034 error
2 parents 7568aaa + 92b985e commit 9fcdc0c

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

builder/common_builder/oracle_databases.go

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ package common
1717

1818
import (
1919
"context"
20-
"fmt"
2120
"strings"
2221
"sync"
2322

@@ -174,12 +173,16 @@ func (b *CommonBuilder) getOracleDB(entry agentmodel.OratabEntry, host model.Hos
174173
return nil, nil
175174

176175
default:
177-
if strings.Contains(dbStatus, "ORA-01034") {
178-
msg := fmt.Sprintf("Connection Error: DBName: [%s] OracleHome: [%s]", entry.DBName, entry.OracleHome)
179-
b.log.Debugf(msg)
180-
181-
return nil, nil
182-
}
176+
_ = ""
177+
// Commented for unretrieved running db
178+
// move this comment below default to make it work again
179+
//
180+
// if strings.Contains(dbStatus, "ORA-01034") {
181+
// msg := fmt.Sprintf("Connection Error: DBName: [%s] OracleHome: [%s]", entry.DBName, entry.OracleHome)
182+
// b.log.Debugf(msg)
183+
184+
// return nil, nil
185+
// }
183186

184187
err := ercutils.NewErrorf("Unknown dbStatus: [%s] DBName: [%s] OracleHome: [%s]",
185188
dbStatus, entry.DBName, entry.OracleHome)

0 commit comments

Comments
 (0)