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 > Informix > Moving dbspaces between databases

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-23-03, 04:34
zero_drag zero_drag is offline
Registered User
 
Join Date: Aug 2003
Posts: 3
Moving dbspaces between databases

Problem description. We have run into problems with mass deletes on our IDS 7.31 DB due to the btree cleaner problem. This is preventing the normal archiving that goes on our large tables (excess of 100 m).

In order to get around this problem, I am looking at fragmenting tables on a date range and detaching fragments based on our archiving policy.

The idea is to move data (fragment) from production to archive database. Both these databases reside in the same server. And each fragment is mapped to the different dbspaces.

Question. The question is can we move a fragment/dbspace between two databases on the same server.

Environment. IDS 7.31 ( patch not sure), HP UX 11.

Any ideas or pointers or answers will be greatfully accepted.

Many thanks!

cheers
Reply With Quote
  #2 (permalink)  
Old 08-26-03, 09:41
chrisha chrisha is offline
Registered User
 
Join Date: Mar 2003
Posts: 7
Re: Moving dbspaces between databases

Hi,
you can only use the know tools dbexport or HPL. But thats no problem, cause a detached fragment is a new table. Attach it on the archive system and have fun.
But: be aware of index rebuild and primary keys.
I have implemented this solution, its running fine.

Cheers
--
or switch to Oracle, there you can 'transport tablespaces' ;-)

Quote:
Originally posted by zero_drag
Problem description. We have run into problems with mass deletes on our IDS 7.31 DB due to the btree cleaner problem. This is preventing the normal archiving that goes on our large tables (excess of 100 m).

In order to get around this problem, I am looking at fragmenting tables on a date range and detaching fragments based on our archiving policy.

The idea is to move data (fragment) from production to archive database. Both these databases reside in the same server. And each fragment is mapped to the different dbspaces.

Question. The question is can we move a fragment/dbspace between two databases on the same server.

Environment. IDS 7.31 ( patch not sure), HP UX 11.

Any ideas or pointers or answers will be greatfully accepted.

Many thanks!

cheers
Reply With Quote
  #3 (permalink)  
Old 08-26-03, 11:59
zero_drag zero_drag is offline
Registered User
 
Join Date: Aug 2003
Posts: 3
Re: Moving dbspaces between databases

Thanks! Chrisha, That was very helpful.

Quote:
Originally posted by chrisha
Hi,
you can only use the know tools dbexport or HPL. But thats no problem, cause a detached fragment is a new table. Attach it on the archive system and have fun.
But: be aware of index rebuild and primary keys.
I have implemented this solution, its running fine.

Cheers
--
or switch to Oracle, there you can 'transport tablespaces' ;-)
Reply With Quote
  #4 (permalink)  
Old 08-29-03, 09:08
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Re: Moving dbspaces between databases

Quote:
Originally posted by zero_drag
Problem description. We have run into problems with mass deletes on our IDS 7.31 DB due to the btree cleaner problem. This is preventing the normal archiving that goes on our large tables (excess of 100 m).

In order to get around this problem, I am looking at fragmenting tables on a date range and detaching fragments based on our archiving policy.

The idea is to move data (fragment) from production to archive database. Both these databases reside in the same server. And each fragment is mapped to the different dbspaces.

Question. The question is can we move a fragment/dbspace between two databases on the same server.

Environment. IDS 7.31 ( patch not sure), HP UX 11.

Any ideas or pointers or answers will be greatfully accepted.

Many thanks!

cheers
Hi,
I think what you can use ALTER FRAGMENT ON TABLE xxxx init in new dbspace.
Now, if is same server no problem.
The fragmentation is by table and each table belongs to a data base.

Gustavo.
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