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 > How to start the data files in other instance?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-20-11, 14:03
ifortunato ifortunato is offline
Registered User
 
Join Date: Jun 2011
Posts: 3
Db2 v7.1 instance crash.

Hi There,

I dont have good notices
The DB2 v7.1 AIX have two instance db2inst1 and db2inst2.
The db2inst2 instance start with error 0000 0011 and it not possible connect the database.
I run the db2dart tool and some erros appear.
About error details I attached the error log files.

Some Questions:

1. Is possible to execute the db2start command with some force parameter?

2. The last backup failed and I believe that the datafiles are good state. Is possible to create a new instance and to use the db2inst2 datafiles? If it possible, How I do?

3. In this scenario how I get the tablespace and object ID?

Thanks Advanced
Attached Files
File Type: txt db2diag.TXT (110.4 KB, 23 views)
File Type: txt DBDESAIX.TXT (987.8 KB, 24 views)

Last edited by ifortunato; 06-20-11 at 14:14.
Reply With Quote
  #2 (permalink)  
Old 06-20-11, 14:49
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by ifortunato View Post
2. The last backup failed and I believe that the datafiles are good state. Is possible to create a new instance and to use the db2inst2 datafiles? If it possible, How I do?

3. In this scenario how I get the tablespace and object ID?

According to the DB2DART report, some catalog objects are damaged. I'm not sure if trying to open this database under another instance will help.

There is no supported way of opening a database under a different instance. I know some people managed to do that but cannot provide much detail. At the minimum you will need to create an instance with the same name, move the entire hierarchy of DB2 files to the same location on the new server (making sure the file and directory ownership and permissions remain the same), then try to catalog the relocated database. There's little chance that this will work though.

Tablespace and object IDs can be found in the DB2DART report.
Reply With Quote
  #3 (permalink)  
Old 06-20-11, 20:39
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
I doubt you will be able to connect to this db. You need to find a good backup image you can restore from or check if you can recreate the db from some other source. If not, you can try db2dart with ddel option to unload the data.
Reply With Quote
  #4 (permalink)  
Old 06-21-11, 11:00
ifortunato ifortunato is offline
Registered User
 
Join Date: Jun 2011
Posts: 3
Thanks for all reply.

BELLO4KA,

The instance process start but when We execute connect do dbdesaix the command fail with several erros:


Crash Recovery is needed.

2011-06-20-11.58.07.350873 Instance:db2inst1 Node:000
PID:26850(db2agent (DBDESAIX)) Appid:*LOCAL.db2inst1.110620142343
recovery_manager sqlpresr Probe:1 DatabaseB2DES
DIA3908W Crash recovery has been initiated. Lowtran LSN is "003E36C2000C",
Minbuff LSN is "003E36C2000C".

2011-06-20-11.58.07.538916 Instance:db2inst1 Node:000
PID:26850(db2agent (DBDESAIX)) Appid:*LOCAL.db2inst1.110620142343
lob_manager sqldxDirectReadAllocMap Probe:15 DatabaseB2DES
DIA3823C A memory error has occurred.

ZRC=FFFFF867

2011-06-20-11.58.07.667254 Instance:db2inst1 Node:000
PID:26850(db2agent (DBDESAIX)) Appid:*LOCAL.db2inst1.110620142343
lob_manager sqldxDirectReadAllocMap Probe:15 DatabaseB2DES

---cut----

n_i, Can I force the DB2 start with catalog corrupted?
Is there is any command for it?
Reply With Quote
  #5 (permalink)  
Old 06-21-11, 20:09
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
You cannot bypass crash recovery without getting help from IBM, but you're on v7 which has been out of support for a very long time.
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