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 > Instance Restore

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-23-06, 20:21
ksolomon ksolomon is offline
Registered User
 
Join Date: Jun 2004
Posts: 38
Instance Restore

Just out of curiosity.

Assuming that I have dropped my instance by mistake is it possible to restore it back? (Ofcourse I have not removed the sqllib & its sub-directory)
Reply With Quote
  #2 (permalink)  
Old 02-24-06, 03:32
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
drop instance

which command
if db2idrop has been used, sqllib will be removed from instance owner homedir
the database is not lost..
db2icrt ... to create the instance again
db2 catalog db on /xxx/xx wherever the db was created initially
Hope this will help
__________________
Best Regards, Guy Przytula
DB2/ORA/SQL Services
DB2 DBA & Advanced DBA Certified
DB2 Dprop Certified
http://users.skynet.be/przytula/dbss.html
Reply With Quote
  #3 (permalink)  
Old 02-24-06, 15:43
ksolomon ksolomon is offline
Registered User
 
Join Date: Jun 2004
Posts: 38
oh, If I use db2idrop will it remove the folder as well. Thanks for alerting me about it. That solves lot of my questions. So the bottom line is if I use db2idrop and drop the instance then it cant be restored back. Am I right ?
Reply With Quote
  #4 (permalink)  
Old 02-24-06, 17:54
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
If you drop an instance, the instance is gone, but the databases are still there. The instance is basically the DB2 code (or symbolic links to the DB2 install directory) along with a catalog of included databases.

So you would recreate the instance and catalog the existing database to the new instance.

May you could practice with a new instance that you drop.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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