473,387 Members | 1,624 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 6523
"yongsing" <oh********@yahoo.com.sg> wrote in message
news:59*************************@posting.google.co m...
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********@yahoo.com.sg> wrote in message
news:59*************************@posting.google.co m...
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********@yahoo.com.sg> wrote in message
news:59*************************@posting.google.co m...
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********@yahoo.com.sg> wrote in message
news:59**************************@posting.google.c om...
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
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
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...
2
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),...
8
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...
17
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...
12
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....
6
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...
5
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,...
4
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.