PDA

View Full Version : Create Package Body with ODBC


Hans Sauren
09-27-2004, 12:28 AM
Hi all,
we want to create a package body by sending a sql-statement with ODBC.
We use ODBC-Driver Version 8.01.07.810 with ORACLE-Database 8.1.7 and
9i. Now it seems that the length of the statement is restricted so
that we can't execute statement with more than approximate 9200
characters. But the function we want to create in the package body has
more characters.
Does anyone know if there is a length-restriction by executing
statements with ODBC? Can I switch the length and if yes where? Or is
it possible to create package bodies in an other way than in sending
one statement?
Thanks for any idea,

Hans Sauren

Sybrand Bakker
09-27-2004, 09:40 AM
On 27 Sep 2004 01:28:27 -0700, hsauren@gruen-ag.de (Hans Sauren)
wrote:
Hi all,we want to create a package body by sending a sql-statement with ODBC.We use ODBC-Driver Version 8.01.07.810 with ORACLE-Database 8.1.7 and9i. Now it seems that the length of the statement is restricted sothat we can't execute statement with more than approximate 9200characters. But the function we want to create in the package body hasmore characters.Does anyone know if there is a length-restriction by executingstatements with ODBC? Can I switch the length and if yes where? Or isit possible to create package bodies in an other way than in sendingone statement?Thanks for any idea,Hans Sauren


I think one must question first why you need to create package bodies
on the fly using ODBC. This has definitely nothing to do with proper
database administration!


--
Sybrand Bakker, Senior Oracle DBA

wario
09-28-2004, 07:12 AM
Skip ODBC and use SQLPLUS to create objects.

Wario


MyLounge.com Site Map
Forum: Cars, Cell Phone, Database, Games, Home Improvement, IT, Music, School, Sports, Web Design, Web Server, Weight Loss

The MyLounge.com forum is intended for informational use only and should not be relied upon and is not a substitute for any advice. The information contained on MyLounge.com are opinions and suggestions of members and is not a representation of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for the accuracy, completeness or usefulness of any postings or the qualifications of any person responding. Please consult a expert or seek the services of an attorney in your area for more accuracy on your specific situation. Please note that our forums also serve as mirrors to Usenet newsgroups. Many posts you see on our forums are made by newsgroup users who may not be members of MyLounge.com Term of Service