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.

 
Go Back  dBforums > Database Server Software > DB2 > Table freezing

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-07-06, 09:28
alexandre.mduarte alexandre.mduarte is offline
Registered User
 
Join Date: Nov 2006
Posts: 6
Unhappy Table freezing

Hi,

I have a table who when I access it for first time, on day, itīs wait a long time for return their lines. After that first access the other accesss for me and other users have a normal answer time. Past 1 or 2 hours itīs freezing again.
Whatīs the problem??? Somebody pass for this problem??

Thanks,
Alexandre.
Reply With Quote
  #2 (permalink)  
Old 12-07-06, 11:19
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
What DB2 version and OS are you using?
What is the definition of the table?
What is the SQL you are using to access it?
What is your DB2 configuration, especially bufferpools?

Andy
Reply With Quote
  #3 (permalink)  
Old 12-07-06, 11:29
alexandre.mduarte alexandre.mduarte is offline
Registered User
 
Join Date: Nov 2006
Posts: 6
What DB2 version and OS are you using?
DB2 Udb 8 for Windows NT.
What is the definition of the table?
I don´t undestand. Its a comun-table.
What is the SQL you are using to access it?
select column from table_name;
What is your DB2 configuration, especially bufferpools?
1 IBMbufferpool (4 kb)

Thanks.
Reply With Quote
  #4 (permalink)  
Old 12-07-06, 11:41
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I need the definition of the table (CREATE TABLE ...).
I need the exact SELECT statement you are using on the table above.
Run: "select bpname,npages,pagesize from syscat.bufferpools" and post results for bufferpool configuration.
Also how many rows in the table? Any indexes?

Andy
Reply With Quote
  #5 (permalink)  
Old 12-07-06, 14:16
alexandre.mduarte alexandre.mduarte is offline
Registered User
 
Join Date: Nov 2006
Posts: 6
create table ASPAU001.I_SP_AU028
(
COD_GRANEL VARCHAR(15) not null with default,
METODO_GRANEL VARCHAR(1) not null with default,
COD_EMBALAGEM VARCHAR(15) not null with default,
METODO_EMBALAGEM VARCHAR(1) not null with default,
FLG_VINCULADO CHAR(1) ,
FLG_LIBERADO CHAR(1) ,
primary key (COD_GRANEL, METODO_GRANEL, COD_EMBALAGEM, METODO_EMBALAGEM)
)
in TS_AU028;

comment on table ASPAU001.I_SP_AU028 is 'VINCULOS DE GRANEL_EMBAL';

comment on column ASPAU001.I_SP_AU028.COD_GRANEL is 'COD_GRANEL';

comment on column ASPAU001.I_SP_AU028.METODO_GRANEL is 'METODO_GRANEL';

comment on column ASPAU001.I_SP_AU028.COD_EMBALAGEM is 'COD_EMBALAGEM';

comment on column ASPAU001.I_SP_AU028.METODO_EMBALAGEM is 'METODO_EMBALAGEM';

comment on column ASPAU001.I_SP_AU028.FLG_VINCULADO is 'Informa se há vinculo';

comment on column ASPAU001.I_SP_AU028.FLG_LIBERADO is 'informa os projetos liberados para aprovação';

create unique index SQL0004170801097502222 on ASPAU001.I_SP_AU028 (COD_GRANEL asc, METODO_GRANEL asc);

select * from
where COD_GRANEL = 'OLSNA001' and
METODO_GRANEL = '1';

That´s table has 156234 rows.
Reply With Quote
  #6 (permalink)  
Old 12-07-06, 14:50
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Please Run: "select bpname,npages,pagesize from syscat.bufferpools" and post results for bufferpool configuration.

Also have you done a runstats on the table and indexes?

Andy
Reply With Quote
  #7 (permalink)  
Old 12-07-06, 16:28
koganti koganti is offline
Registered User
 
Join Date: Jul 2002
Location: ATL
Posts: 170
Just Run the runstats on the table
Reply With Quote
  #8 (permalink)  
Old 12-07-06, 17:20
alexandre.mduarte alexandre.mduarte is offline
Registered User
 
Join Date: Nov 2006
Posts: 6
Guys,

select bpname,npages,pagesize from syscat.bufferpools

BPNAME NPAGES PAGESIZE
------------------ ----------- -----------
IBMDEFAULTBP 67500 4096
BP_32K 5229 32768
APL 8125 8192

The Runstat is executed every night.

Thnks,
Alexandre.
Reply With Quote
  #9 (permalink)  
Old 12-08-06, 08:10
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Can you post the access plan for the query?

Andy
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On