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

Oracle connection string incorrect #146

Closed
noemif opened this issue May 26, 2016 · 5 comments
Closed

Oracle connection string incorrect #146

noemif opened this issue May 26, 2016 · 5 comments

Comments

@noemif
Copy link

noemif commented May 26, 2016

In init.pp line 215, it should be
"jdbc:${db}:thin:@//${dbserver}:${dbport}/${dbname}"
instead of
"jdbc:${db}:thin:@${dbserver}:${dbport}:${dbname}"

Just tested this with Jira 7.1.7 and Oracle Database 11g Enterprise Edition Release 11.2.0.3.0

@alexjfisher
Copy link
Member

@noemif https://docs.oracle.com/cd/E11882_01/appdev.112/e13995/oracle/jdbc/OracleDriver.html suggests the current code is correct. Could you double check?

@noemif
Copy link
Author

noemif commented May 26, 2016

Thanks for researching this issue, @alexjfisher !

I checked a few docs online, too, and wasted quite a bit of time on that.
In the end, the syntax I submitted above:

  • is what I had in my current (working) jira prod config
  • is what was spat out by Atlassian's own config tool (${webappdir}/bin/config.sh)
  • is what ultimately got my new jira instance to connect to the DB
    So it is puzzling, but the proof is in the pudding ;-)

I understand if you're not comfortable changing this without further testing though.
At least, the existence of this open issue might help someone else with similar problems, and they might submit their experience here.

Cheers,
Noemi

@jarshwah
Copy link

jarshwah commented May 26, 2016

The difference is between whether the dbname is a SID or Service Name. Both need to be supported depending on how oracle server has been deployed.

See here: http://docs.oracle.com/cd/B28359_01/java.111/b31224/urls.htm#BEIDHCBA

@TJM
Copy link
Contributor

TJM commented Jul 9, 2018

On a positive note, if you end up here and need to customize the jdbc connection url, you can do that with the dburl parameter.

@oranenj
Copy link
Contributor

oranenj commented Apr 14, 2021

I'll close this as a duplicate-ish of #283

@oranenj oranenj closed this as completed Apr 14, 2021
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

5 participants