473,398 Members | 2,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

DB restore

Hi there,

I am a rookie in DB2. I have tried to do a database restoration on my
system.
Since it should not go directly to our REAL database, I tried to
restore to a dummy database.

Below are my questions,

- should I create this dummy database first before I could restore?
- I also try to put this restoration into a specific logical volume
named /dummy
- these are the commands I used :
db2 restore db life2 from /dev/rmt0 to /dummy into dbtest
db2 restore db life2 from /dev/rmt0 to /dummy

System Info:

1. O/S : AIX 4.3
2. DB2 : Version 5.2
3. Tape : DDS 3
4. REAL db : life2
5. DUMMY db : dbtest
6. LV name : /dummy

some of the error messages: container already in use

Any ideas guys?
Nov 12 '05 #1
1 3830
First, no you do not need to create the target database before doing a
restore. If it does not exist, it will be created automatically.

Second, the "table space inaccessible" error can happen if you have
user-specified paths for tablespaces in the original db. For example, if
you have a tablespace path of "/mytbspace", then tat path will also be
stored in the backup. When you try to restore from that backup, DB2 will
try to put your tablespace in that same path, and if your original
tablespace is already there, there will be a conflict. If this is the case,
you can use the "redirect" keyword on your restore command to specify a
different path for your tablespace, or you can just drop your original
database before attempting the restore.

--
Larry Menard
IBM Workstation Database (DB2) Information Development, Samples Coordinator
Defender of Geese and of All Things Natural
"Hakim" <ha***@pictsolution.com> wrote in message
news:c9**************************@posting.google.c om...
Hi there,

I am a rookie in DB2. I have tried to do a database restoration on my
system.
Since it should not go directly to our REAL database, I tried to
restore to a dummy database.

Below are my questions,

- should I create this dummy database first before I could restore?
- I also try to put this restoration into a specific logical volume
named /dummy
- these are the commands I used :
db2 restore db life2 from /dev/rmt0 to /dummy into dbtest
db2 restore db life2 from /dev/rmt0 to /dummy

System Info:

1. O/S : AIX 4.3
2. DB2 : Version 5.2
3. Tape : DDS 3
4. REAL db : life2
5. DUMMY db : dbtest
6. LV name : /dummy

some of the error messages: container already in use

Any ideas guys?

Nov 12 '05 #2

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

Similar topics

2
by: For example John Smith | last post by:
Is there any reason why SQL Server (EM) would go through all the motions of a restore and not actually do anything at all? To get into this situation I backup from a client's server and download...
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...
3
by: butatista | last post by:
Please help SQL Server 2000 Standard I am trying to restore databases on my server and am unable to get them to restore using the database option. For example, the location of my backup...
4
by: ScottH | last post by:
I am running 7.2 with fixpack 10a under W2K. I got a backup from someone else in an attempt to debug a data issue. The other person created the database with UTF-8 (codepage 1208), so I created a...
2
by: Vikrant | last post by:
Friends, I have read DB2/UDB 8.x 'RESTORE DATABASE Command', with my 'limited' knowledge & skill. I think it should address my concern, but I want advice/ opinion / experience and any care I...
4
by: Hardy | last post by:
hi gurus, now I have to backup and restore a 8 T size db2 database. from two s85 to two 670. the partitions,tablespaces of the db should be redesigned then I plan to use redirected restore. but...
9
by: GL | last post by:
I am running DB2 8.1.1 on AIX 5.1 Having a problem with a redirected restore. Once into the restore continue phase, I immediately get the following “SQL2059W A device full warning was...
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...
0
by: Takpol | last post by:
Hello, I have several archived filegroups that have data in them partitioned based on the date. These filegroups have been removed from database after archival. For example two months ago....
5
by: HSP | last post by:
hi. i need to restore an old database. The db was backed up using a DLT drive, using 2 volumes. The content for the tapes was copied to file onto Solaris machine using rsh and dd (for backup...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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,...
0
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...

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.