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 > Recover from deletion

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-30-10, 09:25
db2tester db2tester is offline
Registered User
 
Join Date: Jul 2010
Posts: 3
Unhappy Recover from deletion

hi all,

I accidentally deleted the db2 admin folder. Then I copied the whole folder back from the backup. Later, i was trying to update a database, so I tried drop db first, it returned me that the database doesn't exit. So I tried to create one, then it returned that "The database alias already exists in either the localdatabase directory or system database directory." I figured it might be because of the catalog thing. When I was trying to run "catalog db", it actually told me that " ""does not have the authority to perform the requested command". I double checked groups and SYSADM group, I am the admin and uder the SYSADM group. Can anyone please give me some suggestions?

Thanks!
Reply With Quote
  #2 (permalink)  
Old 07-30-10, 09:58
db2tester db2tester is offline
Registered User
 
Join Date: Jul 2010
Posts: 3
I was trying to log in as root and do all the command, but it returned that "root" doesn't have the authority to perform the requests either...
Reply With Quote
  #3 (permalink)  
Old 07-30-10, 12:08
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
When you restored the directory, which user did you use?

Andy
Reply With Quote
  #4 (permalink)  
Old 08-01-10, 20:33
db2tester db2tester is offline
Registered User
 
Join Date: Jul 2010
Posts: 3
I actually simply used FileZilla to restore all the files...
Reply With Quote
  #5 (permalink)  
Old 08-02-10, 00:01
corbokhan corbokhan is offline
Registered User
 
Join Date: Aug 2010
Posts: 1
I have the exact same problem. Would appreciate any help...
Reply With Quote
  #6 (permalink)  
Old 08-02-10, 04:10
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Depending on what FileZilla is doing to the ownerships and privileges of the files, your "recovery" may not have worked because it may have lost suid bits and assigned different file owners. What you should try instead is to user /opt/ibm/db2/V9.x/instance/dasupdt to recover the admin server or /opt/ibm/db2/V9.x/instance/db2iupdt to recover a regular DB2 instance, i.e. the "sqllib" directory. You will have to catalog your databases again since the database directory is stored under ~/sqllib/, which was deleted. So you still have to know the directories of the database files and then use the CATALOG DB command.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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