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
Oracle - add/edit connection dialog forces hostname input - conflicts with Oracle Network Connection #38979
Comments
It's working fine for me, I'm on 02f5c13 on Linux Debian. |
@uclaros here is the same connection on 3.15 (left) and 3.10 (right) |
Your host field is empty, if it's a local connection just enter localhost |
Filling it with localhost will trigger an error with the client : ORA-12154 : TNS: could not resolve the connect identifier specified, these parameters were used at least since QGIS 2.x. Most of the configuration is done through a single common file where all the hosts and ports are defined. |
Can you connect if you supply the host address, the database, the port,, the schema and credentials? |
If I fill in the hostname I'll get the aforementioned ORA :
When I provide an hostname such as localhost in QGIS, it conflicts with the one set in the ADDRESS_LIST / HOST of the *.ora file of our organization. If I add manually the correct hostname, it would connect but then if the IT admin change it in the global file it would break all the connections. |
So if I get this right, the problem is that you are unable to connect using |
The contrary : forcing to specify the host conflicts with tnsname.ora, I'm able to connect if I leave the host field blank (in 3.10 and earlier). |
It's related to #35838 but the main issue is that there is no service field in oracle new connection dialog like there is in Postgres. For now, if you didn't set a host the database name was considered as a service name. But since #35838 the check prevents from setting database name without an host, which is quite normal. I'll propose a PR to fix this. |
User can set database without host and port, meaning he is using a service (tnsnames.ora) The QGIS User Interface forced the port to not be empty even if the database is set and the host is empty. It is an addition to qgis#39131 _[Oracle] Fix new connection greyed ok button_ to fix qgis#38979 _Oracle - add/edit connection dialog forces hostname input - conflicts with Oracle Network Connection_
User can set database without host and port, meaning he is using a service (tnsnames.ora) The QGIS User Interface forced the port to not be empty even if the database is set and the host is empty. It is an addition to qgis#39131 _[Oracle] Fix new connection greyed ok button_ to fix qgis#38979 _Oracle - add/edit connection dialog forces hostname input - conflicts with Oracle Network Connection_
User can set database without host and port, meaning he is using a service (tnsnames.ora) The QGIS User Interface forced the port to not be empty even if the database is set and the host is empty. It is an addition to #39131 _[Oracle] Fix new connection greyed ok button_ to fix #38979 _Oracle - add/edit connection dialog forces hostname input - conflicts with Oracle Network Connection_
User can set database without host and port, meaning he is using a service (tnsnames.ora) The QGIS User Interface forced the port to not be empty even if the database is set and the host is empty. It is an addition to #39131 _[Oracle] Fix new connection greyed ok button_ to fix #38979 _Oracle - add/edit connection dialog forces hostname input - conflicts with Oracle Network Connection_
User can set database without host and port, meaning he is using a service (tnsnames.ora) The QGIS User Interface forced the port to not be empty even if the database is set and the host is empty. It is an addition to #39131 _[Oracle] Fix new connection greyed ok button_ to fix #38979 _Oracle - add/edit connection dialog forces hostname input - conflicts with Oracle Network Connection_
User can set database without host and port, meaning he is using a service (tnsnames.ora) The QGIS User Interface forced the port to not be empty even if the database is set and the host is empty. It is an addition to #39131 _[Oracle] Fix new connection greyed ok button_ to fix #38979 _Oracle - add/edit connection dialog forces hostname input - conflicts with Oracle Network Connection_
Description
Creating or editing an Oracle connection with the data source manager is not possible with a version > 3.10.x, the validation control is greyed out
How to Reproduce
QGIS and OS versions
Last version tested that works -> 3.10.3
Last version tested -> 3.15.0-Master 9305e22
Other versions tested 3.12 3.14
The text was updated successfully, but these errors were encountered: