473,770 Members | 6,322 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create index filled up transaction log

I tried to create an index on a column of a table. It failed because
the creation caused the transaction log to be full. What can I do?
Should I export out the data in the table, then recreate the table
with the index, and finally import back the data?

Thanks in advance.

Yong Sing
Nov 12 '05 #1
5 6571
"yongsing" <oh********@yah oo.com.sg> wrote in message
news:59******** *************** **@posting.goog le.com...
I tried to create an index on a column of a table. It failed because
the creation caused the transaction log to be full. What can I do?
Should I export out the data in the table, then recreate the table
with the index, and finally import back the data?

Thanks in advance.

Yong Sing


Why not increase the number and size of the log files?
Nov 12 '05 #2
clean the log (it's better to enlarge it)
and then rebuild the index (or maybe recreate the index)

Charlie
"yongsing" <oh********@yah oo.com.sg> wrote in message
news:59******** *************** **@posting.goog le.com...
I tried to create an index on a column of a table. It failed because
the creation caused the transaction log to be full. What can I do?
Should I export out the data in the table, then recreate the table
with the index, and finally import back the data?

Thanks in advance.

Yong Sing

Nov 12 '05 #3
You can increase the number and/or the size of your logs. For future
references, you may want to look at creating a table with the 'NOT LOGGED
INITIALLY' feature. When adding a new index, the table can be altered to
activate the above feature so that logging will not occur. Look at the
documentation for more details.
Mauro.

"yongsing" <oh********@yah oo.com.sg> wrote in message
news:59******** *************** **@posting.goog le.com...
I tried to create an index on a column of a table. It failed because
the creation caused the transaction log to be full. What can I do?
Should I export out the data in the table, then recreate the table
with the index, and finally import back the data?

Thanks in advance.

Yong Sing

Nov 12 '05 #4
Thanks guys. How do I actually increase the log file size?

TIA
Yong Sing
Nov 12 '05 #5
"yongsing" <oh********@yah oo.com.sg> wrote in message
news:59******** *************** ***@posting.goo gle.com...
Thanks guys. How do I actually increase the log file size?

TIA

Yong Sing


The easiest way is to use the Control Center. Right click on the database
(sample, etc) and select Configure...

You will see a tab there for "Logs." Increase the file size, number of
primary logs, and number of secondary logs. When you click on the parameter
there are hints on the lower right to assist you. The default values are
extremely low and need to be increased significantly for any large
production database.

Note that this is for Version 7 Control Center, version 8 Control Center is
slightly different, but same concept.

To change the parms using the command line, see chapter called Configuring
DB2 in the Administration Guide: Performance. The command line format is:
db2 connect to <dbname>
db2 update db cfg using <parameter-name> <parameter-value>
db2 connect reset
Nov 12 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2820
by: Guy Deprez | last post by:
Hi, i'm having a problem to create indexes. STEP 1 ----------- Connection is OK (you can find the string at the end of the message) Table ("Couleurs") creation is OK STEP 2. Index Creation
11
27216
by: dfurtney | last post by:
SQL Server 7/2000: We have reasonably large tables (3,000,000 rows) that we need to add some indexes for. In a test, it took over 12 hours to CREATE a new INDEX against this table. One of us suggested that we create a temp table with the new index and copy the data from the old table into the new one, then rename it. I understand this took 15 minutes. Why the heck would it be faster to move the data and build multiple indexes...
2
7583
by: deko | last post by:
I'd like to use DDL (Data Definition Language) rather than VBA code to create a new table. The below DDL statement creates the table very nicely: CREATE TABLE tblTx03 (Subject Text (100), Entity_ID Long, TxDate Date, Tx_ID AutoIncrement Constraint PrimaryKey PRIMARY KEY); The problem is I want a non-unique index on TxDate - can this be done in the same statement? Or do I need to run a separate statement to add the non-unique index?
8
2275
by: ASP Yaboh | last post by:
I have an ArrayList of data gathered from a database. I want to create a web page from this data by creating a <table>, each cell in each row displays the appropriate data. One of those cells in each row needs a <textarea> control. The background supporting classes are completed, the only task left now is to create the web page. I am at a loss on how to create the table in the page populated by the data. Previously, I would have just...
17
8504
by: Jeffrey W. Baker | last post by:
Greetings, I have a 23GB data table upon which I am building a primary key of three columns. The data is mounted in a 137GB device and pg_xlog is mounted on a separate 3.5GB device. I have configured 24 checkpoint segments, which I expect gives me a worst-case usage in pg_xlog of 384MB. Unfortunately, during the CREATE INDEX, pg_xlog becomes full!
12
3065
by: bernhard.willems | last post by:
We are using DB2 UDB version 8.1 fp7 & fp9 on AIX 5.2. On our databases we do massive inserts and deletes (millions of rows). The performance is dramatically reduced because of pseudo deleted keys. In a 10 minutes it goes from 18000 transaction per minute to 9000 and lower. When an index reorg with CLEANUP ONLY PAGES is executed, the number of transactions climbs again. But a few minutes later it drops again to 9000. We have to run the...
6
6242
by: john | last post by:
Last week I posted about making a unique index on multiple fields to prevent importing identical records twice. I still have trouble with the nulls in the index. The only way that I can make it work is to make all the index' fields required fields and set the allow nulls setting to false. But then every field in the index should always have some kind of value, and I have to put a default value like "0" in them or "empty". Is this indeed the...
5
2652
by: vd12005 | last post by:
Hello, While playing to write an inverted index (see: http://en.wikipedia.org/wiki/Inverted_index), i run out of memory with a classic dict, (i have thousand of documents and millions of terms, stemming or other filtering are not considered, i wanted to understand how to handle GB of text first). I found ZODB and try to use it a bit, but i think i must be misunderstanding how to use it even after reading...
4
12441
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is this: can Access create the document and place it as an OLE object to the relevant table? Any help is greatly appreciated. Ricky
0
9591
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9425
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10053
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7415
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6676
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5449
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3969
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3573
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2816
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.