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 > Redirected Restore error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-15-08, 03:31
mradsus mradsus is offline
Registered User
 
Join Date: Jul 2008
Posts: 4
Redirected Restore error

Hi All,
I am performing a redirected restore in a multi partitioned environment, version v8.1.
When I issue the redirect option in the restore command, the restore completes successfully.
But, when I issue set table space containers after that, it gives me the following error:
SQL1024N A database connection does not exist.

Any ideas on why this is happening or anyone encountered similar situation.

I would really appreciate your help.
Reply With Quote
  #2 (permalink)  
Old 07-15-08, 07:20
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
The SET CONTAINERS command does not require a database connection, so my guess would be that you have a syntax error. Since you chose not to share the details with us, I am afraid you'll have to find it yourself.
Reply With Quote
  #3 (permalink)  
Old 07-16-08, 02:08
DB2Learner DB2Learner is offline
Registered User
 
Join Date: Jul 2008
Posts: 8
Redirect restore error

Hi,

U can drop the existing database and recretea the dummy database on the same name and on the same path after which u will redirect restore will run fine. I believe it will work
Reply With Quote
  #4 (permalink)  
Old 07-19-08, 06:17
mradsus mradsus is offline
Registered User
 
Join Date: Jul 2008
Posts: 4
Redirected Restore error

Here are the commands that I am runningmulti partitioned on windows)
For the catalog node:
db2_all "<<+0< db2 restore db prod1 from C:\XXX taken at 20080713211652 into prod5_3 replace existing redirect without prompting"

This was successful with this message:
rah: USER
SQL1277N Restore has detected that one or more table space containers are
inaccessible, or has set their state to 'storage must be defined'.
DB20000I The RESTORE DATABASE command completed successfully.

When I set table space containers using this command, it gives me database connection error:
db2 set tablespace containers for 0 using (path E:\DB2\NODE0000\prod5_3\SQLT0000.0')
SQL1024N A database connection does not exist. SQLSTATE=08003

It worked fine for single partitioned environment.But its giving me this error for multipartitioned environment.

Any advice on how to fix this error would be helpful.
Reply With Quote
  #5 (permalink)  
Old 07-19-08, 16:06
DB2Learner DB2Learner is offline
Registered User
 
Join Date: Jul 2008
Posts: 8
Hi,

whenever u face this error and u have to give the set tablespace command immediately after it without executing any of the other commands. I donot know the funda on this but thats how its working. And its also no gurantee that always it should work. I believe u would have followed that


Before restore a through scanning for space should be done on all partitions....
Reply With Quote
  #6 (permalink)  
Old 07-20-08, 02:41
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
I remember there was a setting to be done, to tell that the command should be directed to that specific partition, otherwise it would not know where this set ts statements should be executed
set ....=0 to say which partition
I will have to search for this setting, but I think there is one
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #7 (permalink)  
Old 07-21-08, 10:00
mradsus mradsus is offline
Registered User
 
Join Date: Jul 2008
Posts: 4
Do you know what this setting is for a multi partitioned environment.
As I said, SET TABLESPACES worked fine for a single partitioned environment.
Reply With Quote
  #8 (permalink)  
Old 07-21-08, 10:51
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by przytula_guy
set ....=0 to say which partition
Do you mean DB2NODE, maybe?

You could also use the db2_all script, as you did for the RESTORE command...
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