473,493 Members | 2,229 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Perl DB connection with Oracle 10g Express edition using Padre Perl IDE

1 New Member
1. I am using Padre perl IDE
2. I have DBD-Oracle-1.19 installed in my machine.
3. Oracle 10g Express Edition is Installed.

Source code
Expand|Select|Wrap|Line Numbers
  1. #!/usr/bin/perl -w
  2.  
  3. use 5.006;
  4. use strict;
  5. use warnings;
  6. use DBI;
  7.  
  8. my $dbh  = 0;
  9. $dbh = DBI->connect("dbi:Oracle:host=myhost.com;sid=ORCL","system","system", 
  10.                       {
  11.                         RaiseError => 1,
  12.                         AutoCommit => 0
  13.                       }  ) || die "Database connection not made: $DBI::errstr";
  14.  
  15. print "Hello\n"; 
  16.  
Error:
DBI connect('host=myhost.com;sid=ORCL','system',...) failed: ORA-12170: TNS:Connect timeout occurred (DBD ERROR: OCIServerAttach) at C:\Users\ekamroy\Documents\Kamalendu\Perl_Er\useDB .pl line 9

=================================================

Can anyone propose any solution?
Jun 15 '11 #1
1 3668
numberwhun
3,509 Recognized Expert Moderator Specialist
Can you manually connect to the database with the parameters you have provided? It looks like DBI is not able to as that is the error being thrown.

Regards,

Jeff
Jun 18 '11 #2

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

Similar topics

0
4507
by: Zorba.GR | last post by:
IBM DB2 Connect Enterprise Edition v8.2, other IBM DB2 (32 bit, 64 bit) (MULTiOS, Windows, Linux, Solaris), IBM iSoft Commerce Suite Server Enterprise v3.2.01, IBM Tivoli Storage Resource Manager...
3
1512
by: Stropher | last post by:
I cannot import the following in visual studio c# 2005 express edition... using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; I just want to make use of...
0
1560
by: cirudinezidane | last post by:
Hi!! I'd like to install Oracle 10 g express edition over Ubuntu to use with Python 2.4. I have installed Ubuntu, Python 2.4 and Oracle database. I think that I have installed correctly...
2
4018
by: Greg Strong | last post by:
I'm experimenting with using Access 2k2 as a front end to Oracle Express. I am creating 10 tables using pass through DDL queries. The PROBLEM is the general format of the VB code WORKS on the 1st...
3
1795
by: Roelof van Kooten | last post by:
Is it possible to connect to SQL Server 2005 Workgroup using C# Express edition ? Thanks for your help, Roelof
1
2204
by: kire | last post by:
I would lice to help me to do connection visual basic 6 with oracle 10g express edition.I like to give me one example of ADO connection.
4
2336
by: Preben Zacho | last post by:
Hi there The scenario I got is this: I have created a Windows application in VS and I want to deploy it to another machine running Windows Vista. Since I have no control over this other machine,...
2
1557
by: chaosdl | last post by:
Hello, I am currently using Visual Basic 2005 express edition with a MS Access database. I have made a "Contacts" Form, where the user will be able to enter a members surname and press an OK...
2
3065
by: Manikandan | last post by:
Hi, I have a program written in .Net Framework 1.1 using Visual studio enterprise edition 2003. I tried compiling the same program in visual c# express edition 2005. I'm getting following...
4
1977
by: ronakinuk | last post by:
Hi Can someone , guide me how can i make a database in oracle with front end on the website (i guest html or asp) please I have oracle express edition and microsoft visual studio. can i make such...
0
6989
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
7195
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5453
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,...
1
4889
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4579
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
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1400
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 ...
1
644
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
285
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.