How to connect to a DB with a service name?

I have followed the instructions for "https://confluence.atlassian.com/display/JIRAKB/How+to+Connect+JIRA+to+ORACLE+Using+Service+Name" but it did not work because the SID is not the same across the servers. Atlassian support is not sure the article would apply with different SIDs. Is this possible?

2 answers

1 accepted

What do you mean with "SID is not the same across the servers"? Do you have more than 1 database server?

becausewehave4differentservershostingtheDBsnow

iftheloadononeserverisoverload

systemwillpickupsomeDBsandmovetoanotherserverwhichhasmorecapacityatthattime

SO the SID could change

It seams like Oracle thin java client can't do this "magic". It seams you should then install full oracle client on Jira server. And use similar option in Jira tomcat:

-Doracle.net.tns_admin=$ORACLE_HOME/network/admin

Probably you should read this article carfully: http://docs.oracle.com/cd/B19306_01/java.102/b14355/urls.htm

Try following syntax in dbconfig.xml <url> section:

jdbc:oracle:thin:@(DESCRIPTION=
(LOAD_BALANCE=on)
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=TCP)(HOST=host1) (PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=host2)(PORT=1521)))
(CONNECT_DATA=(SERVICE_NAME=service_name)))"

After @ you should write service name database definition from your tnsnames.ora

This worked! Sorry for the delay, been busy with projects. Thanks for your advice

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

82 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you