Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connecting to database
#1
Not Solved
I am using the following DBConnectStr:

Code:
"driver={Oracle in OraClient11g_home1};Data Source=(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = Database IP address)(PORT = Portname)))(CONNECT_DATA = (SERVICE_NAME = DB Name)));User Id=CCE;Password=CCE;DB=PRCSMISClocal"

I also tried

Code:
"Provider=MSDAORA;driver={Oracle in OraClient11g_home1};Data Source=(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = Database IP address)(PORT = Portname)))(CONNECT_DATA = (SERVICE_NAME = DB Name)));User Id=CCE;Password=CCE;DB=PRCSMISClocal"

I am getting errors when I call
Code:
oADODBRecordset.Open sQuery, sDBConnectStr
either (Option 1) Data source name is too long or
(Option 2) stating Oracle client and networking compontents are not found. They are supplied by Oracle 7.3.3 or later.

In the Oracle ODBC Driver Configuration I have under data source
Name Driver
IP address of DB Oracle in OraClient11g_home1

and the test connection works

any ideas on how to fix this issue, I will need to look at results provided in sql tables to do some automation for my job.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Connecting to oracle DB with QTP rajendra649 2 26,413 12-04-2020, 06:19 PM
Last Post: Anita2020
Exclamation Connecting to MySQL to retrive data ! NancyNancy 1 3,074 02-23-2011, 09:36 PM
Last Post: basanth27
  Connecting to other system Rajashekar Gouda 2 2,610 07-16-2008, 05:12 PM
Last Post: Rajashekar Gouda

Forum Jump:


Users browsing this thread: 1 Guest(s)