ORA-12514, TNS:listener does not currently know of service requested in connect descriptor

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

The following appears in the atlassian-bitbucket.log when testing a connection to an Oracle DB:

2012-10-17 15:59:55,818 WARN  [http-7990-17] bitbucket 959x29x1 1m1q59y 10.11.44.156 "POST /admin/db/edit HTTP/1.1" c.a.s.i.m.DefaultMigrationService A connection could not be opened with the DataSource java.sql.SQLException: Listener refused the connection with the following error: ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
...
Caused by: oracle.net.ns.NetException: Listener refused the connection with the following error: ORA-12514, TNS:listener does not currently know of service requested in connect descriptor 

原因

Bitbucket Server does not support connecting to Oracle servers using a TNS Alias or SID for identification - BSERV-4148 - Getting issue details... STATUS .

ソリューション

As currently Bitbucket Server supports connecting to an Oracle DB only using a Service Name (refer to the "Database Name" parameter on the table you'll see on this link) you'll need to configure a Service Name for your database and specify that as a connection parameter on the "Database Name" field.

If you are not using TNS Alias to connect, then please check the JDBC URL in your bitbucket.properties file, in particular, the port number your database is listening on. The JDBC URL for Oracle is of the form:

jdbc.url=jdbc:oracle:thin:@//HOSTNAME:PORT/SERVICE_NAME



For more information what Service Name is, please refer to Defining Database Services.

最終更新日 2018 年 6 月 29 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.