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

Connecting to ATP Database #26

Closed
sb20200428 opened this issue Apr 28, 2020 · 4 comments
Closed

Connecting to ATP Database #26

sb20200428 opened this issue Apr 28, 2020 · 4 comments

Comments

@sb20200428
Copy link

Dietmar -

Interested in connecting JRI to an Oracle Cloud Automated Transaction Processing DB instance. The XLIB database objects have all been installed. Have a Tomcat instance running on a compute VM for the JRI web app. Configured datasource and tested - all I'm getting are repeated "NL Exception was generated" errors. I do not believe it to be an ACL or firewall issue.

Noticed that the 'oraclepki.jar', 'osdt_core.jar', etc. JARs have been loaded into the lib folder, so I figure that you may have a provision for connecting via Oracle Wallet.

Using following db connection string in 'application.properties':
db=jdbc:oracle:thin:@dbid_medium?TNS_ADMIN=/path/to/wallet

Can you provide guidance? It would be greatly appreciated. Have had success using your toolkit in past - but they were always local applications. I would like to see how it works w/ a cloud application.

@daust
Copy link
Owner

daust commented Sep 14, 2020

Hi.

Unfortunately, I have no experience with this specific setup.

Did you figure it out in the meantime? Is this problem still relevant for you ... or did you find another solution?

Thanks
~Dietmar.

@daust daust assigned sb20200428 and daust and unassigned sb20200428 Sep 14, 2020
@daust daust added question waiting for reply from reporter waiting for feedback from the original poster / filer / bug reporter in order to proceed. labels Sep 14, 2020
@sb20200428
Copy link
Author

Yes, still interested. No, did not find a solution beyond moving away from JRI. I suppose, to simplify, the question would be whether or not JRI can be made to work using oracle wallet authentication.

@daust
Copy link
Owner

daust commented Sep 16, 2020

I don't see any reason why it should not work when I look at the instructions: https://www.oracle.com/database/technologies/java-connectivity-to-atp.html

Starting with version 2.6.0 we are using the right jdbc library to support that. But we might need to pick up a different set of jdbc libraries which also includes more security related support: https://www.oracle.com/database/technologies/appdev/jdbc-ucp-19c-downloads.html

Once I have updated the documentation and released 2.6.0 I will have a look at this and give it a try.

@daust daust removed the waiting for reply from reporter waiting for feedback from the original poster / filer / bug reporter in order to proceed. label Sep 16, 2020
@daust daust added this to the v2.7.0 milestone Sep 16, 2020
@daust
Copy link
Owner

daust commented Nov 18, 2020

it is now fixed and works. I downloaded the right version to support cloud connections from: https://www.oracle.com/database/technologies/appdev/jdbc-ucp-19c-downloads.html:

ojdbc8-full.tar.gz

@daust daust closed this as completed Nov 18, 2020
daust added a commit that referenced this issue Nov 18, 2020
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