Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[UFT] Connection String for Oracle
#1
Not Solved
Hi,
i'm using SQL Developer for to connect to the database.
I have this parameters:
- username
- password
- hostname
- port
- SID

In VBScript, which is the connection string correct?

I tried more different connection strings, but nothing works.

Thanks.
Reply
#2
Not Solved
Code:
"Driver={Microsoft ODBC for Oracle};Server=QTPWorld; Uid=your_username;Pwd=your_password;"
Reply
#3
Not Solved
Hi,
not works:
"Microsoft OLE DB Provider: for ODBC Drivers: [Microsoft Driver Manager] Data source name not found and no default driver specified".

Why?
Reply
#4
Not Solved
Code:
con.ConnectionString =
     "User Id=scott;Password=tiger;Data Source=oracle;" +
     "Min Pool Size=10;Connection Lifetime=120;Connection Timeout=60;" +
     "Incr Pool Size=5; Decr Pool Size=2";
Reply
#5
Not Solved
Without ServiName or Host?

I try it, but I have the same problem.
Reply
#6
Not Solved
Code:
Set con=createobject("oledb.connection") con.open "Driver={Microsoft ODBC for Oracle};Server=; Uid=your_username;Pwd=your_password;"


OR
Check ODBC driver is available.
If not able to do DSN then Go to environmental variable and then set path

Code:
ConnectionString = "Provider=OraOLEDB.Oracle;Data Source="&mysource&";User Id="&user&";Password="&password&";"
Reply
#7
Not Solved
Hi,
I have resolved.

I have modified my ConnectionString as:

Code:
DB_CONNECT_STRING = "Provider=OraOLEDB.Oracle; Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=" & myHostName & ")(PORT=" & myPort & "))(CONNECT_DATA=(SERVER=dedicated)(" & serviceNameString & "))); User ID=" & myUsername & ";Password=" & myPassword & ";"

where I have added
SERVER=dedicated

If i launch my script through MS DOS it works, but If I use it in UFT I have this error:
"Provider cannot be found, it may not be properly installed"

Why?

I have added the plugin ORACLE in my project into UFT, maybe it is necessary another plugin?

Thanks.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT 12.54 compatibility with Oracle Forms 12c saran 0 2,702 01-30-2017, 03:07 PM
Last Post: saran
  UFT and Oracle OBIEE iplivewire 0 1,742 10-07-2016, 11:19 PM
Last Post: iplivewire
  DB2 Connect connection with IE 11 SRP 1 2,621 12-18-2015, 12:41 PM
Last Post: vinod123
  IBM DB2 connection with VB script bmurali 2 10,916 12-18-2015, 12:38 PM
Last Post: vinod123
  Connection with HP ALM hachem 0 2,623 02-26-2015, 04:36 PM
Last Post: hachem

Forum Jump:


Users browsing this thread: 1 Guest(s)