RE: passing out PL/SQL Tables from stored procs with DBI (DBD::Oracle )?

2002-02-06 Thread Andy Sautins
Rohan, I do have a patch for DBD::Oracle 1.12 that allows for passing PL/SQL Tables ( OCI Collection Types ) to/from PL/SQL. However, for the project I initially developed the patch for, it turned out to be easier to use straight C/OCI, so I must say the patch hasn't fully tested or used

ANNOUNCE: DBI 1.21

2002-02-06 Thread Tim Bunce
file: $CPAN/authors/id/T/TI/TIMB/DBI-1.21.tar.gz size: 208384 bytes md5: c781eee2559de5e4a72e28a8120cb1d9 Changes in DBI 1.21,7th February 2002 The minimum supported perl version is now 5.005_03. Fixed DBD::Proxy support for AutoCommit thanks to Jochen Wiedmann. Fixed DBI::Pr

CPAN Upload: T/TI/TIMB/DBI-1.21.tar.gz

2002-02-06 Thread PAUSE
The uploaded file DBI-1.21.tar.gz has entered CPAN as file: $CPAN/authors/id/T/TI/TIMB/DBI-1.21.tar.gz size: 208384 bytes md5: c781eee2559de5e4a72e28a8120cb1d9 No action is required on your part Request entered by: TIMB (Tim Bunce) Request entered on: Thu, 07 Feb 2002 03:28:40 GMT R

ANNOUNCE: DBD::Chart 0.60

2002-02-06 Thread Dean Arnold
I'm pleased to announce the availability of DBD::Chart 0.60, a Perl DBI driver abstraction for rendering charts and graphs using a simple SQL syntax. Release 0.60 includes the following updates: - support for histograms (sideways barcharts), both 2-D and 3-D, and 3 axis - support for tempora

RE: Create database

2002-02-06 Thread Jeff Urlwin
Here's a cheat. 1) create, using MS Access, and EMPTY MDB file, no tables, nothing. 2) to create the db on the fly, then copy that file to your file when you need to... 3) don't use a pre-configured DSN, just use the dsn-less approach. Example (using MS Access): my $DSN = 'driver=Micro

Re: column name

2002-02-06 Thread jie zhang
I wasn't using $hash_ref but I am using it now.It provides column name as key. Thanks !!! Jie "Kokarski, Anton" wrote: > if you are using method $hash_ref = $sth->fetchrow_hashref; then it should > be easy > > Anton > > -Original Message- > From: jie zhang [mailto:[EMAIL PROTECTED]

Re: Re: Oracle DBI commit/rollback question...

2002-02-06 Thread Michael A Chase
Please keep this on the list; I have added dbi-users to my response. -- Mac :}) ** I normally forward private questions to the appropriate mail list. ** Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.htm Give a hobbit a fish and he eats fish for a day. Give a hobbit a ring and he ea

Re: Anyone using $dbh->{Handlers} attribute ?

2002-02-06 Thread Dave Rolsky
On Wed, 6 Feb 2002, Tim Bunce wrote: > How does this sound: > > =item C (code ref, inherited) I > > This attribute can be used to provide your own alternative behaviour > in case of errors. If set to a reference to a subroutine then that > subroutine is called when an error is det

Re: Oracle DBI commit/rollback question...

2002-02-06 Thread Michael A Chase
Until your execute() or do() the statement hasn't occurred yet, so there's nothing to commit or rollback. Each time you commit or rollback, a new transaction starts. Transactions are session specific, so the transactions in two open database handles in the same program are independent of each ot

Oracle DBI commit/rollback question...

2002-02-06 Thread David . Wren
Does anybody know how Oracle8i handles transactions from DML statements passed from a DBI database connection? Do the dbh->commit() and dbh->rollback() statements commit or rollback all DML instructions issued while the connection is open, or just those which get passed by sth->do() or sth->exec

RE: DB2 on Solaris

2002-02-06 Thread Kinch, Rob
Steve, My experience is that I've always needed the db2connect installation. The Perl DBI::DB2 doesnt work right without it. I learned this the hard way recently with solaris and db2 on Windows NT. -Original Message- From: Steve Sapovits [mailto:[EMAIL PROTECTED]] Sent: Wednesday, Fe

Re: passing out PL/SQL Tables from stored procs with DBI (DBD::Oracle )?

2002-02-06 Thread Tim Bunce
On Wed, Feb 06, 2002 at 12:26:23PM -, Rohan Holt wrote: > I would like to use DBI & DBD::Oracle to call a third party (proprietry) > stored proc API which happens to use PL/SQL tables as out parameters in some > cases. > > Problem: > Having scanned many of the questions & answers relating to

DB2 on Solaris

2002-02-06 Thread Steve Sapovits
I think I asked this way back, but I never followed up. We have a DB2 database running on an AS/400. I'd like to access that from Solaris 2.7 using Perl/DBI. I have DBI and Oracle::DBD set up there already. What's needed as far as a DB2 client goes? Our Java guys got a free DB2 JDBC driver

Dates in DBD::XBase

2002-02-06 Thread Alan Hogue
Hi, I have a simple question, but I can't find the answer anywhere. I'm trying to update a date field in a .dbf file with DBD::XBase, but I can't figure out what format DBD::XBase wants the date in, and the pod doesn't mention it. Would it be possible to use something like: $sth->bind_para

Re: Problems DBI/DBD::Oracle/Perl..

2002-02-06 Thread Michael A Chase
- Original Message - From: "BAO RuiXian" <[EMAIL PROTECTED]> To: "Michael A Chase" <[EMAIL PROTECTED]> Cc: "ariel mastracchio" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, February 06, 2002 12:03 Subject: Re: Problems DBI/DBD::Oracle/Perl.. > Michael A Chase wrote: > > > I s

Database with Encryption

2002-02-06 Thread Chris Denman
Hi group, I have a client who is asking for all of their data to be encrypted. Is this possible? I am assuming that they want communication between server and client to be secure. Also, if I was to encrypt the data myself and then store the data in, say mySql, doing a subsequent query wouldn'

data truncation problem

2002-02-06 Thread
Can somebody help me solve this problem? Thanks, David Error: DBD::JDBC::st fetchall_arrayref failed: Data truncation DBI handle cleared whilst still active. dbih_clearcom (h 0x103a0334, com 0x1048e138): FLAGS 0x111: COMSET Warn PrintError TYPE 3 PARENT DBI::db=HASH(0x10

Re: Problems DBI/DBD::Oracle/Perl..

2002-02-06 Thread BAO RuiXian
Hello, Mac, Michael A Chase wrote: > I said, a signal handler in the _child_ process. If you have opened the > database handles in the children (as you should), catching the Sorry for interuption, would you tell more about why the database handles should be openned in the children. I want to k

Re: Help with DBI <***

2002-02-06 Thread Michael A Chase
If you've updated DBI, you should re-build your DBDs as well. It would be a good time to update them. -- Mac :}) ** I normally forward private questions to the appropriate mail list. ** Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.htm Give a hobbit a fish and he eats fish for a da

Create database redux

2002-02-06 Thread Moulder, Glen
Whoops! Misspoke there the first time... I asked "Is it possible without using the ODBC administrator?" I meant, is it possible to create the databases in perl instead of first creating them in Access? Glen

RE: Help with DBI <***

2002-02-06 Thread Sterin, Ilya
Have you switched the databases? Possibly upgrade the DBD::Oracle as well. Ilya -Original Message- From: Robert Bond To: [EMAIL PROTECTED] Sent: 2/6/02 11:40 AM Subject: Help with DBI <*** Hi - I've been trying to upgrade my version of DBI. My database is Oracle 8.1.7. When I run t

Help with DBI <***

2002-02-06 Thread Robert Bond
Hi - I've been trying to upgrade my version of DBI. My database is Oracle 8.1.7. When I run the test script shown below I get the following error message: Error Message: * DBI->connect(nhup.mccoy) failed: (UNKNOWN OCI STATUS 1804) OCIInitialize. Check ORACLE_HOME and N

Create database

2002-02-06 Thread Moulder, Glen
Alright, stupid newbie question - how do I (or can I) create a Microsoft Access database anew with perl and the DBI? Situation: I have a number of working perl apps that are all built with flat file tables (for ease of use, since the converted-from-COBOL !!! source data was very poor and I ha

Re: How to continue after database shutdown

2002-02-06 Thread Michael A Chase
It depends on how granular your extract is. Any action in progress when the database goes down will have to restart from its beginning. Discontinuing is sort of automatic if there is no database available to extract from. You will have to 1. trap the error caused by the database shutting dow

RE: ActivePerl & DBI - can't build DBI1.20 - and wheres DBD-Ingre s ?

2002-02-06 Thread Mark Buckle
Hi, Thanks to everyone for all their help and suggestions. I haven't had time in the last 24 hours or so to follow any of these up, but will pick things up again tomorrow. I just need to find a development machine around here with the right version of VC installed, or work out the firewall issues.

DynaLoader.pm error

2002-02-06 Thread NYIMI Jose (BMB)
Hello, I need your help! I've got the following massage : Can't load '/usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/auto/DBD/Oracle/Oracle.so ' for module DBD::Oracle: ld.so.1: /usr/local/bin/perl: fatal: libclntsh.so.1.0: open failed: No such file or directory at /usr/local/lib/perl5/5.6.

How to continue after database shutdown

2002-02-06 Thread Shaozab, Sumera
Hi, I am using DBI 1.14 and DBD::Oracle 1.06. Our database shuts down nightly for backup. However, my script maybe still running and extracting data. (It is extracting the entire database). Is there a way to discontinue extracting when the database is offline and continue when it is back up?

Re: prb using Date/time field with DBI , odbc connected with Access 2000

2002-02-06 Thread Emmanuel Jaeckert
It works well with bind_param...i made a typo :-) Thank you very much. Emmanuel "Jeff Urlwin" <[EMAIL PROTECTED]> a écrit dans le message news: [EMAIL PROTECTED] > I'd suggest, given that ActiveState is behind and I'm patching like mad > lately, that you use bind parameters to work around it. I

Re: prb using Date/time field with DBI , odbc connected with Access 2000

2002-02-06 Thread Emmanuel Jaeckert
As you pointed to me, i used placeholders and did : $sth = $dbh->prepare($sql) or die $dbh->errstr; $sth->bind_param(1, $rec->{majdate}, { TYPE => SQL_TIMESTAMP }); $sth -> execute() or die $dbh->errstr; this problem occurs now : Can't bind non-scalar value (currently) at

Re: Problems DBI/DBD::Oracle/Perl..

2002-02-06 Thread Michael A Chase
No private emails please. I have included dbi-users in this response. If you have not forked, you don't have a child process. If you have forked, the child is _not_ the same as the parent. The whole point of creating children is to create _separate_ processes. SIGCHLD is used to notify a pare

Re: Anyone using $dbh->{Handlers} attribute ?

2002-02-06 Thread Tim Bunce
On Wed, Feb 06, 2002 at 12:47:43PM +0100, Henrik Tougaard wrote: > > > To sum it up: we do need a way of catching DBI errors and turning > > > them into something else. > [snip] > > > > And now you have it... > > > > > Something with a better interface would be nice. It would probably > > > need

Re: Anyone using $dbh->{Handlers} attribute ?

2002-02-06 Thread David Wheeler
On Wed, 2002-02-06 at 03:37, Tim Bunce wrote: > Hopefully that'll enable what you want (and more :) This will be a very welcome addition, IMO, Tim. Great idea! Regards, David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED]

passing out PL/SQL Tables from stored procs with DBI (DBD::Oracle)?

2002-02-06 Thread Rohan Holt
I would like to use DBI & DBD::Oracle to call a third party (proprietry) stored proc API which happens to use PL/SQL tables as out parameters in some cases. Problem: Having scanned many of the questions & answers relating to stored procs in this list it seems that this is not possible. The closes

msSQL Server AutoCommit / placeholder

2002-02-06 Thread jc plat
I want to set the AutoCommit property when opening my database connection on a SQL server 7 on the same W2000 box. I'm using ActiveState Perl 5.6.1. I've tried the following: my $dbh = DBI->connect('DBI:ADO:absolut','sa','',{ AutoCommit => 0 }) or die "Couldn't connect to dat

RE: Anyone using $dbh->{Handlers} attribute ?

2002-02-06 Thread Henrik Tougaard
> > To sum it up: we do need a way of catching DBI errors and turning > > them into something else. [snip] > > And now you have it... > > > Something with a better interface would be nice. It would probably > > need to differ between $dbh errors and $sth erros (and $drh errors > > of course) as

Re: Anyone using $dbh->{Handlers} attribute ?

2002-02-06 Thread Tim Bunce
On Wed, Feb 06, 2002 at 09:14:19AM +0100, Henrik Tougaard wrote: > > Don't be surprised if you haven't heard of the Handlers attribute, > > it's not documented. And don't bother finding out about it because > > it's probably going away. > > > > But I think I have mentioned it a couple of times a

RE: DBI install

2002-02-06 Thread Henry McGuinness
Hi Ilya, err...I think I'm right in saying you don't actually need Apache::DBI for using DBI with mod_perl. It just makes a persistent database connection, so you don't re-connect and disconnect from your database every time the program runs. regards Henry --- "Sterin, Ilya" <[EMAIL PROTECTED

RE: ActivePerl & DBI - can't build DBI1.20 - and wheres DBD-Ingre s ?

2002-02-06 Thread paul . barker
Hi Mark I don't know if you've managed to get this to work yet, but I successfully use PPM behind a firewall. Basically (and if you read the docs it does kind of explain this) you need to set some environment variables before you run PPM. If you have a pssive proxy (ie you don't use a username