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 > Quiesce Tablespace For Table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-30-03, 06:44
gulshan_gandhi gulshan_gandhi is offline
Registered User
 
Join Date: Jun 2003
Posts: 24
Quiesce Tablespace For Table

When I am trying to load 2 tables which exist in the same tablespace, I get - 290 error. Before loading each table, I have quiesce table using db2 api sqluvqdp. So i have used this api twice before using load command.
Reply With Quote
  #2 (permalink)  
Old 09-30-03, 10:31
cchattoraj cchattoraj is offline
Registered User
 
Join Date: Mar 2003
Posts: 343
You can't load two tables in the same tablespace concurrently since the load acquires an exclusive lock on the tablespace. You can either address this by putting different tables in different tablespaces or by doing non-recoverable loads(load config file) and puttin some dependancies in the jobs so they do not run concurrently.
Reply With Quote
  #3 (permalink)  
Old 10-01-03, 00:36
gulshan_gandhi gulshan_gandhi is offline
Registered User
 
Join Date: Jun 2003
Posts: 24
When would the locks be removed by DB2 from the tablespace. Are the locks removed after the load immediately or with a database commit.

I's describe the steps in short:

1. Export Table A using sqluexpr
2. QUIESCE TABLESPACE FOR TABLE A using sqluvqdp
3. LOAD TABLE A using sqluload
4. Export Table B using sqluexpr
5. QUIESCE TABLESPACE FOR TABLE B using sqluvqdp
6. LOAD TABLE B using sqluload
7. commit the changes in database

Interesting thing is that the same program is working in one region and not working in aonther region. In both the regions, database and data is same. Both Table A and B reside in same tablespace.

The only difference is that in one region, the forward recovery is disabled.

Last edited by gulshan_gandhi; 10-01-03 at 01:10.
Reply With Quote
  #4 (permalink)  
Old 10-01-03, 11:30
cchattoraj cchattoraj is offline
Registered User
 
Join Date: Mar 2003
Posts: 343
Don't know what you mean by region - another database in another instance? I do not think that forward recovery should affect this. Where does it work - in the one with forward recovery or the one without?

Which quiesce mode are you using? Are you resetting the quiesce mode between the loads?

Also, just out of curiosity, why aren't you using the load or the autoload command which would handle all this for you?
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