Re: row() not supported in DBD::Oracle??

2001-05-10 Thread Stephen Clouse
So use of the "rows" method or "$DBI::rows" with "SELECT" statements is not recommended. One alternative method to get a row count for a "SELECT" is to execute a "SELECT COUNT(*) FROM ..."

Re: Problem installing DBD-Oracle

2001-05-10 Thread Stephen Clouse
compilation environment in Windows and built your Perl from source there. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE- Version: PGP 6.5.8 iQA/AwUBOvtzkgOGqGs0Pa

Re: Oracle auto_increment

2001-05-14 Thread Stephen Clouse
ions. You will always get the last value returned to your current transaction, even if the sequence has moved on at the global level. There is no race condition like you describe. In short, use currval -- it is your (much simpler) friend. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Pro

Re: Problems installing DBI on HP-UX 11.0 w/Perl 5.6.1

2001-05-14 Thread Stephen Clouse
> BEGIN failed--compilation aborted at Makefile.PL line 14. > > Any suggestions would be greatly appreciated. Reinstall perl. Your installation has been severely damaged. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. &

Re: parsing ssi directives in perl

2001-05-16 Thread Stephen Clouse
work on any other host. Look up documentation on Apache's XBitHack directive. This is not DBI-related (or even Perl-related, for that matter). - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.

Re: performance question.

2001-05-15 Thread Stephen Clouse
ounds like you're initiating a database connection for each client connection, and most kernels can't handle setting up and tearing down that many TCP sockets per second. If most client transactions are simple and brief, pooling and reusing connections will be a definite win. - -- Steph

Re: performance question.

2001-05-15 Thread Stephen Clouse
How bad if site is really heavy traffic?? > heavy traffic means almost 2 - 2.5 million hits a day??? If the database is on the local machine why are you using a TCP socket at all? Use the Unix domain socket it creates for you instead. This should be what it uses by default if a specific IP

Re: DBI.pm has memory leak with RaiseError

2001-05-19 Thread Stephen Clouse
local $dbh->{RaiseError}; > H This construct is recommended by DBI(3pm) > } > > while (1) { flub(); }; This is a known bug in Perl proper with tied hashes (hint: DBI's internal implementation is a tied hash). See the Known Problems section of `p

Re: Which Editor

2001-05-21 Thread Stephen Clouse
y case, here are some suggestions that all have good Perl support -- try them and stick with what you like. emacs (or xemacs) vim (or xvim) UltraEdit (Win32 only) NEdit - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group

Re: Pg Connection WOES on DEADLINE!

2001-05-31 Thread Stephen Clouse
ents. Use placeholders. Use placeholders. Use placeholders. Oh, and use placeholders. See `perldoc DBI` for further information. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATU

Re: I want to unsuscribe

2001-06-06 Thread Stephen Clouse
saying "PLEASE KEEP THIS FOR YOUR FUTURE REFERENCE". These people probably throw away instruction booklets on household appliances, too. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/>

Re: Fetching rows randomly

2001-06-08 Thread Stephen Clouse
#x27;ll probably also want to call the DBMS_RANDOM.INITIALIZE() procedure beforehand to seed the generator. BEGIN DBMS_RANDOM.INITIALIZE(1234567890) END; - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> ---

Re: Can't locate object method "connect" via package "DBI"

2001-07-01 Thread Stephen Clouse
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Jul 02, 2001 at 11:34:42AM +0530, anshuman das wrote: > Can't locate object method "connect" via package "DBI" Did you `use DBI;` in your program? - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programme

Re: (Fwd) Looking for know problems/bugs in oraperl

2001-07-16 Thread Stephen Clouse
simple oraperl > script. The error message seems to be related to "DBD ERROR: OCIStmtExecute". ORA-1 is a unique constraint violation. This would be a problem with your application or your database schema, not with DBI. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer

Re: bugzilla installation issues thought someone here might know what is going on...

2001-07-17 Thread Stephen Clouse
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Jul 17, 2001 at 10:21:13AM -0700, Blake Binkley wrote: > I have Oracle 8.1.7 Client installed Your first problem might be the fact that Bugzilla only works with MySQL. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Progr

Re: bugzilla installation issues thought someone here might know what is going on...

2001-07-18 Thread Stephen Clouse
available from the redhat ftp server. Doh, I completely forgot about the Redhat port. I shall have to go injure myself now. Still, this sounds more like an issue with Bugzilla, not DBI. It would be better suited for one of their lists. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Progra

DBI Say What?!

2001-07-20 Thread Stephen Clouse
truncated from 100 to 100. DBI attribute LongReadLen too small and/or ^^^ LongTruncOk not set - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.co

Bizarre Oracle LOB Problem -- Not Binding New Value On Successive bind_param/execute Calls?

2001-07-30 Thread Stephen Clouse
it only does it at this point (there were about 20 successful sets before it hits this erroneous one). I've attached the complete trace log (level 9) -- perhaps someone more apt at staring at OCI calls can figure it out. -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> error.log.gz PGP signature

Re: Possible Patch (Re: DBD::Oracle Bug -- LOBs and Numbers or Number-like Variables)

2001-08-08 Thread Stephen Clouse
thing of a hack (but I'm confident enough that it's on our production servers -- it endured a day of rigorous testing while I was weeding through the code to find the problem). I assume a better fix will find its way into the next DBD::Oracle (I didn't see any related changes

Re: insert NULL value

2001-08-14 Thread Stephen Clouse
;,NULL,'NULL'); `undef` is the proper way to insert NULL. The above is inserting the literal string 'NULL'. Try the following: $sth->execute('HIGH','10.1.9.124',undef,undef); - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordi

Re: Oracle 9i/dbd

2001-08-20 Thread Stephen Clouse
> .pm line 200. Make sure the Oracle libraries are in the library search path. On Linux the best solution is to add $ORACLE_HOME/lib to /etc/ld.so.conf and run ldconfig. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The

Re: oracle 9.0.1

2001-08-27 Thread Stephen Clouse
n [insert Linux distribution that isn't SuSE here], it works flawlessly. The workaround for such systems was posted here recently; check the list archives. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgrou

Re: ANNOUNCE: DBD::Oracle 1.10 - unable to compile with 8.1.7

2001-08-30 Thread Stephen Clouse
n this function) > > oci8.c:118: (Each undeclared identifier is reported only once > > oci8.c:118: for each function it appears in.) > > oci8.c:119: `OCI_DTYPE_INTERVAL' undeclared (first use in this function) Those datatypes are missing in 9.0.1 as well. Glad they decided

Re: DBD-Oracle and Oracle 8.1.7

2001-08-30 Thread Stephen Clouse
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Download DBD::Oracle 1.10 and try again. You're hitting the include parsing problem that I spotted in 1.09. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.

Re: DBD::Oracle compile problem and things I tried

2001-08-31 Thread Stephen Clouse
his is fixed in DBD::Oracle 1.12, which should be appearing at your nearest CPAN mirror shortly, if not there already. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE-

Re: Keeping a database connection across a fork

2001-09-01 Thread Stephen Clouse
work. Below is the code. Any help would be appreciated Initiate the database connect in the child. You generally can't share database connections across processes. You *definitely* can't share Oracle connections across processes. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior

Re: Keeping a database connection across a fork

2001-09-01 Thread Stephen Clouse
t be done with Oracle (which is what he was trying). This is the nature of their libraries and their network protocol. It has nothing to do with DBI or Perl. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgro

Re: '?' in SQL-comments fails

2001-09-12 Thread Stephen Clouse
method of escaping placeholders. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE- Version: PGP 6.5.8 iQA/AwUBO5+K5gOGqGs0PadnEQIoPwCgkE11qZ3MAerLQVFcjbQU6603E7cAoLDS

Re: (Fwd) oracle 9 support for dbi

2001-09-20 Thread Stephen Clouse
e latest version of DBD::Oracle (v1.12) builds flawlessly with Oracle9i. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE- Version: PGP 6.5.8 iQA/AwUBO6pnlgOGqGs0Pa

Re: Problems installing DBD::Oracle

2001-09-24 Thread Stephen Clouse
DBD::Oracle? If you installed the client, then you're probably still missing the Oracle Call Interface component (which has all the necessary header files and such for compiling). See if installing that does it. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Progra

Re: DBI->connect hanging

2001-09-25 Thread Stephen Clouse
g porting this newly developed version to a production server, and > the following call to te dev db never reterns: You might try an strace or truss to see if it's getting stuck in a system call (and what call that is). It may give you a clue where the problem lies. - -- Stephen Cl

Re: Help: Set transaction use rollback segment RBS0

2001-09-26 Thread Stephen Clouse
nd the current transaction (and thus reset any transaction settings you made). - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE- Version: PGP 6.5.8 iQA/AwUBO7I4rwO

Re: Perl/Gui DB software

2001-10-01 Thread Stephen Clouse
. Funny you should ask :) Our two flagship products (IQ Coordinator and IQ Developer) are built entirely on DBI, Oracle, and Apache/mod_perl. It's an awesome combination. Unfortunately the marketdroids seem to have taken over our Web site and divested it of all useful information, but I can sha

Re: DBI on Win2K

2001-10-01 Thread Stephen Clouse
launching programs. BEGIN { print "ORACLE_HOME = $ENV{ORACLE_HOME}\n" } - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PG

Re: Encrypted data via dbi into postgres

2001-10-03 Thread Stephen Clouse
character, and nothing works. I can't say much without seeing some code, but if you're not using placeholders, you should be. (The fact that you're attempting to escape the string suggests you're not.) - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinat

Re: Passing a database-handle to another objects method

2001-10-04 Thread Stephen Clouse
scalar is a scalar whether it's in quotes or not, so you only need them if you're interpolating a variable into a larger literal string (IOW they're not necessary on the first parameter either). And if you're not interpolating (as in the db handle), you need to leave them

Re: = NULL vs. IS NULL

2001-10-23 Thread Stephen Clouse
eating the zero-length string as NULL, which ANSI explicitly says *not* to do...but that's another story.) - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE- Version: PGP 6.5.

Re: = NULL vs. IS NULL

2001-10-23 Thread Stephen Clouse
e, '' gets treated as NULL, but that's their fault. (I'd wager this whole thread stems from an Oracle user to start with :) Perhaps they'll finally retire that broken behavior in version 10. Of course, they said they were going to do it in version 8 - -- Stephen Cl

Re: = NULL vs. IS NULL

2001-10-24 Thread Stephen Clouse
L = another NULL. And if someone actually answered nothing (''), that isn't NULL (unless you're on Oracle -- I can hear the groaning already). - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The I

Re: Bit of an oddity configuring perl (fwd)

2001-10-24 Thread Stephen Clouse
-users list. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE- Version: PGP 6.5.8 iQA/AwUBO9eMDAOGqGs0PadnEQIcggCeJ0A5R0yEdUrHLLBnfQdMs7lOtZMAoKl6 sOicblXzJ3JeUuBhMHXorkkt =H6m4 -END PGP SIGNATURE-

Re: make test fails for DBD-ORACLE-1.06

2001-10-25 Thread Stephen Clouse
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Try DBD::Oracle 1.12. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE- Version: PGP 6.5.8 iQA/AwUBO9hTiAO

Re: php vs perl again (reposted - original post was incomplete)

2001-10-24 Thread Stephen Clouse
t by solving the human intelligence issues, *then* work on the Perl issues (if there indeed are any). Having said all that, is this really on topic for dbi-users? - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.

Re: do private_* attributes actually work?

2001-10-14 Thread Stephen Clouse
not able to FETCH them later. They work fine as long as I've been using them. Let's see some code. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATU

Re: DBI::db::selectall_arrayref somehow reblesses the $dbh argument

2001-10-14 Thread Stephen Clouse
$dbh. Mind showing some code that demonstrates the problem? There's nothing in DBI that reblesses the dbh, so it's hard to say what the problem is without being able to reproduce it. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead

Re: LongReadLen

2001-10-14 Thread Stephen Clouse
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, Oct 13, 2001 at 08:59:13PM -0700, dane k wrote: > What is the max size of LongReadLen ? As much memory as your environment can allocate. See the docs for help in figuring out the best size to set it to. - -- Stephen Clouse <

Re: DBI::db::selectall_arrayref somehow reblesses the $dbh argument

2001-10-14 Thread Stephen Clouse
nsider this a response to both messages.) Feel free to use it as a template to rework things on your end. -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> DBI.pm Description: DBI.pm msg07239/pgp0.pgp Description: PGP signature

Re: DBI::db::selectall_arrayref somehow reblesses the $dbh argument

2001-10-15 Thread Stephen Clouse
Give me a day or two. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE- Version: PGP 6.5.8 iQA/AwUBO8smugOGqGs0PadnEQL+8gCgwhzaz+LF50wRsPWQMF/pOuh3s64Anic9 PswFJGFeo34frBHifw5aSXuB =vvyk -END PGP SIGNATURE-

Re: DBI subclass avoid superclass calling it in infinite loop?

2001-10-16 Thread Stephen Clouse
better than perusing 400,000 lines of our application code to change prepare to prepare_cached. prepare_cached calls prepare to actually create the sth, so in our case prepare needs to do the Right Thing when called from within itself. - -- Stephen Clouse <[EMAIL PROTECTED]> Sen

Re: DBD::Pg aborts Transaction if an error occured

2001-12-03 Thread Stephen Clouse
o be an uncontrollable limitation of PG itself, in that it forces a complete transaction rollback on any error. This is definitely the Wrong Thing. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> ---

Re: Oracle: can I get Session ID?

2001-12-07 Thread Stephen Clouse
urns the current session's audit ID, which you can line up with the audsid column in v$session. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN

Re: DBD::Oracle -- bind variables treat string of spaces as NULL

2001-12-07 Thread Stephen Clouse
This tip courtesy of Tim Bunce: use DBI qw(:sql_types); $sth->bind_param(1, $value, SQL_CHAR); The problem is that OCI "smartly" strips trailing blanks off a bind value of type VARCHAR2. Explicitly casting it to a CHAR datatype avoids this "intelligence". - --

[PATCH] DBD-Oracle: Build rule discovery fixes

2001-12-24 Thread Stephen Clouse
Comments in patch should explain all. I've gone back through my dbi-users backlog and looked at every `perl Makefile.PL -v` log I could find, just to be sure about this before I submitted it. This behavior of the Oracle makefiles seems to be consistent with any Oracle >8.0.5. --

Re: Oracle: Non-case sensitive LIKE

2002-01-02 Thread Stephen Clouse
te a function-based index on LOWER(baz), otherwise you'll likely be doing a full table scan every time you execute this. Ick. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIG

Re: oracle connection failed

2002-01-08 Thread Stephen Clouse
n't you mean $ENV{ORACLE_HOME}? - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE- Version: PGP 6.5.8 iQA/AwUBPDsb0QOGqGs0PadnEQLVdQCfSeoEd9sVDcyIcvUYGGj73GM6qe8AnR

Re: How to safetly check an SQL statement?

2002-01-09 Thread Stephen Clouse
y without risk of causing the script to bail out on > an error? Don't turn RaiseError on, or wrap the statement in an eval. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGN

Re: Anyone could send me oracle.mk?

2002-01-14 Thread Stephen Clouse
ile, please? You need to install the OCI components of Oracle. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For

Re: Maintaining a Cache of Hash References

2002-01-15 Thread Stephen Clouse
7;re expecting an assignment to $user to go once the subroutine returns. > if (defined($UserCache[$id])) { ^ This is an array, not a hash. Did you mean $UserCache{$id} ? - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Pro

Re: Inserting spaces into a NOT NULL column

2002-02-05 Thread Stephen Clouse
t;execute(@data) or die log_message("ERROR executing insert: If you're using placeholders, you have no reason to be using $dbh->quote. The native driver will do the proper quoting when it binds the value. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordin

Re: Bizarre Oracle problem - malloc issue?

2002-02-08 Thread Stephen Clouse
at this point. > Bareword found where operator expected at (eval 16) line 8, near "00351 > DBI" The real problem appears to be a syntax error somewhere in your script. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <

Re: Bizarre Oracle problem - malloc issue?

2002-02-08 Thread Stephen Clouse
ptkdb. Occasionally, ptkdb will even drop me into Tk.pm, but that > didn't appear to be happening here. That probably confirms the above hunch. > The main concern for me here is what I mentioned above - that I dumped into > an END block for Oracle.pm and DBI.pm when I clearly shoul

Re: Leaking SV's with DBI - how to find where?

2002-02-27 Thread Stephen Clouse
u put a signal flare in the structure you think is escaping deallocation, say: $struct->{foo} = 'YOU HAVE A LEAK'; When the string reemerges in the Devel::Leak output, the problem becomes pretty apparent :) - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer,

[PATCH] Optionally prevent prepare_cached from calling finish on active handle

2002-02-27 Thread Stephen Clouse
patch attached. Do with it what you will. -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> Index: DBI.pm === RCS file: /home/cvs/p

Re: [PATCH] Optionally prevent prepare_cached from calling finish on active handle

2002-02-28 Thread Stephen Clouse
his seemed to be the most application-independent method of solving it (that is, don't touch it and let the application deal with it). - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BE

Re: memory location, not data question

2002-03-05 Thread Stephen Clouse
here is nothing here to clear up -- the program is doing exactly what you told it to (namely, "print $sth"). Since you seem to be expecting this action to magically produce data from your database, you may wish to consider reading more of the documentation before continuing -- e.g., the

Re: License Violation? Was: Requesting permission to ship dbi and dbd perl modules on our product CD

2002-04-28 Thread Stephen Clouse
to append his own stipulations for redistribution. After all, if you don't comply with his wishes, you can't (legally) redistribute his code under *any* license. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiq

Re: Truncated LONG values from Oracle

2002-06-03 Thread Stephen Clouse
Gs the buffer must be preallocated. You must set LongReadLen on the database handle before preparing the statement. This is not necessarily the case with LOBs, but Oracle 7 lacks such luxury. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group

Re: Using Linux and Perl to Access Oracle on NT

2002-06-21 Thread Stephen Clouse
Debian is not officially supported by Oracle, so some tweaking may be necessary to get things completely working. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE- Versi

Re: ORA-12538 ?!

2002-06-26 Thread Stephen Clouse
correctly in the environment your script is running in. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE- Version: Gn

Re: DBI 0.76

2002-07-08 Thread Stephen Clouse
est version is 1.28. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9KeWuA4aoazQ9p2cRAi39AKDkrfaUpvbsks1GtF4go

Re: DBI 0.76

2002-07-08 Thread Stephen Clouse
t is (and always has been) marked as experimental and subject to change. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8D

Re: Hard-coding SQL in DBI violates OO encapuslation ?

2002-07-31 Thread Stephen Clouse
, because there's no other way to talk to the database, and you need something like DBI to do the talking. The point the paper gets at is to expose a data-centric object model to the application, and let the object worry about building and executing the proper SQL. Class::DBI is a good ex

Re: [PATCH] Optionally prevent prepare_cached from calling finish on active handle

2002-08-14 Thread Stephen Clouse
original issue. The best thing to do would be to just try it and see. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9WqQFA4a

Re: Oracle INSERT data length

2002-08-14 Thread Stephen Clouse
e using placeholders anyway, regardless of the data length. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9WqzJA4aoazQ9p2cRA

Re: Bind_param problem

2002-09-04 Thread Stephen Clouse
will fail in Oracle's case. If the order by column is variable, interpolate it into the query string before preparing it. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.

Re: how to resolve an "ERROR OCIEnvInit"?

2002-09-21 Thread Stephen Clouse
CLE_HOME} is missing or incorrect. Check it. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9jVzGA4aoazQ9p2cRAkOnAKDEEL9a81Xk

Re: Oracle and global temporary tables

2002-10-05 Thread Stephen Clouse
ere until we execute > the statement that prepares temp. table #2. You're forgetting that Oracle triggers an implicit commit on any DDL statement. The creation of the second table is causing your phantom commit. Try creating both tables up front. - -- Stephen Clouse <[EMAIL PROTECTED]

Re: I have a Problem please help me

2002-10-05 Thread Stephen Clouse
have to post your message once. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9nsKIA4aoazQ9p2cRAgogAJ9TOw6G4jbufwCsufKe0prO5

Re: make fails for DBD-Oracle-1.12 on RedHat Linux 7.3

2002-10-05 Thread Stephen Clouse
alled the Oracle Call Interface component (it should be part of the Oracle Developer section, assuming it hasn't changed from 9.0 to 9.2). If that doesn't work, try installing Pro*C as well. One of those has the header files you need to build DBD::Oracle. - -- Stephen Clouse <[EMAIL

Re: Oracle and global temporary tables

2002-10-05 Thread Stephen Clouse
FROM temp_table_one WHERE temp_table_one.col_one = 'foo1' ); > Any idea why we could do it in SQL*Plus? Er, friendly SQL*Plus gnomes? :) Can't explain that one. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Gro

Re: DBD::Oracle

2002-10-10 Thread Stephen Clouse
8, Oracle 9, and perl 5.8 > > error below: > oci8.c:1591: warning: passing arg 1 of `fprintf' from incompatible pointer type That's a warning, not a fatal error. If the compile indeed failed, please post a complete log of the make output. - -- Stephen Clouse <[EMAIL PR

[PATCH] Someone converted to PerlIO and forgot to tell DBD::Oracle

2002-10-10 Thread Stephen Clouse
On Thu, Oct 10, 2002 at 04:36:19PM -0500, Stephen Clouse wrote: > > oci8.c:1591: warning: passing arg 1 of `fprintf' from incompatible pointer type > > That's a warning, not a fatal error. Although, speaking of those warnings...Tim, have you tried a high-level trace w

Re: DBD::Oracle

2002-10-12 Thread Stephen Clouse
st the prompt would negate the need for a manual edit (unless they choose wrong, but that's not our problem :) As another option, could we compile and link a small test program, ala GNU configure? - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead

Re: DBD::Oracle

2002-10-13 Thread Stephen Clouse
. The best solution is to edit the Makefile generated by Makefile.PL and change all references to ORACLE_HOME/lib to ORACLE_HOME/lib32. This will get it to use the 32-bit Oracle libraries instead. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ

Re: RaiseError sticks with statement handle??

2002-10-23 Thread Stephen Clouse
le. Changes to attributes in the new statement handle do not affect the parent database handle and changes to the database handle do not affect existing statement han‐ dles, only future ones. -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Le

Re: binding bug

2002-10-21 Thread Stephen Clouse
qw( :ora_types ); And then changing your bind_param call to explicitly bind the parameter as type ORA_CHAR, like so: $argh->bind_param(2, ' ', { ora_type => ORA_CHAR } ); - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Grou

Re: Oracle placeholders in DDL statements

2002-10-22 Thread Stephen Clouse
urious to see the OCI calls involved. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9tg2gA4aoazQ9p2cRAqk0AJ9

Re: Oracle placeholders in DDL statements

2002-10-22 Thread Stephen Clouse
rsus a simple select. It certainly *feels* like a DBD::Oracle problem but I sure don't see it. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE- Ve

Re: execute_array and DBD::Oracle

2002-11-04 Thread Stephen Clouse
t on the next release. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9xuPNA4aoazQ9p2cRAkOAAKD0tUf/14NsN/9QDCVCm8oy8Js6PwCgneLK c9G2xB

Re: DBI Oracle 9i log

2002-11-08 Thread Stephen Clouse
ent of 9i? - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9zD29A4aoazQ9p2cRApEWAJwKqMPD0MsIGqZjdPi4lkSk6fmzuACg3vdX 5ZPpX

Re: Any timeframe on DBD:Oracle supporting array inserts

2002-12-04 Thread Stephen Clouse
at DBD-Oracle 1.13 would support array inserts. > > That was mostly wishful thinking. I swear I'd heard something to that effect. Sorry, Tim. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/&g

Re: Oracle OCI 7/8 LOB error

2002-12-10 Thread Stephen Clouse
but offers a separate OCI 8 version. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE99nDfA4aoazQ9p2cRAjKFAJwK/61AgQRM8Xe

Re: ORA 3113 EOF on channel w/ DBD-1.12, Oracle 9i, Redhat 7.3

2002-12-16 Thread Stephen Clouse
's alert log, you'll likely find an ORA-600 that you'll need to handle with Oracle support. ORA-3113 is Oracle's generic "I screwed up" client error, and it usually goes along with a crash or segfault on the server side. - -- Stephen Clouse <[EMAIL PROTECTED]> Se

Re: No NOWAIT No Way

2003-01-22 Thread Stephen Clouse
with locks like that -- you're likely hitting something for which Oracle triggers a nowait lock behind the scenes. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE

Re: Vague DBI Error

2003-06-09 Thread Stephen Clouse
> what is going on? Could MySQL be timing out? Should I split up the table > if it is over 2.5 million records (just do a limit in the SQL statement)? If this is Linux, it sounds like the kernel OOM killer is sniping the process. Hopefully you're not trying to hold all those records

Re: Vague DBI Error

2003-06-09 Thread Stephen Clouse
SIGTERM +++ > > What does the brk command do? It extends the data memory segment for the process. >Can I get more information as to why SIGTERM > killed the script? You are most definitely running out of memory. - -- Stephen Clouse <[EMAIL PR

Re: Vague DBI Error

2003-06-09 Thread Stephen Clouse
) into local memory upon execute. To the list: is it possible that the DBD is calculating a ludicrous initial size for RowCacheSize? Does MySQL even support a row cache? That is my only guess here. A high-level DBI trace might confirm that. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior P

Re: administrative commands for oracle

2003-06-10 Thread Stephen Clouse
or are only sql > statements supported? Basically, if it's listed in the Oracle SQL Reference, you can use it via DBI. So yes, ALTER SESSION, DATABASE, SYSTEM, etc. are supported. What isn't supported are SQL*Plus-specific stuff (like STARTUP and SHUTDOWN). - -- Stephen Clouse <[E

Re: DBD for Oracle 9i

2003-06-11 Thread Stephen Clouse
work with 9i? DBD::Oracle works fine with 9i. What makes you believe it doesn't? - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer/DBE, Core Technology Developer The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE- Version: GnuPG v

Re: Important Perl 5.8.1 release candidate needs testing

2003-08-08 Thread Stephen Clouse
other CPAN modules). - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer/DBE, Core Technology Developer The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE/MuvfA4aoazQ9p2cRAhS0AJ9r59FaKbtfz6sdwq7J2UzAwO6arQ

Re: Important Perl 5.8.1 release candidate needs testing

2003-08-14 Thread Stephen Clouse
en't tested UTF8, though. I'm actually not even sure how. - -- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer/DBE, Core Technology Developer The IQ Group, Inc. <http://www.theiqgroup.com/> -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8

  1   2   >