Hello!
Someone could explain to me how to make a connection to Oracle step by step. I tried it by all means and I have not had any result
thank you very much
Hello!
Someone could explain to me how to make a connection to Oracle step by step. I tried it by all means and I have not had any result
thank you very much
@Daniel_Rodriguez May be you had found solution but connecting to Oracle is a critical task which took me 3 days to solve different kind of issues with different situation, so that I posted here (on your topic) may be it could help someone later.
Please noted that, until July of 2018, UiPath has only version 32bit, so that you need oracle InstantClient for 32 bit, not 64 bit.
For uipath, there are 2 ways to connect to oracle DB
(1) using Microsoft ODBC
(2) using oracle client
Method (1) Microsoft ODBC: works; up to Windows 8. For windows server 2012 and windows server 2016, you need method (2). Because (1) has been deprecated.
More detail on method (1) using Microsoft ODBC
NOTE: for windows 64 bit, if you follow these steps From Windows, click Start, then select Settings, Control Panel, Administrative Tools and Data Sources (ODBC), by default, it will open version for 64 bit. You MUST open 32 bit. In order to do that, please use this file:
C:\Windows\SysWOW64\odbcad32.exe
From that forward, you can create ODBC and ready for using UiPath to connect to it.
Within UiPath, you need to install database package (if you had not installed it), so that you have activity namely: UiPath.Database.Activites.DatabaseConnect
Configure that Activity with below information:
Connection String: “Driver={Microsoft ODBC for Oracle};Server=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=x.x.x.x)(PORT=1521))(CONNECT_DATA=(SID=YOUR_SID)));Uid=USERID;Pwd=PASSWORD;”
Provider Name: “System.Data.Odbc”
More detail on method (2) using OracleClient
I MUST use method (2) because ODBC does not work on windows server 2012 and windows server 2016
Follow guideline at (*) to install InstantClient
Open Uipath and use this activity: UiPath.Database.Activites.DatabaseConnect
Configuration Detail
Connection String: “Server=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=x.x.x.x)(PORT=1521))(CONNECT_DATA=(SID=YOUR_SID)));Uid=USERID;Pwd=PASSWORD;”
Provider Name: “System.Data.OracleClient”
More information and troubleshoot:
If after ( * ), and ( ** ) things does not work; in my case, I had installed more than (*) mentioned. Totally, I installed 3 packages:
With Method (2)
With Method (2)
With Method (1)
With Visual Studio Redistributable:
With connection checking:
One last thing:
Be careful about connection string in 2 cases; case (2) does not have Driver within it.
More reference for issue of ODBC on windows server 2012, 2016:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/6b79325e-dee5-4a55-9a1c-e5c01938fd86/oracle-c-connection?forum=csharpgeneral
This is incredibly helpful, thank you for sharing with everyone.
Quick question on the connection string - How do you connect when username/password are not used due to SSO? I tried simply removing Uid and Pwd, but got an error stating i had an invalid username/password. I am able to log on via PL/SQL Developer without inputting anything in the username/password fields
replying to myself, but I just replaced Uid=USERID;Pwd=PASSWORD;
with Integrated Security=yes
and it is working
Could you please help me as I’m not able to configure it, I followed the approach but still getting error. Image Attached
This is awesome…thanks datnt…
Did you manage to find the solution?
I also followed these steps, I created the ODBC driver (the 64 bit one) but I still cannot get it to work
This issue is really useful for me!
I want this issue to be fed back into the official activity guide.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.