Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ORA-06413: Connection not open
#1
Not Solved
I am using the following function in QTP 11 to fetch data from Oracle in Windows XP 32-bit machine:

Code:
strConn = "DRIVER={Microsoft ODBC for Oracle};UID=******;PWD=******;SERVER=******;"
strQuery = "select * from ref_enterprise"

Public Function ADODB_DBConnection(strConn, strQuery)
   Dim conn, rs
   Set conn = CreateObject("ADODB.Connection")
   With conn
    .ConnectionString = strConn
    .Open
        Set rs = CreateObject("ADODB.Recordset")
        rs.Open strQuery, conn, 3, 3
   End With
   ADODB_DBConnection = Array(rs.RecordCount, rs, rs.Fields.Count, conn)
   Set conn = Nothing
   Set rs = Nothing
End Function

Data = ADODB_DBConnection(strConn, strQuery)

msgbox Data(0)
msgbox Data(1).Fields(0).Value

The above code gets executed without any error.

However, I am getting the following error on executing the same script in Windows7 64-bit machine while fetching data from Oracle:
ORA-06413: Connection not open

Can somebody help with the exact steps that would be required. I have tried several options after searching the internet, but none worked so far.
Reply
#2
Not Solved
Can anyone reply? I am stuck on this.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [UFT] Connection String for Oracle robertosalemi 6 12,357 01-15-2016, 04:51 PM
Last Post: robertosalemi
  DB2 Connect connection with IE 11 SRP 1 2,655 12-18-2015, 12:41 PM
Last Post: vinod123
  IBM DB2 connection with VB script bmurali 2 10,977 12-18-2015, 12:38 PM
Last Post: vinod123
  Connection with HP ALM hachem 0 2,661 02-26-2015, 04:36 PM
Last Post: hachem
  “Cannot connect to 8822 (connection timed out)" Ikbal 0 2,183 12-08-2014, 11:38 PM
Last Post: Ikbal

Forum Jump:


Users browsing this thread: 1 Guest(s)