I needed ability to use SYSDG role to monitor database in MOUNTED state using https://github.com/iamseth/oracledb_exporter.
I'm not advanced Golang programmer - but this simple change works for me and does not break ability to connect to older versions (tested this with 11gR2 which does not support SYSDB privilege and with 12.x, 18.x and 19.x - which works in such mode)
I needed ability to use SYSDG role to monitor database in MOUNTED state using https://github.com/iamseth/oracledb_exporter. I'm not advanced Golang programmer - but this simple change works for me and does not break ability to connect to older versions (tested this with 11gR2 which does not support SYSDB privilege and with 12.x, 18.x and 19.x - which works in such mode)