[JIRA] (CDAP-18354) Not able to create connection to the Oracle database in wrangler.

11 views
Skip to first unread message

Sagar Kapare (Jira)

unread,
Aug 13, 2021, 1:50:19 PM8/13/21
to cdap...@googlegroups.com
Sagar Kapare created an issue
 
CDAP / Bug CDAP-18354
Not able to create connection to the Oracle database in wrangler.
Issue Type: Bug Bug
Affects Versions: 6.5.0
Assignee: Prerna Bellara
Components: Wrangler
Created: 13/Aug/21 10:50 AM
Priority: Critical Critical
Reporter: Sagar Kapare

I try to create connection to the oracle database.
Following is the connection JSON obfuscated hostname and password

{
    "name": "oracle",
    "description": "testoracle",
    "category": "Database",
    "plugin": {
        "category": "Database",
        "name": "Oracle",
        "type": "connector",
        "properties": {
            "host": "1.2.3.4",
            "port": "1521",
            "connectionType": "service",
            "role": "normal",
            "jdbcPluginName": "oracle-thin",
            "user": "dbzuser",
            "password": "pwd"
        },
        "artifact": {
            "scope": "SYSTEM",
            "name": "oracle-plugin",
            "version": "1.6.0-SNAPSHOT"
        }
    }
}

Don't have an option to enter either SID or service name. There is an option to select which method to use though.

Add Comment Add Comment
 
Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS
This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100172-sha1:2680ea2)
Atlassian logo

Sagar Kapare (Jira)

unread,
Aug 13, 2021, 1:51:05 PM8/13/21
to cdap...@googlegroups.com
Sagar Kapare commented on Bug CDAP-18354
 
Re: Not able to create connection to the Oracle database in wrangler.

I am able to connect to Oracle in 6.4.1 by specifying advanced connection string:

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS
This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100172-sha1:2680ea2)
Atlassian logo

Sagar Kapare (Jira)

unread,
Aug 13, 2021, 1:54:27 PM8/13/21
to cdap...@googlegroups.com

Not sure if service name or SID can be provided as a part of connection arguments which is not very intuitive anyway. Even if we can, then documentation will need improvement as well as connection properties now becomes required field.

Ideally we should have separate field for SID or TNS service name and/or accept advanced connection string as wrangler in 6.4.1

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS
This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100172-sha1:2680ea2)
Atlassian logo

Amit Virmani (Jira)

unread,
Aug 13, 2021, 2:21:35 PM8/13/21
to cdap...@googlegroups.com

This can be done using the Generic Database connection, right?

Sean Zhou and Sagar Kapare ?

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS
This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100172-sha1:2680ea2)
Atlassian logo

Sean Zhou (Jira)

unread,
Aug 13, 2021, 2:33:07 PM8/13/21
to cdap...@googlegroups.com

This is by design. For DB specific connection, we don’t allow user to specify database (here it’s SID or TNS Service name) , only generic database connection allows user to specify database. All old connections will be migrated to generic database connection.

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS
This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100172-sha1:2680ea2)
Atlassian logo

Sagar Kapare (Jira)

unread,
Aug 13, 2021, 2:41:09 PM8/13/21
to cdap...@googlegroups.com

I think SID/TNS service name is different and at higher level than the database name. For connecting to Oracle instance we need SID or TNS service name, but we don't need database name.

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS
This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100172-sha1:2680ea2)
Atlassian logo

Yaojie Feng (Jira)

unread,
Aug 13, 2021, 2:52:49 PM8/13/21
to cdap...@googlegroups.com

Sean Zhou since this is a regression, can we just add a field about it so user still able to specify it in 6.5?

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS
This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100172-sha1:2680ea2)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages