02-04-2011
Not at all. JDBC stands for Java Database Connectivity, so it's only usable using Java. For Perl there's
DBI as the general interface, and various DBD::* drivers. Note that only free databases (MySQL, PostgreSQL, ...) are available through CPAN. For Oracle, for example, you'll need at least the Instant Client libraries available. MSSQL can only be accessed through UnixODBC and DBD::ODBC.
Also, don't bump up posts.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Can anyone please give me a script or let me know how to connect to a sybase database and execute a query using Korn shell scripts.Am new to Unix but i need to do this ASAP.
Please help.
Thanks,
Gops (7 Replies)
Discussion started by: bhgopi
7 Replies
2. Shell Programming and Scripting
Hi,
could you please help me out what are the command line commands to connect to as400.
Thanks, (0 Replies)
Discussion started by: mgirinath
0 Replies
3. Shell Programming and Scripting
I am trying to connect to database db2 through shell script.
The process I am trying is
> db2
It gives me error Access Denied.
While checking for access I have the rights.
Is there ant other way round..?
Please help. (3 Replies)
Discussion started by: ankitgupta
3 Replies
4. Shell Programming and Scripting
Hi All,
Has anyone of you connected to a remote PostgreSQL database through a shell/perl script. Can you please let me know the steps involed?
Thanks.
Rahul. (0 Replies)
Discussion started by: rahulrathod
0 Replies
5. Shell Programming and Scripting
I have got the solution so just closing this issue. (3 Replies)
Discussion started by: jambesh
3 Replies
6. Shell Programming and Scripting
I've been sent the following script to finish. It's supposed to connect to an oracle database, query it, and send an email if the query result value is one or more. Currently it isn't connecting properly, just giving the following error:
ERROR: ORA-01017: invalid username/password; logon denied... (2 Replies)
Discussion started by: jackmorgan2007
2 Replies
7. Shell Programming and Scripting
Hi Unix Gurus,
I have a requirement to write a script, Oracle DB gets referesh every 6hrs, hence we need write a script to connect to the database , if it connects it should generate a file to proceed the next job application or when an error when connectiong to DB it should not generate any... (8 Replies)
Discussion started by: bshivali
8 Replies
8. Shell Programming and Scripting
Hi All,
I am newbie to unix shell scripting. I want to connect to oracle database using shell script. I know how to connect DB using user name and password but my question is if my password is having '@' sign then how to connect.
I have tried like below,
cnt=`sqlplus -s /nolog << EOFSQL
... (3 Replies)
Discussion started by: pmotewar
3 Replies
9. Shell Programming and Scripting
Hi All,
We are having LINUX server.
I would like to connect to oracle database from server to with the help of shell script and execute a procedure.
We dont have oracle installed to use sqlplus and connect to database.
Do we have any command to connect to database using JDBC drivers.
... (1 Reply)
Discussion started by: Girish19
1 Replies
LEARN ABOUT CENTOS
dbd::gofer::transport::null
DBD::Gofer::Transport::null(3) User Contributed Perl Documentation DBD::Gofer::Transport::null(3)
NAME
DBD::Gofer::Transport::null - DBD::Gofer client transport for testing
SYNOPSIS
my $original_dsn = "..."
DBI->connect("dbi:Gofer:transport=null;dsn=$original_dsn",...)
or, enable by setting the DBI_AUTOPROXY environment variable:
export DBI_AUTOPROXY="dbi:Gofer:transport=null"
DESCRIPTION
Connect via DBD::Gofer but execute the requests within the same process.
This is a quick and simple way to test applications for compatibility with the (few) restrictions that DBD::Gofer imposes.
It also provides a simple, portable way for the DBI test suite to be used to test DBD::Gofer on all platforms with no setup.
Also, by measuring the difference in performance between normal connections and connections via "dbi:Gofer:transport=null" the basic cost
of using DBD::Gofer can be measured. Furthermore, the additional cost of more advanced transports can be isolated by comparing their
performance with the null transport.
The "t/85gofer.t" script in the DBI distribution includes a comparative benchmark.
AUTHOR
Tim Bunce, <http://www.tim.bunce.name>
LICENCE AND COPYRIGHT
Copyright (c) 2007, Tim Bunce, Ireland. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
SEE ALSO
DBD::Gofer::Transport::Base
DBD::Gofer
perl v5.16.3 2013-04-04 DBD::Gofer::Transport::null(3)