Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Daniel Willems hit long-transaction error 1255 importing 16,500,000 rows with the BaaN tool and wanted to enlarge the physical log. Art Kagel said to add logical log space instead, ensure enough LOCKS (rows times 1 plus indexes), and take a level 0 archive. Rudy Fernandes suggested disabling logging, splitting the file, or periodic commits. Dirk Bornhutter suggested a RAW table on 7.31 or later. No outcome reported.
Auto-generated by Claude from the posts below — may be imperfect; read the full thread.
Daniel Willems — — source: Informix-list mailing list archive (1991-1998)
Hello,
I have to import 16,500,000 records in a table (using the BaaN tool
bdbpost6.1). This results in error 1255 (thus -255) = long transaction
(correct ?)
So, I want to increase the physical-log size (correct?) but only
temporarely.
I can't use onparams -p since the raw device is full.
Do I have to create an extra chunk to the plogdbs (on another device)?
--
*** remove spam twice when replying ***
↪ replying to Daniel Willems
kagel — — source: Informix-list mailing list archive (1991-1998)
"Daniel Willems" <spamwillemsspam@soudal.com> wrote:
>Hello,
>
>I have to import 16,500,000 records in a table (using the BaaN
tool
>bdbpost6.1). This results in error 1255 (thus -255) = long
transaction
>(correct ?)
>So, I want to increase the physical-log size (correct?) but only
>temporarely.
No, you hve to increase the LOGICAL LOG space. The physical log
is sufficient if checkpoints are happening when scheduled by the
CKPTINTVL parameter and not earlier by the physical log filling
to 75% of capacity. The physical log has nothing to do with
long transaction rollbacks, the logical logs do.
You will have to make sure that you have enough locks:
(#rows * (1 + #indexes))
then add logical logs and take a level zero archive to activate
the new logs. If you had to increase LOCKS you will have to stop
and restart the engine to have the change take effect.
Art S. Kagel
>I can't use onparams -p since the raw device is full.
>Do I have to create an extra chunk to the plogdbs (on another
device)?
>
>
>--
>*** remove spam twice when replying ***
>
>
>
>
Got questions? Get answers over the phone at Keen.com.
Up to 100 minutes free!
http://www.keen.com
↪ replying to Daniel Willems
Rudy Fernandes — — source: Informix-list mailing list archive (1991-1998)
1. If "business" allows, disable logging on your database for the load.
Loading will be faster and your "long transaction" problem will go away.
2. If your database must maintain logging during the load, you could
consider splitting your file in smaller pieces.
3. Consider increasing the size of your Logical logs
4. Examine the usage of your Baan tool. Surely, it must be having some
parameters to COMMIT periodically.
BTW, where did error number 1255 come from? Baan? (finderr doesn't return
anything)
Rudy
Daniel Willems wrote:
> Hello,
>
> I have to import 16,500,000 records in a table (using the BaaN tool
> bdbpost6.1). This results in error 1255 (thus -255) = long transaction
> (correct ?)
> So, I want to increase the physical-log size (correct?) but only
> temporarely.
>
> I can't use onparams -p since the raw device is full.
> Do I have to create an extra chunk to the plogdbs (on another device)?
>
> --
> *** remove spam twice when replying ***
Rudy Fernandes schrieb:
> 1. If "business" allows, disable logging on your database for the load.
> Loading will be faster and your "long transaction" problem will go away.
>
> 2. If your database must maintain logging during the load, you could
> consider splitting your file in smaller pieces.
>
> 3. Consider increasing the size of your Logical logs
>
> 4. Examine the usage of your Baan tool. Surely, it must be having some
> parameters to COMMIT periodically.
>
And one more:
5.
If your BAAN tool is able to load without the need for transactions and your
server is
AD/XP or DS 7.31 and higher (not sure if it is possible with 7.30 already,
but i guess not),
you could drop the constraints and indexes from the table,
put it table in RAW mode (alter table ...), load (no logging!) and recreate
all neccessary
indexes and constraints. So your database could still maintain logging for
all other tables
during the load.
Best regards
Dirk Bornhütter
-----
Dipl. Inf. Dirk Bornhütter
EDV-Beratung
dirk.bornhuetter@edv-bornhuetter.de
(49)-2261-921094
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.