Highlighted
Absent Member.
Absent Member.
1120 views

Connecting to Oracle DB using lrd_open_connection

Hi

 

I am trying to connect to Oracle db using lrd_open_connection , but I am not sucessful, please advise if you have any sample code ...

I used :

lrd_open_connection(&Con1, LRD_DBTYPE_ODBC, "usrname", "pwd","devdb1.xxx.com:1521", "TST", Ctx1, 1, 0);

where TST is Database name...

 

I got error : ERROR, return-code=LRDE2003.

Please recommed, I want to simulate Load using vugen with 25 users....with oracle DB

0 Likes
4 Replies
Highlighted
Absent Member.
Absent Member.

Re: Connecting to Oracle DB using lrd_open_connection

 I tried to find how to connect to Oracle db in internet, never found any where..

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Connecting to Oracle DB using lrd_open_connection

Hi,

You can use the lrd_open_connection API in following form:

lrd_open_connection(&Con1, LRD_DBTYPE_ODBC, "", "", "", "DSN=dsn_name;UID=user_name;PWD=password", Ctx2, 1, 0);

 

However, I suggest you to use Oracle 2-tier protocol rather than ODBC. It is more specific for Oracle DB and it has better support under Linux.

 

Regards,

Alexander.

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Connecting to Oracle DB using lrd_open_connection

Thank you AZm,   is there funcitonal in oracle tier 2 protocol to use or any direct utility available ?  

 

btwn: I am new bee to lr

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Connecting to Oracle DB using lrd_open_connection

AZM:  I created DSN, and I used as below statement did not work.

 rd_open_connection(&Con1, LRD_DBTYPE_ODBC, "", "", "", "DSN=dsn_name;UID=user_name;PWD=password", Ctx2, 1, 0);

 

 

 

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.