472,794 Members | 2,107 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,794 software developers and data experts.

The Question about REDIRECT RESTORE

8
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\NODE0000\DB200\T0000000\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 3937

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

Similar topics

6
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.* ....
0
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...
4
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
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...
3
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...
2
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...
2
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....
1
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...
3
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...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.