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 > How to get schema level backup?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-17-05, 15:37
winnersparadise winnersparadise is offline
Registered User
 
Join Date: Jan 2005
Posts: 40
How to get schema level backup?

All,

Iam working on DB2 8.2.2 for solaris 5.9. Is there any way to get the backup of a particular schema, if i have more than one schema. Replies will be appreciated.

Thanks in advance....
Reply With Quote
  #2 (permalink)  
Old 11-17-05, 16:11
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
I don't think so. You can export all tables in a schema. Even if you could get a schema backup, how were you planning to use it?
__________________
mota
Reply With Quote
  #3 (permalink)  
Old 11-17-05, 21:22
matthewlau matthewlau is offline
Member
 
Join Date: Dec 2001
Posts: 78
Since DB2 support tablespace level backup, you can put different schema into separate tablespace.
Reply With Quote
  #4 (permalink)  
Old 11-18-05, 09:55
winnersparadise winnersparadise is offline
Registered User
 
Join Date: Jan 2005
Posts: 40
Quote:
Originally Posted by matthewlau
Since DB2 support tablespace level backup, you can put different schema into separate tablespace.

Thanks for replies...

Yes we have different tablespaces for different schema's. May i know how can we get the seperate backup for them....
Reply With Quote
  #5 (permalink)  
Old 11-20-05, 23:53
JAYANTA_DATTA JAYANTA_DATTA is offline
Registered User
 
Join Date: Oct 2004
Location: DELHI INDIA
Posts: 336
Suppose you wannt to take backup of tablespace TS_BIG_DAT.

db2 "BACKUP DATABASE SAMPLE TABLESPACE ( TS_BIG_DAT) TO /home/backup/latest"

Thanks,
Jayanta
Xansa India Ltd
Reply With Quote
  #6 (permalink)  
Old 11-28-05, 13:45
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
If you are new to DB2 and not comfortable with DB2 backup/restores, I would not suggest using BACKUP TABLESPACE ..

There are many restrictions on resotring a tablespace ... the ones that I can think of right now are :
1) You cannot restore the tablespace backup toi another database
2) You cannot use this backup to recover a dropped table

How about db2move ?

Cheers
sathyaram
Reply With Quote
  #7 (permalink)  
Old 11-28-05, 14:21
bmujeeb bmujeeb is offline
Registered User
 
Join Date: Mar 2004
Posts: 448
Adding to that.

your database must be in archive mode.

regards,

mujeeb
Reply With Quote
  #8 (permalink)  
Old 11-28-05, 17:19
winnersparadise winnersparadise is offline
Registered User
 
Join Date: Jan 2005
Posts: 40
Thanks for all replies...

Our database is in archive mode and we have altogether 10 tablespaces in different filesystems and iam confortable with all the backups and restores.
Just wanted to know something about schema level backups...

Quote:
Originally Posted by bmujeeb
Adding to that.

your database must be in archive mode.

regards,

mujeeb
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