Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remote Database connection through QTP
#5
Not Solved
Prabhat, as far as I know, through ODBC you have to have the "server" defined in your Oracle client's tnsnames.ora file. It can be found in a similar path to this:

C:\oracle\product\10.2.0\client\NETWORK\ADMIN\tnsnames.ora

Using a text editor, some code similar to the below will have to be added to the file and the correct values added for your system.

Code:
<<This would be the newly defined server name e.g. "TESTDB">> =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = <<host name or IP of server>>)(PORT = 1521))
    (CONNECT_DATA =
      (SID = <<sid of server>>)
      (SERVER = DEDICATED)
    )
  )

The TNS code get worse if there is load balancing and such...
Reply


Messages In This Thread
RE: Remote Database connection through QTP - by cdesserich - 12-02-2010, 12:53 PM

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

Forum Jump:


Users browsing this thread: 1 Guest(s)