Skip to content
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

Use SID to connect to Oracle #17395

Open
qgib opened this issue Sep 25, 2013 · 6 comments
Open

Use SID to connect to Oracle #17395

qgib opened this issue Sep 25, 2013 · 6 comments

Comments

@qgib
Copy link
Contributor

qgib commented Sep 25, 2013

Author Name: Jonathan Moules (Jonathan Moules)
Original Redmine Issue: 8666

Redmine category:data_provider/oracle


Currently (2.0.1) to connect to Oracle you need to know the Host details (IP and port). This is redundant because it is stored in TNS-names.

In theory all that is required is either SID or SERVICE_NAME/GLOBAL_NAME which can then lookup the details. FME does it this way and it works well, maybe QGIS can do it too.

@qgib
Copy link
Contributor Author

qgib commented Sep 25, 2013

Author Name: Jürgen Fischer (@jef-n)


Did you set the @TNS_ADMIN@ environment variable to the directory where your @tnsnames.ora@ is?

@qgib
Copy link
Contributor Author

qgib commented Sep 25, 2013

Author Name: Jonathan Moules (Jonathan Moules)


My mistake - this is already in there and no TNS_ADMIN is needed. It's not "SID" that is used, it's SERVICE_NAME. Apologies for my confusion.

If I just fill in the "database" as SERVICE_NAME/GLOBAL_NAME, and leave host blank, then it works fine.


So my feature request changes:

  • Can the help and/or dialog be updated to reflect this? The current dialog implies that Host is mandatory in all situations. Just entering the database name is much easier.

@qgib
Copy link
Contributor Author

qgib commented Feb 9, 2014

Author Name: Carlo Copat (Carlo Copat)


Good morning,
I have a problem with the connection to the spatial data with oracle. When I go to test the connection oracle gives me this error: ORA-12705 Can not access NLS data files or invalid environment specified. Unable to connect. If I run the same connection with SQL Navigator everything is working perfectly. You need to set some specific parameter in QGIS? thanks

@qgib
Copy link
Contributor Author

qgib commented Feb 10, 2014

Author Name: Jonathan Moules (Jonathan Moules)


Hi Carlo, I don't think that's the same issue. You might want to ask on the QGIS mailing list - http://www.qgis.org/en/site/forusers/support.html#mailing-lists

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • easy_fix was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Sep 8, 2017

Author Name: Jürgen Fischer (@jef-n)


  • assigned_to_id removed Jürgen Fischer

@qgib qgib added Feature Request Data Provider Related to specific vector, raster or mesh data providers labels May 24, 2019
@alexbruy alexbruy added Oracle data provider and removed Data Provider Related to specific vector, raster or mesh data providers labels Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants