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 > Drop & Restore

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-08-11, 04:51
IsaarAhmed IsaarAhmed is offline
Registered User
 
Join Date: Jul 2011
Posts: 5
Drop & Restore

I am using DB2 v9.1 windows, I want drop database <a> and do a restore database <a> from a backup dataset for database <b>.

I get the following error

SQL30061N The database alias or database name "<a> " was not
found at the remote node.

The only command I am issuing is a RESTORE

Last edited by IsaarAhmed; 07-08-11 at 05:15.
Reply With Quote
  #2 (permalink)  
Old 07-08-11, 05:04
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Are you issuing any commands that cause this error?


z
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 07-08-11, 06:41
niteshtheone niteshtheone is offline
Registered User
 
Join Date: Jul 2011
Posts: 19
Please share the command you are using
Reply With Quote
  #4 (permalink)  
Old 07-09-11, 15:25
IsaarAhmed IsaarAhmed is offline
Registered User
 
Join Date: Jul 2011
Posts: 5
What I want to do is backup database <b> on server B and restore as database <a> on server A, database <a> already exists. what I did is

1. Backup database <b> on server B and copy the backup to server A.

2. DROP database <a>

3. restore

RESTORE DATABASE database <b>
TAKEN AT timestamp
ON D:\xxxx1,D:\xxxx2,D:\xxxx3
DBPATH ON D:\
INTO database <a>
NEWLOGPATH log path
WITHOUT ROLLING FORWARD
WITHOUT PROMPTING;

I get the error above however if I change the INTO line to
'INTO database <c>' a databse name that does not exists on server A it works fine....
Reply With Quote
  #5 (permalink)  
Old 07-09-11, 19:51
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Did step #2 (drop db) complete successfully or generated some error/warning?


What's the output from:

db2 list db directory
db2 list db directory on d:
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