Hi community,
I'm trying to configure metricbeat on a Windows Server 2008 R2 server for 3 oracle 10.2.0.5 databases.
I know both is not newest, but customer uses this still and of course these databases are important and not able to upgrade them
Unfortunately metricbeat can't connect to my database. I've two different errors I want to show you.
In first case metricbeat can connect to database but it tries to login into database with wrong password. But password is correct. My oracle.yml in modules.d directory looks like this:
- module: oracle
metricsets: ["tablespace", "performance"]
enabled: true
period: 10s
hosts: ["HH-T-ORASRV-01:1521/ORACLEHH"]
username: elastic
password: password123
For this configuration I get these message in merticbeat logfile. Sorry for geman text, but the databases are running in german language.
2024-02-09T13:23:26.478+0100 ERROR module/wrapper.go:266 Error fetching data for metricset oracle.performance: error creating connection to Oracle: error doing ping to database: params=oracle://HH-T-ORASRV-01%3A1521:************?connectionClass=GODROR&enableEvents=0&heterogeneousPool=0&poolIncrement=1&poolMaxSessions=1000&poolMinSessions=1&poolSessionMaxLifetime=1h0m0s&poolSessionTimeout=5m0s&poolWaitTimeout=30s&prelim=0&standaloneConnection=0&sysasm=0&sysdba=0&sysoper=0&timezone= extAuth=0: ORA-01017: Benutzername/Kennwort ungültig; Anmeldung abgelehnt
type or paste code here
I just removed my passwords in this message for this forum so please not wonderung :D. But it's classical Oracle error ORA-01017 which mease "hey your login is not right. But it is
Password also have no special letters, only alphanumeric.
Then because I saw this Metricbeat: Oracle module failing to connect while SQL module works · Issue #24118 · elastic/beats · GitHub I tried this configuration in oracle.yml in modules.d directory.
- module: oracle
metricsets: ["tablespace", "performance"]
enabled: true
period: 10s
hosts: ["oracle://HH-T-ORASRV-01:1521/ORACLEHH"]
username: elastic
password: password123
Now metricbeat can't connect to my service because it means the service can't be found.
2024-02-09T13:32:16.427+0100 ERROR module/wrapper.go:266 Error fetching data for metricset oracle.performance: error creating connection to Oracle: error doing ping to database: params=oracle://elastic:*********@HH-T-ORASRV-01:1521/ORACLEHH?connectionClass=GODROR&enableEvents=0&heterogeneousPool=0&poolIncrement=1&poolMaxSessions=1000&poolMinSessions=1&poolSessionMaxLifetime=1h0m0s&poolSessionTimeout=5m0s&poolWaitTimeout=30s&prelim=0&standaloneConnection=0&sysasm=0&sysdba=0&sysoper=0&timezone= extAuth=0: ORA-12154: TNS: Angegebener Connect Identifier konnte nicht aufgelöst werden
But normal sqlplus connect works fine in this style:
D:\oracle\product\10.2.0\db_1\BIN>sqlplus elastic/********@//HH-T-ORASRV-01:1521/ORACLEHH
SQL*Plus: Release 10.2.0.5.0 - Production on Fri Feb 9 13:36:09 2024
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Verbunden mit:
Oracle Database 10g Release 10.2.0.5.0 - 64bit Production
ELASTIC@//HH-T-ORASRV-01:1521/ORACLEHH>
So something in both configuration seems to be wrong.
All tests I'm trying direct on the database server.
Maybe somebody have good idea?
Thanks and regards,
David