Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 10:40 AM
hikums@gmail.com
Guest
 
Posts: n/a
Default tablespace move from 32K to 4K page size on same instance

How to accomplish a tablespace move from 32K to 4K page size on AIX
5.2, DB2 UDB 8.2?

Enable forward recovery, take 32K tablespace backup, drop 32K
tablespace, create 4K tablespace, restore to 4K tablespace from the
backup, reset back to circular logging. Would this work?

  #2  
Old November 12th, 2005, 10:40 AM
Ian
Guest
 
Posts: n/a
Default Re: tablespace move from 32K to 4K page size on same instance

hikums@gmail.com wrote:[color=blue]
> How to accomplish a tablespace move from 32K to 4K page size on AIX
> 5.2, DB2 UDB 8.2?
>
> Enable forward recovery, take 32K tablespace backup, drop 32K
> tablespace, create 4K tablespace, restore to 4K tablespace from the
> backup, reset back to circular logging. Would this work?
>[/color]

No, you can't change page size. You have to export data, save DDL,
drop/create tablespaces, recreate objects, load data.

  #3  
Old November 12th, 2005, 10:40 AM
Mark Yudkin
Guest
 
Posts: n/a
Default Re: tablespace move from 32K to 4K page size on same instance

Why would you "reset back to circular logging"? Don't you need recovery? If
not, why not just drop everything and start from scratch?

Export, drop, create, load. Implement proper logging and log archiving.

<hikums@gmail.com> wrote in message
news:1115067651.261010.165510@f14g2000cwb.googlegr oups.com...[color=blue]
> How to accomplish a tablespace move from 32K to 4K page size on AIX
> 5.2, DB2 UDB 8.2?
>
> Enable forward recovery, take 32K tablespace backup, drop 32K
> tablespace, create 4K tablespace, restore to 4K tablespace from the
> backup, reset back to circular logging. Would this work?
>[/color]


  #4  
Old November 12th, 2005, 10:40 AM
Knut Stolze
Guest
 
Posts: n/a
Default Re: tablespace move from 32K to 4K page size on same instance

hikums@gmail.com wrote:
[color=blue]
> How to accomplish a tablespace move from 32K to 4K page size on AIX
> 5.2, DB2 UDB 8.2?[/color]

Create a new table with the same structure in the 4K tablespace, copy the
data, drop the old table and rename the new one.

Assuming you want to change table T:

CREATE TABLE T_new LIKE T
INSERT INTO T_new SELECT * FROM T
DROP TABLE T
RENAME TABLE T_new TO T

You will also have to take care of indexes and constraints like
primary/foreign keys.

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
  #5  
Old November 12th, 2005, 10:40 AM
hikums@gmail.com
Guest
 
Posts: n/a
Default Re: tablespace move from 32K to 4K page size on same instance

We do a lot of full replace loads in batch, recovery logging forces the
tables to load or backup pending(forgot which one). I think I can
specify "COPY NO" or "NON RECOVERABLE" to avoid this, but we have'nt
taken that route yet. Please confirm that these will get rid of that
"load or backup pending" issue.

Thanks for your tips!!

  #6  
Old November 12th, 2005, 10:40 AM
Ian
Guest
 
Posts: n/a
Default Re: tablespace move from 32K to 4K page size on same instance

hikums@gmail.com wrote:[color=blue]
> We do a lot of full replace loads in batch, recovery logging forces the
> tables to load or backup pending(forgot which one). I think I can
> specify "COPY NO" or "NON RECOVERABLE" to avoid this, but we have'nt
> taken that route yet. Please confirm that these will get rid of that
> "load or backup pending" issue.[/color]

NONRECOVERABLE will prevent DB2 from putting the tablespace in backup
pending, but of course you won't be able to roll forward through the
load operation.

  #7  
Old November 12th, 2005, 10:40 AM
Joachim Müller
Guest
 
Posts: n/a
Default Re: tablespace move from 32K to 4K page size on same instance

no more since Version 8. (online load)


<hikums@gmail.com> schrieb im Newsbeitrag
news:1115125868.056844.301340@o13g2000cwo.googlegr oups.com...[color=blue]
> We do a lot of full replace loads in batch, recovery logging forces the
> tables to load or backup pending(forgot which one). I think I can
> specify "COPY NO" or "NON RECOVERABLE" to avoid this, but we have'nt
> taken that route yet. Please confirm that these will get rid of that
> "load or backup pending" issue.
>
> Thanks for your tips!!
>[/color]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,174 network members.