I need to connect to a Oracle database using UiPath. Have been going through this trail. Still I am unable to setup a connection. As I understood there are two ways to connect, using different combinations of below.
Connection strings
Connection String = Driver={Microsoft ODBC for Oracle};Server=10.3.4.xxx;
Data Source=(DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=<service_name>))(ADDRESS=(PROTOCOL=TCP)(HOST=)(PORT=1521)));Uid=;Pwd=;”
Driver Options
System.Data.OracleClient
System.Data.Odbc
But I am unable to figure out the correct way to setup the connection. There is an approach creating a DSN and installing a oracle instant client and severa steps.
Can someone help to figure out the steps to follow, inorder to setup the connection.
Note: My OS is 64bit. Only the 32bit version of Microsoft Odbc driver for oracle exist in my machine.
In your machine Oracle should be there
Then give connection string
Data Source=“”;Initial Catalog=“”;Persist Security Info=True;User ID=“”;Password=“”
Driver Options
System.Data.OracleClient
Give this & try
A oracle data source must be configured on your machine or any machine which will be accessing the Oracle provider. Once the source is configured in your Windows PC, you’ll be able to see it while selecting providers in Uipath Studio.
Thanks @Jagdish2593. But, what do you mean by a data source? You mean a Oracle database? Or something like Oracle instant client or DSN? Still confused…:-/
I could create the connection successfully. The above error was due to an additional space in the connection string in tnsnames.ora file…
Steps followed are:
Download oracle instant client (basic and odbc driver) - 32 bit
Extract content of both to one folder
Add the path of instant client folder to System variables (Path and TNS_ADMIN)
Install instant client by running odbc_install.exe in instant client folder
Create the tnsnames.ora file inside the instant client folder.
**If u have the file in some other location, make sure TNS_ADMIN is pointed to that location.
Go to Administrative tool and launch Admin tool for ODBC (32 bit)
Create a User DSN by clicking Add button under User DSN tab
Select Oracle db
Click Finish
Provide a preferred name to dsn
Select server name from TSN name drop down
Provide server username
Click Test Connection
Provide the password and Ok
**Connection success message is received.
In the connection wizard of UiPath, generate connection string by selecting Dsn name and then providing username, password and testing connection.