Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > Problem with copy.in
User Name
Password
REGISTER NOW! Mark Forums Read




Reply Bookmark and Share
1 7th August 00:09
paul white
External User
 
Posts: 1
Default Problem with copy.in



Hi Cecil,

Check out the dba guide. Ch 5.
I had a similar problem when copying a tables between production and test.
I'd get E_US14E4 going one way but not the other.

The instructions for performing a bulk copy (in the DBA Guide), say the
table must have the following three characteristics:
* The table has no secondary indexes.
* The table is not journaled.
* The table is either a heap table OR it is empty and less than 18 pages in
size.

In my case, the production tables were created with journaling by default. I
had to explicitly set nojournaling in order to use bulk copy parameters.

Also, you may like to consider changing the order of the steps
From: create, modify, copy from
To: create, copy from, modify.

In the second case, the copy from can perform a bulk load on a heap table,
then modify after.

Paul

-----Original Message-----
From: info-ingres-admin@cariboulake.com
[mailto:info-ingres-admin@cariboulake.com]On Behalf Of Cecil Westerhof
Sent: Sunday, 8 October 2006 5:17 PM
To: info-ingres@cariboulake.com
Subject: [Info-ingres] Re: Problem with copy.in


Cecil Westerhof schreef:


I found the problem. The through copydb generated code had
with allocation = 16,
row_estimate = 934136
at the end of the copy command. When I remove that I can import the
data into the table. But it seems to take much longer then.

_______________________________________________
Info-ingres mailing list
Info-ingres@cariboulake.com
http://mailman.cariboulake.com/mailm...py/info-ingres
  Reply With Quote


 


2 7th August 00:10
roy hann
External User
 
Posts: 1
Default Problem with copy.in



If that's all it says, then the manual fails to mention that the table must
not have any system maintained logical key columns either (table_key or object_key).


I have always thought the installation default of default_journaling ON is
wrong. I can understand the temptation to ship the product that way, but it
causes as many problems as it solves IMO. Generally, once you've created
the durable production tables owned by the DBA, any further tables probably
should not be journaled, or not by default anyway.

Roy
  Reply With Quote
3 7th August 00:10
paul white
External User
 
Posts: 1
Default Problem with copy.in


or object_key).

One of your favourite subjects :-)

I found it frustrating to have perfectly good copy.in scripts run in
test conditions, then on D-day they would fail in production in the
middle of hours of processing. I would have preferred the copy to
ignore the syntax "error", report a warning, and get on with the job
anyway. I raised an issue which turned into a DAR which provided a fix
to part of my problem. See "copydb -journal".


On the other hand, it is nice to know if someone loads data with copydb
it will be journalled from day one and not have to wait until the next
checkpoint. Doesn't apply to really large imports which run slow, and
eat up lots space in the journals. I do these ones after hours and with
nojournaling, followed by checkpoint.

Paul


_______________________________________________
Info-ingres mailing list
Info-ingres@cariboulake.com
http://mailman.cariboulake.com/mailm...py/info-ingres
  Reply With Quote
4 7th August 00:10
roy hann
External User
 
Posts: 1
Default Problem with copy.in


I don't disagree, and one always has the option to create the table WITH
JOURNALING. My objection is that for most installations almost every table
that is created after the system is commissioned really needn't be journaled
so it is absurd to journal by default.

Of course the option to use session global temporary tables makes it less of
an issue.

Roy
  Reply With Quote


 


Reply


Thread Tools
Display Modes


Some other forums that might be of your interest : Development, Ada, Apple script, Assembler, Awk, Beos, Basic, C, C++, C#, C# .net, .net, .net frameworks, Asp .net, Clarion, Clipper, Clos, Clu, Cobol, Coldfusion, Delphi, Dylan, Eiffel, Forth, Fortran, Haskell, Hermes, Icon, Idl, Java, Java script, Jscript .net, Jcl, Linoleum, Lisp, Lotus, Limbo, Logo, Ml, Mumps, Oberon, Postscript, Pop, Pl1, Prolog, Python, Ruby, Pascal, Perl, Php, Rebol, Rexx, Sed, Sather, Scheme, Smalltalk, Tcl, Vhdl, Vrml, Visual basic, Visual basic .net, Yorick, Mysql, Omnis, Postgresql, Xbase, Access, Oracle, Adabas, Berkeley, Btrieve, Filemaker, Gupta, Db2, Informix, Ingres, Mssql server, Object, Olap, Paradox, Rdb, Revelation, Sybase, Theory, Dbase, Html, Java script, Css, Flash, Photoshop, Corel script, Xml, Tech, Beos, Gem, Hp48, Hpux, Linux, Mac, Ms-dos, Os2, Palm, Solaris, Ti99, Windows, Xenix, Aos, Chorus, Geos, Inferno, Lantastic, Lynx, Mach, Minix, Netware, Os9, Parix, Plan9, Psos, Qnx, Xinu, Sco, Unix, Aix, Aux, 386bsd, Bsdi, Freebsd, Netbsd, Openbsd, Ultrix, Amd, Intel, Aptiva, Buz, Deals, Homebuilt, Overclocking, Programming, Extra forums


Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666