473,857 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

TABLESPACE DROP AND REDIRECT RESTORE

Hi Group,

I have a problem in restoring my tablespace, my database is running in
ARCHIVAL logging, I created a tablespace, did some transaction, then
took the ONLINE BACKUP of the tablespace. Then I dropped the tablespace
and tried to restore from the tablespace backup image, when I do this
it's throwing error

SQL2549N The database was not restored because either all of the table
spaces
in the backup image are inaccessible, or one or more table space names
in list
of table space names to restore are invalid.

so when I drop my tablespace, whether my containers get dropped? if
dropped how should I do the tablespace redirect command.

Thanks in advance
Vijay

Jul 26 '06 #1
2 5348

vj_dba schrieb:
Hi Group,

I have a problem in restoring my tablespace, my database is running in
ARCHIVAL logging, I created a tablespace, did some transaction, then
took the ONLINE BACKUP of the tablespace. Then I dropped the tablespace
and tried to restore from the tablespace backup image, when I do this
it's throwing error

SQL2549N The database was not restored because either all of the table
spaces
in the backup image are inaccessible, or one or more table space names
in list
of table space names to restore are invalid.

so when I drop my tablespace, whether my containers get dropped? if
dropped how should I do the tablespace redirect command.

Thanks in advance
Vijay
A dropped tablespace can only be recovered by restoring the whole
database to a point-in-time before the tablespace was dropped. Reason
is that drop tablespace also deletes information from the system
catalog. This metadata cannot be restored through a tablespace but only
a database restore

HTH
Joachim

Jul 26 '06 #2
Hi Joachim,

Thanks a lot for reply, I now got the reason why I am not able to
restore my tablespace from my tablespace backup image.

Thanks
Vijay

Joachim Klassen wrote:
vj_dba schrieb:
Hi Group,

I have a problem in restoring my tablespace, my database is running in
ARCHIVAL logging, I created a tablespace, did some transaction, then
took the ONLINE BACKUP of the tablespace. Then I dropped the tablespace
and tried to restore from the tablespace backup image, when I do this
it's throwing error

SQL2549N The database was not restored because either all of the table
spaces
in the backup image are inaccessible, or one or more table space names
in list
of table space names to restore are invalid.

so when I drop my tablespace, whether my containers get dropped? if
dropped how should I do the tablespace redirect command.

Thanks in advance
Vijay

A dropped tablespace can only be recovered by restoring the whole
database to a point-in-time before the tablespace was dropped. Reason
is that drop tablespace also deletes information from the system
catalog. This metadata cannot be restored through a tablespace but only
a database restore

HTH
Joachim
Jul 27 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5420
by: Patrick Tan | last post by:
I have a tablespace which is approaching 64 GB (for a single table), i understand that for 4k page sized tablespaces, this is sized tablespace, what's the best way / fastest way to do it ? can redirect restore change page size ? I am looking for suggestions. thanks! Patrick Tan
8
12784
by: Amy DBA | last post by:
OK, I'm stumped now. I need help restoring a tablespace that has been marked offline. Here's a little background on the problem: 1) There was a hardware failure that caused the tablespace to become marked offline: State = 0x4000; Detailed explanation: Offline 2) I tried switching it back online and got this error: DB21034E The command was processed as an SQL statement because it was not a valid Command Line Processor...
7
6278
by: CCC via DBMonster.com | last post by:
We use redirected restore to refresh test from prod on different AIX 5.2 servers. The databases have the same number, size and names of cooked containers. The only difference is the fully qualified path contains a different "SID": eg. "/db2/PRD/data1/..." versus "/db2/TST/data1/...". (Please note as an SAP installation I cannot change this layout). We use "set tablespace container" statements to redefine the fully qualified container...
6
3694
by: hikums | last post by:
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?
6
3682
by: Raj | last post by:
How can we do an online restore of a tablespace using the incremental backup's? we are on a partitioned database... Also, how could we use backup copy made by the load (using the copy to option in load) to revover the tablespace? Thanks, Raj
1
1710
by: Raj | last post by:
How can we restore a tablespace from a Full backup to a new tablespace with out effecting the existing tablespace.. (can we use the redirect option in the backup command for tablespace recovery ???) Thanks, Raj
4
4656
by: Joachim Klassen | last post by:
DB2 V8.2 FP10 on Windows I tested the following HADR scenario: - a new tablespace on a new filesytem is created on the primary System - the replay on standby fails because of lacking permissions - the tablespace is backed up on the primary system - tables are created in the new tablespace and data is inserted (and a couple of logs are archived) - Takeover is done by the standby
3
4388
by: dcruncher4 | last post by:
It is possible that we may be asked to restore a production tape, say 3 yrs later. We would prefer redirect restore for that. I am documenting a process to do a redirect restore. We take production backups via Legato. The big question is that how to get information about tablespace and containers from the tape backup. A search on this told me that db2ckbkp is the command to go for. I tested it on a backup residing on unix file system...
1
4565
by: Sam Durai | last post by:
Env: DB2 v9.1 Server / Win XP. DB is enabled for Archival Logging. Was playing around with rebuild tablespace feature. My database 'CARD' has tablespace named t1,t2,t3. Taken couple of individual tablespace backup as below C:\dir1>db2 "backup db card tablespace(syscatspace,userspace1,t1)" Backup successful. The timestamp for this backup image is : 20070402114435
0
9768
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10808
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10394
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7940
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5774
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5971
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4592
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4191
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.