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

Does not appear to support service names as opposed to SIDs #50

Closed
craigstjean opened this issue Feb 20, 2015 · 3 comments
Closed

Does not appear to support service names as opposed to SIDs #50

craigstjean opened this issue Feb 20, 2015 · 3 comments

Comments

@craigstjean
Copy link

When using a secure external password store (http://www.oracle.com/technetwork/database/security/twp-db-security-secure-ext-pwd-stor-133399.pdf), you typically reference your connection as a service.

For example if my TNS name is testdb.world, I could do:

  • sqlplus /@testdb.world
  • jdbc:oracle:thin:/@testdb.world

Debugging oci8.go, I see that at the end of ParseDSN, if I give it /@testdb.world then all of my variables in dsn are empty, except for port which is some non-numeric data (probably due to oci8.go:420's Atoi).

Is there any way to connect against a password store? Might just require an updated ParseDSN?

@craigstjean
Copy link
Author

Looks like OCILogon does not support TNS, would have to use OCISessionPoolCreate?

@craigstjean
Copy link
Author

Scratch that, based on https://stackoverflow.com/questions/21762885/using-oracle-wallet-authentication-from-oci need to use OCIServerAttach and OCISessionBegin. I'm hacking away at it, but I've never used OCI before so any assistance is appreciated.

@MichaelS11
Copy link
Contributor

I used TNS names file that use service names, seems to work fine for me.

@mattn Close this?

@mattn mattn closed this as completed Oct 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants