Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
IMPORTANT: Upcoming LEF Database Maintenance, Oct. 3rd - SEE DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Partner
Partner

Oracle 9i Database Connection Problem. ODBC Connection failed.

Hi guys,

I am having a problem in connecting to Oracle DB 9i.

when i create an ODBC connection, i can see that the connection is successful. but when i try to connect it in the QV i am getting the following error.


Connection Test Failed

SQL##f - SqlState: 08004, ErrorCode: 12154, ErrorMsg: [Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve service name

i am using QV desktop SR12.

DB is Oracle 9i 32bit.( i marked "force 32bit" )

1 Solution

Accepted Solutions
Highlighted

Hi,

Can you try by downloading Qlik odbc connector launch recently by qlik.

That will enable you to connect with many such databases, Like PostgreSQL, MYSQL, Oracle, DB2 e.t.c without the need to install client.

Go to download page for the same.

Check below link

https://community.qlik.com/blogs/supportupdates/2015/06/30/connectivity-new-sfdc-and-odbc-connectors

Regards

ASHFAQ

View solution in original post

5 Replies
Highlighted

This isn't a QlikView error, as it is happening in the ODBC driver.

Check some tips about solving this omnipresent Oracle problem here: ORA-12154: TNS tips

Peter

Highlighted

BTW how can you see that the connection is succesful if the only test the ODBC driver provides (Test Connection)  ... fails?

Highlighted
Creator II
Creator II

Kindly check to see if the TNSNames.ora file is configured

Ensure the HOST, PORT & SID is configured properly

ORCL =

  (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))

    (CONNECT_DATA =

      (SERVER = DEDICATED)

      (SID = orcl.star.cd)

    )

  )

Highlighted

Hi,

Can you try by downloading Qlik odbc connector launch recently by qlik.

That will enable you to connect with many such databases, Like PostgreSQL, MYSQL, Oracle, DB2 e.t.c without the need to install client.

Go to download page for the same.

Check below link

https://community.qlik.com/blogs/supportupdates/2015/06/30/connectivity-new-sfdc-and-odbc-connectors

Regards

ASHFAQ

View solution in original post

Highlighted
Partner
Partner

Thanks Ashfaq, It worked