Comments (7)
Sorry but there is no way to connect to Oracle Database using this kind of trick.
This limitation came from the oracle driver (github.com/mattn/go-oci8).
So no way to change this only by changing this lib.
from oracledb_exporter.
It seems to be supported (https://github.com/mattn/go-oci8/blob/master/_example/as_sysdba/main.go).
Can you try the following value :
sqlplus sys/password@tnsentry as sysdba => sys/password@tnsentry?as=sysdba
sqlplus / as sysdba => sys/.@?as=sysdba
from oracledb_exporter.
The issue : mattn/go-oci8#209
The pull request : mattn/go-oci8#212
from oracledb_exporter.
where is tnsnames.ora file to be looked by go-oci8?
I put this config file on $ORACLE_HOME/network/admin, however, oracle_exporter can not find it.
from oracledb_exporter.
The below worked for me. @Yannig @changmao01
I am using something called easy connect name(or string or something)
bash$ export LD_LIBRARY_PATH=/usr/lib/oracle/19.3/client64/lib:$LD_LIBRARY_PATH;
bash$ export DATA_SOURCE_NAME='system:PASSWORDhere@oracle-host:1521/easy-tns-name'
Note that I did not pass any sysdba or sysoper parameter, as it was not working and instead connected as system
.
Post this:
bash$ ./oracledb_exporter.0.2.3.linux-amd64/oracledb_exporter -log.level info -web.listen-address localhost:9161 -default.metrics oracledb_exporter.0.2.3.linux-amd64/default-metrics.toml
To make this work, I also had to comment out the query that was causing timeout, the one in default-metrics.toml.
I am posting this after multiple trail and errors, yet to scrape the metrics using metricbeat(as I am on ELK).
from oracledb_exporter.
Hello!
Nice work Yanning
I want to know how to use connetion with sqlplus user/password only because on my database i can use one user for monitoring without connect with TNS or sys as sysdba.
Your function can do it too ?
Thanks a lot
from oracledb_exporter.
Hi,
Are you talking about the ability to connect in the same way as sqlplus with access management by user groups? If this is what you are talking about, the agent does not support this type of connection (or in any case, I am not aware of it).
But otherwise, nothing prevents using the same type of connection string in sqlplus and the exporter.
In any case, I advise you to approach your database administrator to resolve any problems that you may encounter.
from oracledb_exporter.
Related Issues (20)
- panic: runtime error: invalid memory address or nil pointer dereference HOT 4
- Some sql queries are taking time to execute, cause of which none of the queries are scraping data in time.
- Requesting queries with different execution intervals HOT 2
- level=error errorpingingoracle:="missing port in address" HOT 8
- Where is the actual queries that are running from the default metrics? HOT 1
- docker hub version is too old (iamseth/oracledb_exporter)
- Allow using multiple environment variables like DATA_SOURCE_NAME to query different databases HOT 1
- ASM sysdba DATA_SOURCE_NAME wrong example in README.md
- Read data source from file (Docker secrets)
- Incorrect Tablespace values HOT 3
- Release 0.6.0 not satrt HOT 6
- Unable to use custom metrics configuration file HOT 1
- Publish Docker images based on the "scratch" base image
- Unable to obtain oracle version or status info as value
- "advanced negotiation error: during receive service header: network excpetion: ora-12269"
- How to use Multi-Target Support? HOT 3
- DATA_SOURCE_NAME without the password HOT 4
- Different results between metric and Oracle query HOT 2
- Race condition HOT 4
- Is there a facility to easily include the database name in the metrics returned by oracledb_exporter? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oracledb_exporter.