07-30-2008
I am facing one more problem. I want to connect oracle database through perl. For it i am using DBI module which is not working for perl 5.6 so do i need to install some driver for it?
Thanks
Kunal
Last edited by kunal_dixit; 07-31-2008 at 03:40 AM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi!
i have two problems with the following script who prepares a date (removes the heading zero from day if day<10) for arithmetical operations:
<script>
#!/usr/bin/sh
DAY=`date +%d`;
echo 1 - $DAY;#i.e. 06
DAY=${DAY#0};
echo 2 - $DAY;#i.e. 6
</script>
1. every time i run this... (3 Replies)
Discussion started by: oti
3 Replies
2. Filesystems, Disks and Memory
can anyone give me some idea on unix filesystem namei's algorithsm (2 Replies)
Discussion started by: kangc
2 Replies
3. Programming
I am trying to learn how to use multiple modules and hearder files. I have tried a little experiment but cannot get it to work. Here is my code and compilation attempt. Any help with finding my problems appreciated.
The main function (main01.c) calls a function located in another file... (9 Replies)
Discussion started by: enuenu
9 Replies
4. Linux
Hi masters,
I am new to linux and unix forum and this is my first forum. So please excuse if
I am not giving sufficient information. I will give them on request.
I have created a bandwidth manager module. I am using a 2.6.9 kernel and in Red Hat 3.4.3 distribution. But when i run make... (1 Reply)
Discussion started by: iamjayanth
1 Replies
5. UNIX for Advanced & Expert Users
I have one big module 2.6.18 kernel mod.c
I want to divide this to several files.
The problem is to write right Makefile
lib1.h
lib1.c
mod.c
mod.c works fine normally but when I divide into several files
and try to compile with this makefile
obj-m := mod.o
mod-objs := lib1.o
... (3 Replies)
Discussion started by: marcintom
3 Replies
6. SCO
Hi
I am looking for sco xenix binary compatibility utility "cvtomf",(convert omf object to COFF object)
Would you please help me ?
tnx (3 Replies)
Discussion started by: javad1_maroofi
3 Replies
7. AIX
Hello,
Where can i find the information about the compatibility versions of tomcat with AIX? for example, AIX 5.2 supported tomcat versions?? (1 Reply)
Discussion started by: balareddy
1 Replies
8. UNIX for Advanced & Expert Users
I'd like to install cpufreq modules on my server .
I tried
sudo modprobe acpi-cpufreq
but got the error
FATAL: Error inserting acpi_cpufreq (/lib/modules/2.6.18-238.12.1.el5xen/kernel/arch/x86_64/kernel/cpufreq/acpi-cpufreq.ko): No such device
cat /proc/cpuinfo gives this
... (11 Replies)
Discussion started by: vishwamitra
11 Replies
9. Shell Programming and Scripting
Hi 'm getting error while installing perl mdule on linux.can any one tell me how to resolve that error?
problem is:
CPAN: File::Temp loaded ok (v0.22)
CPAN.pm: Going to build J/JD/JDB/Win32-OLE-0.1709.tar.gz
OS unsupported
Warning: No success on command
Warning (usually harmless):... (1 Reply)
Discussion started by: kavi.mogu
1 Replies
10. Shell Programming and Scripting
Hello,
I have a report which I am writing as a .tex file, and I am editing from two computers (office and home laptop). I use rsync over ssh connection to synchronise between them and all the rssync commands are written in a Shell script.
#synchronise from office computer to home laptop... (2 Replies)
Discussion started by: ajayram
2 Replies
LEARN ABOUT DEBIAN
cgi::session::driver::dbi
CGI::Session::Driver::DBI(3pm) User Contributed Perl Documentation CGI::Session::Driver::DBI(3pm)
NAME
CGI::Session::Driver::DBI - Base class for native DBI-related CGI::Session drivers
SYNOPSIS
require CGI::Session::Driver::DBI;
@ISA = qw( CGI::Session::Driver::DBI );
DESCRIPTION
In most cases you can create a new DBI-driven CGI::Session driver by simply creating an empty driver file that inherits from
CGI::Session::Driver::DBI. That's exactly what sqlite does. The only reason why this class doesn't suit for a valid driver is its name
isn't in lowercase. I'm serious!
NOTES
CGI::Session::Driver::DBI defines init() method, which makes DBI handle available for drivers in Handle - object attribute regardless of
what "\%dsn_args" were used in creating session object. Should your driver require non-standard initialization you have to re-define init()
method in your .pm file, but make sure to set 'Handle' - object attribute to database handle (returned by DBI->connect(...)) if you wish to
inherit any of the methods from CGI::Session::Driver::DBI.
STORAGE
Before you can use any DBI-based session drivers you need to make sure compatible database table is created for CGI::Session to work with.
Following command will produce minimal requirements in most SQL databases:
CREATE TABLE sessions (
id CHAR(32) NOT NULL PRIMARY KEY,
a_session TEXT NOT NULL
);
Your session table can define additional columns, but the above two are required. Name of the session table is expected to be sessions by
default. You may use a different name if you wish. To do this you have to pass TableName as part of your " \%dsn_args ":
$s = CGI::Session->new('driver:sqlite', undef, {TableName=>'my_sessions'});
$s = CGI::Session->new('driver:mysql', undef,
{
TableName=>'my_sessions',
DataSource=>'dbi:mysql:shopping_cart'.
});
To use different column names, change the 'create table' statement, and then simply do this:
$s = CGI::Session->new('driver:pg', undef,
{
TableName=>'session',
IdColName=>'my_id',
DataColName=>'my_data',
DataSource=>'dbi:pg:dbname=project',
});
or
$s = CGI::Session->new('driver:pg', undef,
{
TableName=>'session',
IdColName=>'my_id',
DataColName=>'my_data',
Handle=>$dbh,
});
DRIVER ARGUMENTS
Following driver arguments are supported:
DataSource
First argument to be passed to DBI->connect(). If the driver makes the database connection itself, it will also explicitly disconnect
from the database when the driver object is DESTROYed.
User
User privileged to connect to the database defined in "DataSource".
Password
Password of the User privileged to connect to the database defined in "DataSource"
Handle
An existing DBI database handle object. The handle can be created on demand by providing a code reference as a argument, such as
"<sub{DBI-"connect}>>. This way, the database connection is only created if it actually needed. This can be useful when combined with
a framework plugin like CGI::Application::Plugin::Session, which creates a CGI::Session object on demand as well.
"Handle" will override all the above arguments, if any present.
TableName
Name of the table session data will be stored in.
LICENSING
For support and licensing information see CGI::Session
perl v5.12.4 2011-07-08 CGI::Session::Driver::DBI(3pm)