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 > Restore Database / Credentials Error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-09-04, 10:29
loge loge is offline
Registered User
 
Join Date: Nov 2003
Posts: 30
Restore Database / Credentials Error

Hi,

i want to restore a database. therefor i issued the following command:

RESTORE DATABASE TCI FROM "D:\DB2IMP\backup\db2\" TAKEN AT 20040109015232 TO "D:" INTO TCI_0109 WITH 2 BUFFERS BUFFER 1024 PARALLELISM 1 WITHOUT PROMPTING;

I got this 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.

But i am logged in as DB2admin (my admin user) which should have all privileges available. What am i doing wrong?

Thanks for hints...
Reply With Quote
  #2 (permalink)  
Old 01-09-04, 11:32
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: Restore Database / Credentials Error

Try something similar

RESTORE DATABASE SAMPLE FROM C:\\dev TAKEN AT 20040109163048 TO C: WITH 2 BUFFERS BUFFER 1024 WITHOUT PROMPTING
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 01-09-04, 11:39
loge loge is offline
Registered User
 
Join Date: Nov 2003
Posts: 30
Re: Restore Database / Credentials Error

Quote:
Originally posted by sathyaram_s
Try something similar

RESTORE DATABASE SAMPLE FROM C:\\dev TAKEN AT 20040109163048 TO C: WITH 2 BUFFERS BUFFER 1024 WITHOUT PROMPTING
You mean its because i want to restore into a new database? I will try it, btw the command was created by the RESTORE Wizard in the control center...
Reply With Quote
  #4 (permalink)  
Old 01-09-04, 13:57
loge loge is offline
Registered User
 
Join Date: Nov 2003
Posts: 30
Re: Restore Database / Credentials Error

it worked... dont know why it wasnt ok before though...
Reply With Quote
  #5 (permalink)  
Old 01-09-04, 14:14
anil4321 anil4321 is offline
Registered User
 
Join Date: Feb 2003
Posts: 20
Re: Restore Database / Credentials Error

Your restore command is correct. Looks like your ID does not belong to SYSADM or SYSCTRL privilege and it is not allowing you to restore to a new database. You might be having DBADM on the database.

If my assumption is not true then try the following command:
Your restore command is correct. Looks like your ID does not belong to SYSADM or SYSCTRL privilege and it is not allowing you to restore to a new database. You might be having DBADM on the database.

If my assumption is not true then try the following command:

db2 "RESTORE DATABASE TCI FROM 'D:\DB2IMP\backup\db2\' TAKEN AT 20040109015232 TO 'D:' INTO TCI_0109 WITH 2 BUFFERS BUFFER 1024 PARALLELISM 1 WITHOUT PROMPTING"
Reply With Quote
  #6 (permalink)  
Old 01-09-04, 15:19
loge loge is offline
Registered User
 
Join Date: Nov 2003
Posts: 30
Re: Restore Database / Credentials Error

Quote:
Originally posted by anil4321
Your restore command is correct. Looks like your ID does not belong to SYSADM or SYSCTRL privilege and it is not allowing you to restore to a new database. You might be having DBADM on the database.

If my assumption is not true then try the following command:

db2 "RESTORE DATABASE TCI FROM 'D:\DB2IMP\backup\db2\' TAKEN AT 20040109015232 TO 'D:' INTO TCI_0109 WITH 2 BUFFERS BUFFER 1024 PARALLELISM 1 WITHOUT PROMPTING"
No, the privs were ok, i was logged in as Db2Admin, which is in the Windows Administrator Group and DB2 Var "SYSADM_GROUP" was NULL, so that it takes the Administrator Group from Win32.

What is the difference of your command from mine?
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