Re: "Transaction too long", but no logging
Posted in 1996
Monika Huk wrote:
>
> Hi,
>
> I have the following problem:
>
> I want to create an index on a table which contains 25.000.000 rows.
> The index is of the type "varchar" with a max. length of 60 bytes.
>
> Because I got a "transaction too long" error, I turned logging off.
> Nevertheless I got the same error again (error-no. 458).
>
> The statement:
> isql $DATABASE - <<!
> CREATE INDEX titel_desk ON titel_worte (desk) IN dbs_4;> !
>
> By the way: the creation on an index for a "smallint"-field worked
> fine for the same table. There also already exists a unique composit Index
> consisting of the above mentioned varchar "desk" and the a.m.
> "smallint"-field, which was created when the table was created.
>
> There should be enough space for the index in dbs_4 (3GB).
>
> The sysmaster-table has "unbuffered logging", but I think that's not
> important.
>
> I use Informix-Onl v7.12, Operating-System is SINIX 5.42
>
> I can't really experiment with this one because of the size of the
> table (and actually the size of the whole database).
>
> Thanks a lot
>
> Monika
>
> monika.huk@softcon.de
What did you mean with "I turned logging off" ? Did you performed a
switch from "unbuffered" to "no logging" mode or did you set the LTAPEDEV
to "/dev/null" ?.
If you only set LTAPEDEV to /dev/null the error must occurs again because
the create index transaction is still logged. Because the logdbs is
written "Round-Robin" other transactions performed during this create
index statement cause than a -458 if the logdbs is too small.
In case of only setting LTAPEDEV to /dev/null repeat the create index if
you are alone on the database (no other transactions)
If you really set the logging mode to "no logging" check if the tmpdbs
has enough free space to save the new index - During index creation
perform an "onstat -d [-r 60]". The calculation of the index size is
described in the Admin Guide (43-57). Note that the varchar type has
another formula.
Hope this helps
Uwe
--
Uwe Feuerstein
iXOS Anwendungssoftware GmbH Leipzig
E-mail: mailto:uwe.feuerstein@ixos-leipzig.de
www : http://www.ixos-leipzig.de/
Phone : +49 341 48503-0
Fax : +49 341 48503-99