Hi Sharon
I have similar issues failing to understand how to set a oracle db connection up.
But my question is: Do I have to the client installed for this to work?
Kind regards Mikkel
Hi Sharon
I have similar issues failing to understand how to set a oracle db connection up.
But my question is: Do I have to the client installed for this to work?
Kind regards Mikkel
This is what I had to do to get a working connection to a Oracle database in a Windows Server 2012 R2 server.
I was able to install a Oracle client (both a x32 and a x64, since i got the error from this post: Connecting to Oracle Database) .
Now though i get the same error as described in this post: Error connecting to database but the solution doesnt help me. As far as I can read I have a problem with my ODBC, but what is the prerequisite for using this setup?
Alternately if I try to set up my connection with:
ProviderName: “System.Data.OracleClient”
ConnectionString: “SERVER=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=myHostNam)(PORT=myPort))(CONNECT_DATA=(SERVICE_NAME=mySID)));uid=myUsername;pwd=myPwd;”
I get the error message:
“Connect : ORA-12514: TNS:listener does not currently know of service requested in connect descriptor”
Got any pointers on what Im doing wrong?
Kind/desperate regards Mikkel
Yes please check your tnsnames.ora file that it contains valid information. Also test your DSN connection from the ODBC driver conf if possible. This example is from Win Server 2012 R2
Installing the basic 32 bit oracle client and then adding the below to connection string worked for me.
“Data Source=(DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=<service_name>))(ADDRESS=(PROTOCOL=TCP)(HOST=)(PORT=1521)));Uid=;Pwd=;”
Choose System.Data.OracleClient from the dropdown.
Since it’s a basic client, and I am using the descriptive connection string, I didn’t have to include any .ora files at all.
Hello,
Below is the correct way to connect UI Path and Oracle Database
“Data Source=(DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=<service_name>))(ADDRESS=(PROTOCOL=TCP)(HOST=)(PORT=1521)));Uid=;Pwd=;”
Thanks,
Vishal
Make sure you don’t hard code your passwords
Hi, it looks like your connection is fine but there’s an error in your SQL query. You should be able to see the Oracle error message in UiPath Studio Output window. The Oracle SQL queries may need to be modified when you transfer them to UiPath, depending on what you want to do. For example double quotes need to be given as ascii character chr(34).
ther query is fine, the problem is the 64bit odbc
Hi,
Am trying to connect DB from Instant Client.
I have updated connection string details as mentioned above, however am getting below error.
Is there any way I can resolve this issue?
I was able to configure Instant Oracle Client and able connect DB using Microsoft ODBC Driver.
Am trying to connect Database through Instant Client in UiPath.
As per the link, have also installed Microsoft visual C++ redistributable 64bit (not able to connect)
I have used below steps, but no luck still am not able to connect Database.
“Data Source=(DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=<service_name>))(ADDRESS=(PROTOCOL=TCP)(HOST=)(PORT=1521)));Uid=;Pwd=;”
System.Data.OracleClient
System.Data.ODBC
“Dsn=YourDBName;uid=UserID;pwd=password”
System.Data.ODBC
“Dsn=YourDBName;Driver=Microsoft ODBC for Oracle;uid=UserID;pwd=password”
System.Data.ODBC
Hi Richard,
How to use variables retrieved from assets and include them in the connection string?
Thanks
Connecting UiPath with Oracle
Regards,
Hiren
Nice details.
I had oracle express (as probably most people do, since it is free) and I configured it.
Just Instant Client should be in 32 bit not 64 bit (this happened to me).
I am going to try to configure the connection with one more way and maybe record it because it was pretty hard for me to configure all of that
Hello,
Has this worked for anybody? I’ve been able to test the connection successfully within Studio, however the workflow execution fails with the attached error. Thanks for your help in advance!
Where is the TNSNAMES.ora file located?
Try performing a TNSPING in the command prompt.
Link:- Tnsping - Oracle FAQ
Hello @Prashant_08,
I was able to resolve this using this thread:
[Connection to Oracle]
Thanks for replying!
Gunjan
I type your mentioned below info into the CONNECT activity and it works to fetch data in Oracle databse. Hope it is helpful for everyone.
ProviderName: “System.Data.OracleClient”
ConnectionString: “SERVER=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=myHostNam)(PORT=myPort))(CONNECT_DATA=(SERVICE_NAME=mySID)));uid=myUsername;pwd=myPwd;”