| |
|
If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
|
 |

11-01-10, 09:33
|
|
Registered User
|
|
Join Date: Apr 2010
Posts: 5
|
|
|
Load command
|
|
When I try to import some data over Load command I get a message : SQL0964C The transaction log for the database is full. SQLSTATE=57011. Is there any way to solve this?
I know one way, to increase log size and number of primary and secundary logs but is there any other way because for me isn't possible to increase logs on that mashine. (no enough space)
Thank's in advance,
ppkkkcc
|
|

11-01-10, 10:16
|
|
:-)
|
|
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
|
|
Use a nonrecoverable load.
|
|

11-01-10, 11:15
|
|
Registered User
|
|
Join Date: May 2003
Location: USA
Posts: 5,198
|
|
|
|
If you are using the IMPORT command (I can't tell from your question), use the COMMITCOUNT option keyword (something like 5000 should probably be OK). See the Command Reference manual for more info on this option.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
|
|

11-01-10, 18:34
|
|
Registered User
|
|
Join Date: Apr 2010
Posts: 5
|
|
My command is:
db2 load from test.ixf of ixf messages test.log insert into shema1.test
If I want to use a nonrecoverable load I just need to add nonrecoverable on the end, is that right?
exsample:
db2 load from test.ixf of ixf messages test.log insert into shema1.test nonrecoverable
And what is a bad side, if there is a bad side, of nonrecoverable load?
And in LOAD command can I specified commincount option?
tnx
|
|

11-01-10, 18:38
|
|
Registered User
|
|
Join Date: May 2003
Location: USA
Posts: 5,198
|
|
You cannot specify commitcount with a load.
The bad side of a nonrecoverable load is that if there is some "major" problem during the load, the table will be marked as corrupted and you will have to drop it. Having rows rejected during the load is not normally a "major" problem.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
|
|

11-01-10, 18:49
|
|
∞∞∞∞∞∞
|
|
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
|
|
The load utility does minimal logging by default (for copy yes/no and nonrecoverable options). The delete phase, if it's invoked, can generate a lot of log records since each delete operation is logged. So, check if there was a delete phase done by the load. if not, then I suspect some other application was holding the active log space and load was just a victim.
|
|

11-01-10, 19:28
|
|
Registered User
|
|
Join Date: Apr 2010
Posts: 5
|
|
Quote:
Originally Posted by Marcus_A
You cannot specify commitcount with a load.
The bad side of a nonrecoverable load is that if there is some "major" problem during the load, the table will be marked as corrupted and you will have to drop it. Having rows rejected during the load is not normally a "major" problem.
|
If that is only difference that OK for me, because the table is empty and if there is some "major" problem during the load I can drop it and create again.
Quote:
|
Originally Posted by db2girl;
The load utility does minimal logging by default (for copy yes/no and nonrecoverable options). The delete phase, if it's invoked, can generate a lot of log records since each delete operation is logged. So, check if there was a delete phase done by the load. if not, then I suspect some other application was holding the active log space and load was just a victim.
|
I get a message from first post in delete phase. So, I guess that nonrecoverable load doesn't include delete phase?
|
|

11-01-10, 20:04
|
|
Registered User
|
|
Join Date: May 2003
Location: USA
Posts: 5,198
|
|
Nonrecoverable does not log anything (well, almost nothing), including a delete phase if applicable to a particular load.
One thing I forgot to mention about a nonrecoverable load is that you can not rollforward a database through a nonrecoverable load without loosing the table that was loaded as nonrecoverable. That means that if you restore a database backup and roll forward the logs active during the time period that a nonrecoverable load takes place (or a crash recovery occurs and logs are rolled forward during that timeframe) then the table will be marked as bad and you will have to drop it.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
|
|

11-01-10, 22:30
|
|
∞∞∞∞∞∞
|
|
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
|
|
As far as I know, the delete phase is always logged (even in case of a nonrecoverable load).
|
|

11-02-10, 09:45
|
|
Registered User
|
|
Join Date: Nov 2005
Location: IL
Posts: 554
|
|
Bella is right on the delete phase. What you also want to consider is even if your load is good but you do not take a backup right after and you crash. Your restore wont have this data and you still would need to drop the table because your load was not logged. And keep in mind that DELETE phase is slow.
Nonreverable is a great but only if you can afford to take a hit by having to rebuild and repopulate that table.
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
DB2 v9.1.0.2 os 5.3.0.0
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|