New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose service names available in tnsnames.ora #313
Comments
Yes, that would be possible and shouldn't be too much effort, either. |
I have added the function get_network_service_names() which does what you request. If you are able to build from source you can verify that it works for you, too. |
not currently setup to build from source but will try to get setup and provide feedback asap. thanks for the quick turnaround. |
I can confirm it works as expected. tyvm. |
This was included in version 2.2.0 which was just released. |
python-oracledb
internally parses the content of thetnsnames.ora
file here but does not provide or expose a way to list the available service names parsed.We have use cases where we need to switch between database services. It would be logical to propose the list of available services from the list of services parsed by python-oracledb.
Something like below or similar would work:
Is that something feasible? What are your thoughts?
The text was updated successfully, but these errors were encountered: