Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not able to connect to Oracle SQL Developer
#1
Not Solved
Hi,

Not able to connect to Oracle SQL Developer, pls help asap.
Oracle SQL Developer Version : 3.0.02

I am using the below codes:
1) Using Microsoft ODBC for Oracle

Code:
Dim StrDBDesc,strUserID,strPassword,ADOBDConnection

StrDBDesc = "(description=(address=(host=hostname)(protocol=protocol name)(port=portnumber))(connect_data=(service_name=service name)))"
strUserID = "username"
strPassword = "password"

Set ADOBDConnection = Createobject("ADODB.Connection")
strConnection = "Driver={Microsoft ODBC for Oracle};CONNECTSTRING=" &StrDBDesc&";Uid=" &strUserID& ";Pwd=" &strPassword&";"
ADOBDConnection.Open strConnection

2) Using Provider=OraOLEDB.Oracle
Code:
Dim StrDBDesc,strUserID,strPassword,ADOBDConnection

StrDBDesc = "(description=(address=(host=hostname)(protocol=protocol name)(port=portnumber))(connect_data=(service_name=service name)))"
strUserID = "username"
strPassword = "password"

Set ADOBDConnection = Createobject("ADODB.Connection")
strConnection = "Provider=OraOLEDB.Oracle;Data Source="&StrDBDesc&";UserID="&strUserID&";Password="&strPassword&";"ADOBDConnection.Open strConnection


By using above two ways of codes, I am getting the errors, attached the doc.


PLease Help on this..
Thanks,
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Getting error while connecting from qtp to oracle sql developer. Ritanjali Pradhan 1 3,189 09-26-2014, 02:06 PM
Last Post: vinod123
  Need help with QTP SQL ADO connection, value retrieved is different charanbc 0 2,751 09-21-2012, 04:27 PM
Last Post: charanbc
  Connect to QC ravi.gajul 3 14,700 09-18-2012, 12:39 PM
Last Post: SrinuKodi
  QTP API to connect to Performance Center(ALM) as_srini 3 5,721 06-14-2012, 09:14 PM
Last Post: Ankesh
  Generic Function to read the data from Excel/sql database using ADODB connection supputuri 0 13,321 05-25-2012, 10:59 AM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)