Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remote Database connection through QTP
#1
Not Solved
Hi All,

I am testing a Java Swing application which uses Oracle 10g as back-end.
I have Oracle client installed in my machine and I access database from a remote machine.

I wrote following snippet of codes and when ran it, I got some TNS:protocol adapter error(Attached is the screenshot of the error)

Quote:Const adOpenStatic = 3
Const adLockOptimistic = 3

Set objConnection = CreateObject("ADODB.Connection")
Set objRecordSet = CreateObject("ADODB.Recordset")
objConnection.Provider = "OraOLEDB.Oracle"

objConnection.open "server=XXXX;uid=YYYYYY;pwd=ZZZZZZ;database=AAAAA"

objRecordSet.Open "select ABC from RPQL",objConnection, adOpenStatic,adLockOptimistic
objRecordSet.MoveFirst
msgbox objRecordSet.RecordCount

I have cross-checked many times and confirmed that server,uid,pwd etc. are correct.

Can somebody help me solving this? Any suggestion is highly apprciated.


Attached Files Image(s)
   
Reply


Messages In This Thread
Remote Database connection through QTP - by PrabhatN - 11-25-2010, 07:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need script to connect remote machine stalinvanama 1 1,659 09-27-2018, 08:12 PM
Last Post: stalinvanama
  executing qtp on a remote machine sujaravi123 4 4,909 08-02-2013, 01:22 PM
Last Post: sujaravi123
  Connection to oracle using JDBC and QTP dileep45 0 3,442 07-30-2013, 06:39 PM
Last Post: dileep45
Question DB connection string issue jackmartins 2 6,110 07-05-2013, 02:47 PM
Last Post: Staff
  Remote server machine does not exist eroshan 5 14,229 05-06-2013, 06:03 PM
Last Post: Saket

Forum Jump:


Users browsing this thread: 1 Guest(s)