Ingres Community Forums Login Register Ingres.com  

Ingres Community Forum


Go Back   Ingres Community Forums > Community > Questions, Feedback, and Suggestions
 

Reply
 
LinkBack Thread Tools Display Modes
Old 2010-03-05   #1 (permalink)
Ingres Community
 
Join Date: Feb 2009
Posts: 26
Default INGRES SERIALIZATION FAILURE DEADLOCK Error. Need Help

Hi All,

Am trying to insert record using the below query, the query works fine for small bunch of insertion but fails for inserting records more than 250000.

Am not sure is this the INGRES limitation or DBAs would have predefined any rule.

The error am getting for insertion above 250000 records is

: Return :-49900 SQLERROR
: Warning:
: 0[W] 1[ ] 2[ ] 3[ ] 4[ ] 5[ ] 6[W] 7[ ]
: Message:
: E_US1264 The query has been aborted. (Fri Mar 5 10:14:48 2010)
: Rows :0
: GEC Diagnostic:
:
: SERIALIZATION FAILURE
: DEADLOCK
: Examine warning 6

INSERT INTO tab1
(se,
dt,
ae
)
SELECT DISTINCT
a.se,
a.dt,
a.ae,
FROM tab2 a, tab3 c, tab4 g
where ........;


Can anyone help me to overcome this issue.

Much thanks in advance

RNK
karthickrn is offline   Reply With Quote
Old 2010-03-05   #2 (permalink)
Ingres Community
 
Join Date: Mar 2007
Location: Cheshire, UK
Posts: 61
Default

The E_US1264 indicates that the transaction logfile filled up.

The size of the transaction logfile can be ameneded in cbf (it requires a restart); and effectively limits the amount of uncommitted change that can be hanging around at any point in time.

Alternatively, break the SQL up into smaller result sets and commit between each set.
nick.bolton@barclays.com is offline   Reply With Quote
Old 2010-03-08   #3 (permalink)
Ingres Community
 
Join Date: Feb 2009
Posts: 26
Default

thanks for your reply ....I'll break into smalller sets and check ... but in the case of handling insertions with session tables .. Kindly let me know whether commit can still be used.
karthickrn is offline   Reply With Quote
Old 2010-03-08   #4 (permalink)
Ingres Community
 
kschendel's Avatar
 
Join Date: Mar 2007
Location: Pittsburgh, PA
Posts: 1,230
Send a message via Skype™ to kschendel
Default

If by session tables you mean tables created with "declare global temporary table", yes you can use commit. However be aware that session temp tables do not log any changes and do not contribute to the transaction log file filling up.
kschendel is offline   Reply With Quote

Reply


Thread Tools
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

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


© 2009 Ingres Corporation. All Rights Reserved