Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
unable to connect to oracle DB
#1
Not Solved
Hi,

I'm connecting oracle db from QTP using the following steps
Step 1: set conn=Createobject("ADODB.Connection")
Step 2: Srvname="Driver={Microsoft ODBC for Oracle}:Server=153.39.128.176;UID=abc;Password=password123"
Step 3:conn.open Srvname
Step 4:Set Rec = CreateObject("ADODB.Recordset")
Step 5:SQL="select count(*) from complianceprogramcode"
Rec.open SQL ,conn

In steps 3: it prompts for the error message "Format of the initialization string does not conform to the OLE DB specification"

I do not know the server name so gave the ip address of it.

Note: The oracle db is not connected at our end. It is installed in the client place remotely and we are accessing it through oracle client software

Please let me know the steps to the connect to database and retrieve data from table
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Connect to IBM MQ using UFT 12.5 soumen 2 4,559 03-17-2016, 11:16 AM
Last Post: vinod123
  DB2 Connect connection with IE 11 SRP 1 2,619 12-18-2015, 12:41 PM
Last Post: vinod123
  “Cannot connect to 8822 (connection timed out)" Ikbal 0 2,128 12-08-2014, 11:38 PM
Last Post: Ikbal
  How to connect two web element objects? zawarepradeep@gmail.com 1 2,638 07-23-2014, 11:23 PM
Last Post: Ankur
  I want to connect to IBM DB2 using QTPv11 MadhusudanRao 2 7,930 01-30-2014, 11:00 AM
Last Post: MadhusudanRao

Forum Jump:


Users browsing this thread: 1 Guest(s)