Sponsored Content
Top Forums Shell Programming and Scripting Perl script to connect to database using JDBC driver? Post 302493917 by pludi on Friday 4th of February 2011 07:13:09 AM
Old 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

Connect to sybase database using Korn shell script

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

Script to connect to As400 database

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

How to connect to database db2 through Unix Shell Script

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

Script to connect to PostgreSQL database

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

how will i connect postgres database from unix shell script

I have got the solution so just closing this issue. (3 Replies)
Discussion started by: jambesh
3 Replies

6. Shell Programming and Scripting

Korn Script to connect and query oracle database

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

Shell Script to connect to the oracle database

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

How to connect to Oracle database using shell script?

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

Connect to Oracle database with JDBC drivers.

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
DBIx::Class::Storage::DBI::ADO::Microsoft_SQL_Server(3) User Contributed Perl DocumentationDBIx::Class::Storage::DBI::ADO::Microsoft_SQL_Server(3)

NAME
DBIx::Class::Storage::DBI::ADO::Microsoft_SQL_Server - Support for Microsoft SQL Server via DBD::ADO SYNOPSIS
This subclass supports MSSQL server connections via DBD::ADO. DESCRIPTION
The MSSQL specific functionality is provided by DBIx::Class::Storage::DBI::MSSQL. EXAMPLE DSN
dbi:ADO:provider=sqlncli10;server=EEEBOXSQLEXPRESS CAVEATS
identities "_identity_method" is set to @@identity, as "SCOPE_IDENTITY()" doesn't work with DBD::ADO. See "IMPLEMENTATION NOTES" in DBIx::Class::Storage::DBI::MSSQL for caveats regarding this. truncation bug There is a bug with MSSQL ADO providers where data gets truncated based on the size of the bind sizes in the first prepare call: <https://rt.cpan.org/Ticket/Display.html?id=52048> The "ado_size" workaround is used (see "ADO Providers" in DBD::ADO) with the approximate maximum size of the data_type of the bound column, or 8000 (maximum VARCHAR size) if the data_type is not available. Please report problems with this driver and send patches. LongReadLen "LongReadLen" is set to "LongReadLen * 2 + 1" on connection as it is necessary for some LOB types. Be aware of this if you localize this value on the $dbh directly. binary data Due perhaps to the ado_size workaround we use, and/or other reasons, binary data such as "varbinary" column data comes back padded with trailing "NULL" chars. The Cursor class for this driver (DBIx::Class::Storage::DBI::ADO::Microsoft_SQL_Server::Cursor) removes them, of course if your binary data is actually "NULL" padded that may be an issue to keep in mind when using this driver. uniqueidentifier columns uniqueidentifier columns come back from ADO wrapped in braces and must be submitted to the MSSQL ADO driver wrapped in braces. We take care of this transparently in this driver and the associated Cursor class (DBIx::Class::Storage::DBI::ADO::Microsoft_SQL_Server::Cursor) so that you don't have to use braces in most cases (except in literal SQL, in those cases you will have to add the braces yourself.) fractional seconds Fractional seconds with DBIx::Class::InflateColumn::DateTime are not currently supported, datetimes are truncated at the second. AUTHOR
See "AUTHOR" in DBIx::Class and "CONTRIBUTORS" in DBIx::Class. LICENSE
You may distribute this code under the same terms as Perl itself. perl v5.16.2 2012-08-23 DBIx::Class::Storage::DBI::ADO::Microsoft_SQL_Server(3)
All times are GMT -4. The time now is 07:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy