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 > db marked bad

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-01-09, 03:24
Mathew_paul Mathew_paul is offline
Registered User
 
Join Date: Oct 2007
Posts: 200
db marked bad

hi

database was marked bad log from notify file says

ADM1532E Crash recovery has failed with SQLCODE "-1042".

2009-12-01-12.36.02.716636 Instance:VATPROD Node:000
PID:47216(db2agent (VATPROD) 0) TID:1 Appid:0A9B0126.09F8.091209122746
base sys utilities sqleMarkDBad Probe:10 Database:VATPROD

ADM7518C "VATPROD" marked bad.

server was rebooted and when db was started it started sucessfully when tried connecting error first it gave a I/O error then
its started giving
SQL1042C An unexpected system error occurred. SQLSTATE=58004
tried db2stop and db2start, tried restarting db , tried deactivation and activation, no results , only options to restore wht to know what could have gone wrong , could be some file system must have corrupted
regds
Paul
Reply With Quote
  #2 (permalink)  
Old 12-01-09, 11:35
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
sql1042c is very generic, you need to check db2diag.log to see why crash recovery is failing. Rename your existing db2diag.log (you can use "db2diag -A" command if you like) and connect to the db. If connection fails, you'll see messages about crash recovery being started, using so many agents... and then you'll see the errors (ie. bad page, bad log, etc...). Also, check the system logs for any errors.
Reply With Quote
  #3 (permalink)  
Old 12-02-09, 01:53
Mathew_paul Mathew_paul is offline
Registered User
 
Join Date: Oct 2007
Posts: 200
when u try connecting to db error was updating in notify file and db2diag was not giving any info
"ADM1532E Crash recovery has failed with SQLCODE "-1042".

2009-12-01-12.36.02.716636 Instance:VATPROD Node:000
PID:47216(db2agent (VATPROD) 0) TID:1 Appid:0A9B0126.09F8.091209122746
base sys utilities sqleMarkDBad Probe:10 Database:VATPROD

ADM7518C "VATPROD" marked bad"
--
i doubt on this what happen, as system guy informed tht he has zip the transaction log files for space in the mount point, could this be a reason if it was trying for crash recovery it was not able to find the log files and recovery stopped and db was marked bad, but it should give an error saying not able find the logs or something ??
regds
Paul
Reply With Quote
  #4 (permalink)  
Old 12-02-09, 04:28
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
did you unzip the logs and try again ????
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 12-02-09, 08:09
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Quote:
Originally Posted by Mathew_paul View Post
when u try connecting to db error was updating in notify file and db2diag was not giving any info

Check what the diaglevel is set to.
Reply With Quote
  #6 (permalink)  
Old 12-03-09, 02:52
Mathew_paul Mathew_paul is offline
Registered User
 
Join Date: Oct 2007
Posts: 200
sathya point to think yes unziped the log file still crash recovery failed and gave the same error,,
bella
diag is set to 3
regds
Paul
Reply With Quote
  #7 (permalink)  
Old 12-03-09, 04:23
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Quote:
diag is set to 3
try it with 4 ... that may throw more info .

Have you checked the syslog ... Sometimes you get useful information there
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #8 (permalink)  
Old 12-03-09, 13:44
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Also, check permissions on the db2diag.log - it should be owned by the instance id and at least has rw for the owner. I suppose permissions on the dir is ok if db2 can update the notify log. You should see a lot of information logged with diaglevel 3.


It may also be a good idea to check the ownership/permissions on the log files and make sure db2 can find them in the active log dir (if the problem is related to db2 being unable to find the logs during crash recovery).
Reply With Quote
  #9 (permalink)  
Old 12-03-09, 23:21
Mathew_paul Mathew_paul is offline
Registered User
 
Join Date: Oct 2007
Posts: 200
thanx guys

backup was restored it was development server, so its ok.

regds
Paul
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