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

Service binding doesn't work with Oracle and SqlServer #82

Open
xieshenzh opened this issue Sep 28, 2022 · 1 comment · May be fixed by #83
Open

Service binding doesn't work with Oracle and SqlServer #82

xieshenzh opened this issue Sep 28, 2022 · 1 comment · May be fixed by #83

Comments

@xieshenzh
Copy link

spring-cloud-bindings injects database connection url for oracle and sqlserver with the format: jdbc:type://host:port/db.

But Oracle and SqlServer use different formats of connection url:
Oracle: jdbc:oracle:thin:@host:port/db
SqlServer: jdbc:sqlserver://host:port;databaseName=db

As a result, spring-cloud-bindings doesn't work when binding to Oracle or SqlServer by providing host, port and db.

@xieshenzh xieshenzh linked a pull request Sep 28, 2022 that will close this issue
@making
Copy link
Contributor

making commented Sep 30, 2022

I also ran into the same situation.

For Oracle, the format depends on the connection type

  • SID: jdbc:oracle:<driver>:@<hostname>:<port>:<sid>
  • Service Name: jdbc:oracle:<driver>:@//<hostname>:<port>/<servicename>
  • TNS: jdbc:oracle:<driver>:@<tnsname>

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

Successfully merging a pull request may close this issue.

2 participants