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 > Issues with DB2 Restore

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-14-06, 07:11
vaddadik vaddadik is offline
Registered User
 
Join Date: Oct 2003
Location: Hyderabad, India
Posts: 14
Question Issues with DB2 Restore

Hi,
I'm working on DB2 8.2.3 on Windows. I have a databsase which need to be restored on a new database server on different system (Same configuration as mine). I want to create a new database with the back up.

I had taken a complete back up of my database and copied the folder structure to the target system in different drive (D.

The data files on my system are on C:

From the target system when I tried to issue db2 restore command from the command prompt it throws out an error
"SQL3282N The supplied credentials are not valid."

I used the command from the folder in which the back up image is present (There are 3 other images present in that back up folder)

D:\DB2BACKUP\<IMGAGE1>>db2 restore database <DB> FROM D:\DB2BACKUP\<IMGAGE1>

Where <IMAGE1> is the folder that contains the database that I did back up from my system.

I tried to perform the same operation from the Control Center its giving DN error as the above.

Can anyone give me steps to perform a restore to a new database from the back up image of the Source system from another system.

Looking for a quick reply.

Thanks
Krishna Vaddadi
Reply With Quote
  #2 (permalink)  
Old 06-14-06, 09:53
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
Restore expects what is in the heading of the file. Do a db2ckbkup -h fn where fn is your filename of backup image to get the full path name etc. for restore. Use the resulting time,filename etc in your restore command.
__________________
mota
Reply With Quote
  #3 (permalink)  
Old 06-14-06, 16:47
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Have you tried "db2 restore database <DB> user <user> using ..."?
Reply With Quote
  #4 (permalink)  
Old 06-14-06, 23:43
vaddadik vaddadik is offline
Registered User
 
Join Date: Oct 2003
Location: Hyderabad, India
Posts: 14
Question

Yes.. i tried all the possible options that db2 restore has given when requested for help..

Also I used the db2 back up check command to get the details like the time stamp and others and grabbed the same from that but it did not help me out..

Can someone throw some pointers on this..

Thanks,
Krishna Vaddadi
Reply With Quote
  #5 (permalink)  
Old 06-15-06, 07:22
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
What was the original backup command ?
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #6 (permalink)  
Old 06-15-06, 10:30
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
Sorry; was way off. Looking at the SQL error
SQL3282N The supplied credentials are not valid.

Explanation:

Either or both the distinguished name (DN) of the user and the
password that were specified were not valid.

This error may occur when a user is running in a Windows 2000
domain environment , which supports LDAP, and logs into a local
account which may not have sufficient authority.

User Response:

Resubmit the command using valid values for both the
distinguished name (DN) of the user and the password.

If you are working in a Windows 2000 domain environment, ensure
that logon with an account that has sufficient authority.
Talk to your admins,ldap admins and ensure you have the rights to do a restore and have access to relevant files.n_i was on the right track.
__________________
mota
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