473,840 Members | 1,526 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

The Question about REDIRECT RESTORE

8 New Member
I tried to test this process on my personal laptop. Could you help me to take a look where is the problem as below?

1. I created a source database, name: db100 <-- db2 create db db100
2. Collect the source database tablespace containers’ information <-- db2 list tablespace containers for 0 show detail
Then I got as below

Tablespace Containers for Tablespace 0

Container ID = 0
Name = C:\DB2\NODE0000 \DB100\T0000000 \C0000000.CAT
Type = File
Total pages = 16384
Useable pages = 16380
Accessible = Yes


Tablespace Containers for Tablespace 1

Container ID = 0
Name = C:\DB2\NODE0000 \DB100\T0000001 \C0000000.TMP
Type = Path
Total pages = 1
Useable pages = 1
Accessible = Yes


Tablespace Containers for Tablespace 2

Container ID = 0
Name = C:\DB2\NODE0000 \DB100\T0000002 \C0000000.LRG
Type = File
Total pages = 8192
Useable pages = 8160
Accessible = Yes

Tablespace Containers for Tablespace 3

Container ID = 0
Name = C:\DB2\NODE0000 \DB100\T0000003 \C0000000.LRG
Type = File
Total pages = 8192
Useable pages = 8188
Accessible = Yes


Tablespace Containers for Tablespace 4

Container ID = 0
Name = C:\DB2\NODE0000 \DB100\T0000004 \C0000000.UTM
Type = Path
Total pages = 1
Useable pages = 1
Accessible = Yes

3. I have db100 backup file in C:/DB2/BACKUP
4. I plan to use db100 backup to restore a non-exist database, names db200. I follow the process as below
(1) db2 “restore db db100 incremental automatic from C:/DB2/BACKUP/ taken at 20070914143003 into db200 with 4 buffers redirect”
(Message)
SQL1227W A redirected restore operation is being performed. Table space configuration can now be viewed and table space that
do not use automatic storage can have their containers reconfigured.
DB20000I The RESTORE DATABASE command completed successfully.

(2) db2 “set tablespace containers for 0 using (file ‘C:\DB2\NODE000 0\DB200\T000000 0\C0000000.CAT’ 20000)”
(Message)
SQL20319N The SET TABLESPACE CONTAINERS command is not allowed on an automatic storage table space. SQLSTATE=55061 <-- Here is where I stopped.

What's the problem on 4(2)? How can I correct my command? Where is possibly I missed? Do you have suggestion?

Thanks so much. I am very appreciated.
Cheers,
Aug 16 '07 #1
0 4111

Sign in to post your reply or Sign up for a free account.

Similar topics

6
5641
by: Tsai Li Ming | last post by:
Dear all, I have a problem with a redirecting stdout and stderr. I am a top level module and has no control over the imported modules that are making system calls such as os.system or popen2.* . I have tried the simplest method of capturing stdout, stderr via: saveout = sys.stdout sys.stdout = file_obj
0
2089
by: xo55ox | last post by:
Hi, I have been trying to set up an automated restore process from prod to backup server. First, I schedule the full database backup nightly, transfer the backup file and restore it to the database on the backup server. Meanwhile, I leave the database ready to accept transaction log from the transaction log backup at noon daily. And I had used different restore options to test out the transaction that was being applied. And I couldn't...
4
2193
by: Jag | last post by:
Hi all, I am trying to see if backup taken at db2 V7.2 can be restore redirected on V8 any one faced this problem?? regards, jag
11
13606
by: Chris | last post by:
I have searched this group for answers and tried the responses. I am trying to Use an full online backup from our production server and apply it to our test server. The Tablespaces in the productions server are on the d drive and my test server has no d drive. The restore command i am using is: RESTORE DATABASE CENTRAL FROM "C:\DB2Backups" TAKEN AT 20050620000000 INTO CENT0620 REDIRECT;
3
2786
by: jclark0731 | last post by:
I am trying to redirect to the same page after a post-back is fired to ensure that the post-back never makes it into history (avoids the post-back/refresh problem). While doing this, I wish to maintain the view state of the page (page contains dynamic controls as well). Has anybody done this before? I assume that I need to store the viewstate info in session (as the 64-bit encoded string or as the statebag? using sql server session...
2
3705
by: 28tommy | last post by:
Hi there, I'm doing some TELNET and FTP sessions with my scripts. I need to redirect all the output (and not just what I print) to an output file, but still be able to see the session in process on the console. The Console screen is of less importance, so I could give it up, but what I'm looking for is a way to see all the interaction with the remote seesions on a file, that all the console data was redirected to it from within the...
2
5348
by: vj_dba | last post by:
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
1
1854
by: Greg Nash | last post by:
DB2 9.1.3 on Windows. If I take a backup from a system where all DB2 data is on drive D: and try to restore or "create from backup", onto drive E: of another system, I find: - System managed tablespaces can be redirected ok - Database managed tablespaces cannot be redirected, but insist on using drive D:. If drive D: doesn't exist, or is a CD, the restore fails. Is this to be expected?
3
4732
by: sharon.zhang.ca | last post by:
Hi, I'm using the following command to redirect restore from source database AAA into target database BBB: db2 restore db AAA from /DBBACKUP taken at 20080512100655 redirect into BBB without rolling forward Why does it always restore into AAA instead of BBB? What's wrong with my command?
0
9860
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10658
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
10300
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...
0
9437
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7838
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
7023
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5685
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
5874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3138
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.