doyoudb2

DB2 UDB for LUW (Linux, Unix and Windows)

 
  • Increase font size
  • Default font size
  • Decrease font size
Administration - Tips & Tricks

A tale of Deep Compression

E-mail Print PDF
User Rating: / 3
PoorBest 

DB2 Row Compression (also known as Deep Compression) is a hot topic of discussion in db2 circles since the release of v9.

Here are some experiences and best practices shared by db2 expert who has worked first hand on planning, implementing and maintaining row compression on a multi-terabyte database. 

Read more...
 

How to remove duplicate rows/date from a table

E-mail Print PDF
User Rating: / 1
PoorBest 
Recently a colleague asked me for a quick way to delete duplicate data from a big table. The problem my colleague faced was that he had to create a new unique index on a table with over million records. There were many duplicates records in the table with respect to this new index and hence his create index command failed.

The quickest and the easiest way I could think was to do the following:
Read more...
 

Quick Command to calculate the DB Size

E-mail Print PDF
User Rating: / 2
PoorBest 
A quick command to find out the database size is:

db2 "call get_dbsize_info(?,?,?,0)"

GET_DBSIZE_INFO is a stored procedure which calculates the size of the database (used space) and its maximum capacity (allocated space).

The DBSIZE is calculated as:
Read more...
 

Hidden Bufferpools – really, but why?

E-mail Print PDF
User Rating: / 3
PoorBest 
DB2 has 4 hidden bufferpools in the database which are allocated automatically when a database is activated or started (i.e. first connection to the database).  These are in addition to the default IBMDEFAULTBP and any other user defined bufferpools. These are provided so that an appropriate bufferpool is available in all circumstances and the unavailability of a bufferpool does not cause the system to go down.

There is one hidden buffer pool per page size (4K, 8K, 16K and 32K). These bufferpools are very small in size (16 pages each) and are not present in the system catalogs or the bufferpool system files - thus hidden to the user.  However you can use db2pd to view the hidden bufferpools.
Read more...
 

EXPLAIN tables explained

E-mail Print PDF
User Rating: / 2
PoorBest 
EXPLAIN tables capture and hold access plans when the Explain utility is invoked.  You must have these tables created before you can run the explain command.

The script (EXPLAIN.DDL) to create the explain tables is always located in ~sqllib/misc directory of your db2 instance. This script also create a couple of ADVISE tables which are used by the design advisor. The procedure to create the EXPLAIN tables is as follows:
Read more...
 
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  3 
  •  Next 
  •  End 
  • »


Page 1 of 3

Search Site

Subscribe

Enter your email address to receive new posts directly in your Inbox:

Relax! We hate SPAM as much as you do.

Sign In/Register

Syndicate Feeds - Subscribe