Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Informix > "Logical Logs + Alter table" Problems

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-10-08, 09:50
faca370 faca370 is offline
Registered User
 
Join Date: Jan 2008
Posts: 3
"Logical Logs + Alter table" Problems

Hello!

We have a system with 20 logical logs (4096 Kb size each one). we have a problem with a SQL statment (alter table) because these logical logs seems to be full and the database do a roll back. Is it possible that this kind of sql instruction, fill all the logical logs?

Thanks in advance!
Reply With Quote
  #2 (permalink)  
Old 01-10-08, 11:40
mjldba mjldba is offline
Registered User
 
Join Date: Dec 2003
Location: North America
Posts: 89
Yes, you are right. Even though you have 20 logical logs only 10 will be used because you are getting into what Informix calls a "long transaction" and the IDS engine will use the remaining 10 for the rollback so it can keep track of all database activity.

I'll assume that the table you're altering is pretty large so you need to have more logical logs available.
Reply With Quote
  #3 (permalink)  
Old 01-10-08, 15:41
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Distrito Federal - Brasil
Posts: 197
or.. you can disable temporary the log (ontape -N or ondblog), execute the alter and active again the log..

if you usually do backup of you IDS, you need execute a new backup level 0...

Is recommend don't have any user connected to you database when you disable the log...
__________________
________________________________________
César Inacio Martins
Distrito Federal - Brasil
________________________________________
Reply With Quote
  #4 (permalink)  
Old 01-11-08, 04:00
faca370 faca370 is offline
Registered User
 
Join Date: Jan 2008
Posts: 3
Thx very much for your replies!

Now... I have a new question (yeah, i'm new informix administration)

What is the difference between:

a) ontape -N
b) ontape -U dbname

I've read that is possible to change the status from buffered mode to unbuffered mode with b) option. Is it the same that option a)?
Reply With Quote
  #5 (permalink)  
Old 01-11-08, 07:05
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Distrito Federal - Brasil
Posts: 197
Cool A little explanation

options you have:
-A set the following database(s) to ansi logging
-B set the following database(s) to buffered logging
-N set the following database(s) to no logging
-U set the following database(s) to unbuffered logging

A little explanation:
-A : DML and DDL works only with ANSI SQL standards, theoretically if you develop your application over this standard, you can migrate to ANY database easily

-B : Works with IDS standards, transaction(*) is actived , flush of any modified data to disk is buffered (**)

-N : Works with IDS standards, transaction(*) is NOT actived , flush of any modified data to disk are executed immediately

-U : Works with IDS standards, transaction(*) is actived, the flush of any modified data to disk are executed immediately when the transaction is commited, don't matter if the buffer is full or not..

(*) begin/commit/rollback
(**) look for LOGBUFF and PHYSBUFF on your $ONCONFIG file ; see the command "onstat -l"
__________________
________________________________________
César Inacio Martins
Distrito Federal - Brasil
________________________________________
Reply With Quote
  #6 (permalink)  
Old 01-11-08, 09:24
faca370 faca370 is offline
Registered User
 
Join Date: Jan 2008
Posts: 3
Thumbs up

Thank you very much for your answer! Your explanation is very clear and usefull! Thx again!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On