473,466 Members | 1,326 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Error connecting to JDBC using perl

1 New Member
I am using the following code and i get the below error
Expand|Select|Wrap|Line Numbers
  1. use DBI; 
  2. use DBD::JDBC; 
  3.  
  4. my $url="JDBC:gfsql://cqserver=fiappl03itf:30305"; 
  5. my $hostname="fiappl03itf.fmrco.com"; 
  6. my $port=30305; 
  7. my $dsn ='jdbc:gfsql'; 
  8. my 
  9. $dbh= DBI->connect("DBI::$dsn;hostname=$hostname;port=$port;url=$url;jdbc_character_set=ASCII") or 
  10.  
  11. die "Couldn't connect to database: " . DBI->errstr; 
  12.  
  13. $sth = $dbh->prepare("select cusip,source from TT_VIEW"); 
  14. $sth->execute(); 
  15. while ($row = $sth->fetch()) { 
  16. print $row; 
  17.  
I am getting the below error.

Can't connect to data source jdbc:gfsql;hostname=fiappl03itf.fmrco.com;port=303 05;url=JDBC:gfsql://cqserver=fiappl03itf:30305;jdbc_character_set=ASCI I, no database driver specified and DBI_DSN env var not set at jdbc_conn.pl line 16
Mar 19 '08 #1
1 1805
KevinADC
4,059 Recognized Expert Specialist
already replied to on other forum
Mar 19 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Paul | last post by:
hi, i'm getting the following error when i try to run the code below to connect to an oracle db: java.lang.ClassnotfoundException:oracle.jdbc.driver.OracleDriver java.sql.SQLException No...
0
by: christian_stengel | last post by:
Hi *, I have just started to learn python and I am having a problem with an python client connecting to a perl server using ssl (I tried this with pyOpenSSL and with the build in SSL Module). ...
3
by: Heiko W. Rupp | last post by:
Hi, I am a newbie to db2, but the local experts can't help me .. I have a db2 v8.1 on linux with a db 'foo' and a listener for foo on port 50001. The listener appears in netstat -an, waiting...
4
by: TP | last post by:
Hi, This is probably my 7th post of the day. not spamming, just want to get the questions out, so that I can find the answers and post them back or some good soul can help me out. Right now I...
1
by: Anant Raman | last post by:
Hi I have db2 database installed in a Solaris machine. I am now running a java program and trying to access the database. I use java:db2//servername:portname/databasename as the URL to...
0
by: mailkhurana | last post by:
Hii , I am trying to use a type 2 driver to connect to DB2 0n AIX 5 I have a small java test to class to establish a conneciton with the db .. I am NOT using WAS or any appserver When I try to...
1
by: kommaraju | last post by:
iam a starter to db2 & jdbc.i have a servlet program which connects to ibm db2 using jdbc.when i run this using apache tomcat 4.1.34 , it is showing a error message of HTTP STATUS 500 my jdbc...
8
by: Ananthu | last post by:
Hi I have done all the codings part for connecting mysql with java in eclipse environment. Coding Part: import java.sql.Connection; import java.sql.DriverManager; public class...
0
by: jpmad4it | last post by:
Hi there I know that I can connect to an IDMS DB using JDBC type 4 drivers, but I have a few questions: Is this the process: - Set up the IDMS system to allow JDBC connections - defining...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.