sijms / go-ora

Pure go oracle client
MIT License
795 stars 176 forks source link

Add authentication for SYSDG and other roles #563

Closed wes-pro closed 2 months ago

wes-pro commented 3 months ago

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)

sijms commented 2 months ago

thanks for contribution