Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Connecting to Oracle 11g with AutoIt/QTP

3009952Sep 29 2015 — edited Sep 29 2015

I'm facing issues while connecting My Automation Tool (QTP/Auto It) with Oracle 11g on Win7(64bit). I am using the same connection string in sample java program to connect with Oralce11g and it was connected successfully.

I've tried several steps, however it fails.
1 Add User DSN, test connection successful.(User DSN name is oracle)
2 Write sript in QTP/AutoIt to connect oracle.

Here is my connect string and error.
Set objCon=CreateObject("ADODB.Connection")

strConn1 = "DSN=Oracle;Driver={Oracle in OraDb11g_home1};SERVER=****;UID=***;PWD=****;DBQ=****:1521/****;"

objCon.Open strConn1

Error:[Microsoft][ODBC Driver Manager] The Specified DSN contains an architecture mismatch between the Driver and Application. Please find the attached screen shot for the same.

************************************************************
strConn = "Provider=OraOLEDB.Oracle;Password=Password;Persist Security Info=True;User ID=UserName;Data Source=****;server=****"

Error: Provider cannot be found. It may not be properly installed.


Some one who can help will be greatly appreciated.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 27 2015
Added on Sep 29 2015
0 comments
3,596 views