cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with MaxDB recovery

elena_abramova
Explorer
0 Kudos

Hello.

I have strange problem with my DB (ver.7.6.06.05). Yesterday (03/12/09) I have restored DB from medium from 01/12/2009 (cold full backup) via recovery function in Database Manager. All is ok, but we have found that DB have restored for the last point (03.12.2009 ), but not to the 01/12/2009.

What does it mean? Can DB restore last log itself or something else? What can I did wrong?

File dbm.knl:

......

4A30DF520004|LOG_000000018|SAVE WARM|2009-06-11 13:14:15|2009-06-11 14:41:19|2009-06-11 14:41:22|2009-06-11 14:44:09| 2376206| 2564944| |SDO_log | 85352| 1| 0| |

4A35DBFE0001|DAT_000000006|SAVE COLD|2009-06-15 09:24:31|2009-06-15 09:24:31|2009-06-15 09:29:12|2009-06-15 12:02:15| 2647800| |NO |SDO_full_adm_after_patch_150609 | 8267936| 1| 0| |

4A647DDC0003|LOG_000000019|SAVE WARM|2009-06-11 14:41:19|2009-07-20 18:23:21|2009-07-20 18:23:24|2009-07-20 18:29:53| 2564945| 2787606| |SDO_log | 85352| 1| 0| |

4B14FB150001|DAT_000000007|SAVE COLD|2009-08-03 21:43:22|2009-08-03 21:43:22|2009-12-01 14:17:17|2009-12-01 15:42:39| 2946778| |NO |SDO_admin_011209 | 8309968| 1| 0| |

4B163E6B0003|LOG_000000020|SAVE WARM|2009-07-20 18:23:21|2009-12-02 13:16:07|2009-12-02 13:16:11|2009-12-02 13:19:23| 2787607| 2977650| |SDO_log | 85352| 1| 0| |

4B17D68F0001|DAT_000000007|RESTORE |2009-08-03 21:43:22|2009-08-03 21:43:22|2009-12-03 18:17:37|2009-12-03 19:49:10| 2946778| |NO |SDO_admin_011209 | 8309968| 1| 0| |

File dbm.prt:

...

2009-12-03 18:12:21 0x00000a24 INF 216 DBMSrv DBM Server client connection (established at 2009-12-03 18:12:18): PID 3944 on computer 192.168.0.230

2009-12-03 18:12:21 0x00000a24 INF 283 DBMSrv Command 'db_execute SELECT ID,CREATEDATE,USEDSIZE ...' is being executed.

2009-12-03 18:12:21 0x00000a24 ERR -24580 DBMSrv ERR_COMMAND_FAILED: Command 'db_execute' has ended and failed with return code -24988.

0x00000a24 ERR -24988 DBMSrv ERR_SQL: SQL error

0x00000a24 ERR -24778 DBMSrv 100,Row not found

2009-12-03 18:12:21 0x00000a24 INF 283 DBMSrv Command 'auto_extend show' is being executed.

2009-12-03 18:12:21 0x00000a24 INF 419 DBMSrv Command 'auto_extend' has ended with return code 0.

2009-12-03 18:12:21 0x00000a24 INF 283 DBMSrv Command 'auto_update_statistics show' is being executed.

2009-12-03 18:12:21 0x00000a24 INF 419 DBMSrv Command 'auto_update_statistics' has ended with return code 0.

2009-12-03 18:13:17 0x00000a24 INF 283 DBMSrv Command 'db_execute SELECT ID,CREATEDATE,USEDSIZE ...' is being executed.

2009-12-03 18:13:17 0x00000a24 ERR -24580 DBMSrv ERR_COMMAND_FAILED: Command 'db_execute' has ended and failed with return code -24988.

0x00000a24 ERR -24988 DBMSrv ERR_SQL: SQL error

0x00000a24 ERR -24778 DBMSrv 100,Row not found

2009-12-03 18:13:17 0x00000a24 INF 283 DBMSrv Command 'auto_extend show' is being executed.

2009-12-03 18:13:17 0x00000a24 INF 419 DBMSrv Command 'auto_extend' has ended with return code 0.

2009-12-03 18:13:17 0x00000a24 INF 283 DBMSrv Command 'auto_update_statistics show' is being executed.

2009-12-03 18:13:17 0x00000a24 INF 419 DBMSrv Command 'auto_update_statistics' has ended with return code 0.

2009-12-03 18:15:41 0x00000a24 INF 283 DBMSrv Command 'db_admin -f' is being executed.

2009-12-03 18:15:57 0x00000a24 INF 419 DBMSrv Command 'db_admin' has ended with return code 0.

2009-12-03 18:15:58 0x00000a24 INF 283 DBMSrv Command 'auto_extend show' is being executed.

2009-12-03 18:15:58 0x00000a24 INF 419 DBMSrv Command 'auto_extend' has ended with return code 0.

2009-12-03 18:15:58 0x00000a24 INF 283 DBMSrv Command 'auto_update_statistics show' is being executed.

2009-12-03 18:15:58 0x00000a24 INF 419 DBMSrv Command 'auto_update_statistics' has ended with return code 0.

2009-12-03 18:16:38 0x00000e68 INF 216 DBMSrv DBM Server client connection (established at 2009-12-03 18:16:38): PID 1812 on computer win2003.docflow.local

2009-12-03 18:16:38 0x00000e68 INF 283 DBMSrv Command 'auto_extend show' is being executed.

2009-12-03 18:16:38 0x00000e68 INF 419 DBMSrv Command 'auto_extend' has ended with return code 0.

2009-12-03 18:16:38 0x00000e68 INF 283 DBMSrv Command 'auto_update_statistics show' is being executed.

2009-12-03 18:16:38 0x00000e68 INF 419 DBMSrv Command 'auto_update_statistics' has ended with return code 0.

2009-12-03 18:17:35 0x00000e68 INF 283 DBMSrv Command 'backup_restore "SDO_admin_011209" DATA' is being executed.

2009-12-03 19:49:10 0x00000e68 INF 419 DBMSrv Command 'backup_restore' has ended with return code 0.

2009-12-03 19:49:10 0x00000e68 INF 283 DBMSrv Command 'auto_extend show' is being executed.

2009-12-03 19:49:10 0x00000e68 INF 419 DBMSrv Command 'auto_extend' has ended with return code 0.

2009-12-03 19:49:10 0x00000e68 INF 283 DBMSrv Command 'auto_update_statistics show' is being executed.

2009-12-03 19:49:10 0x00000e68 INF 419 DBMSrv Command 'auto_update_statistics' has ended with return code 0.

2009-12-03 19:50:06 0x00000e68 INF 283 DBMSrv Command 'db_online -f' is being executed.

2009-12-03 20:03:23 0x00000e68 INF 419 DBMSrv Command 'db_online' has ended with return code 0.

2009-12-03 20:03:24 0x00000e68 INF 283 DBMSrv Command 'db_execute SELECT ID,CREATEDATE,USEDSIZE ...' is being executed.

2009-12-03 20:03:24 0x00000e68 ERR -24580 DBMSrv ERR_COMMAND_FAILED: Command 'db_execute' has ended and failed with return code -24988.

0x00000e68 ERR -24988 DBMSrv ERR_SQL: SQL error

0x00000e68 ERR -24778 DBMSrv 100,Row not found

2009-12-03 20:03:24 0x00000e68 INF 283 DBMSrv Command 'auto_extend show' is being executed.

2009-12-03 20:03:24 0x00000e68 INF 419 DBMSrv Command 'auto_extend' has ended with return code 0.

2009-12-03 20:03:24 0x00000e68 INF 283 DBMSrv Command 'auto_update_statistics show' is being executed.

2009-12-03 20:03:24 0x00000e68 INF 419 DBMSrv Command 'auto_update_statistics' has ended with return code 0.

2009-12-03 20:03:25 0x00000a24 INF 283 DBMSrv Command 'db_execute SELECT ID,CREATEDATE,USEDSIZE ...' is being executed.

2009-12-03 20:03:25 0x00000a24 ERR -24580 DBMSrv ERR_COMMAND_FAILED: Command 'db_execute' has ended and failed with return code -24988.

0x00000a24 ERR -24988 DBMSrv ERR_SQL: SQL error

0x00000a24 ERR -24778 DBMSrv 100,Row not found

2009-12-03 20:03:25 0x00000a24 INF 283 DBMSrv Command 'auto_extend show' is being executed.

2009-12-03 20:03:25 0x00000a24 INF 419 DBMSrv Command 'auto_extend' has ended with return code 0.

2009-12-03 20:03:25 0x00000a24 INF 283 DBMSrv Command 'auto_update_statistics show' is being executed.

2009-12-03 20:03:25 0x00000a24 INF 419 DBMSrv Command 'auto_update_statistics' has ended with return code 0.

2009-12-03 20:03:25 0x00000a24 INF 283 DBMSrv Command 'db_execute SELECT ID,CREATEDATE,USEDSIZE ...' is being executed.

2009-12-03 20:03:25 0x00000a24 ERR -24580 DBMSrv ERR_COMMAND_FAILED: Command 'db_execute' has ended and failed with return code -24988.

0x00000a24 ERR -24988 DBMSrv ERR_SQL: SQL error

0x00000a24 ERR -24778 DBMSrv 100,Row not found

2009-12-03 20:03:25 0x00000a24 INF 283 DBMSrv Command 'auto_extend show' is being executed.

2009-12-03 20:03:25 0x00000a24 INF 419 DBMSrv Command 'auto_extend' has ended with return code 0.

2009-12-03 20:03:25 0x00000a24 INF 283 DBMSrv Command 'auto_update_statistics show' is being executed.

2009-12-03 20:03:25 0x00000a24 INF 419 DBMSrv Command 'auto_update_statistics' has ended with return code 0.

2009-12-03 20:03:49 0x00000e68 INF 226 DBMSrv DBM Server client disconnected: PID 1812 on computer win2003.docflow.local

2009-12-03 20:12:17 0x00000a24 INF 226 DBMSrv DBM Server client disconnected: PID 3944 on computer 192.168.0.230

2009-12-04 09:19:37 0x00000e38 INF 216 DBMSrv DBM Server client connection (established at 2009-12-04 09:19:35): PID 2380 on computer 192.168.0.230

2009-12-04 09:19:37 0x00000e38 INF 283 DBMSrv Command 'db_execute SELECT ID,CREATEDATE,USEDSIZE ...' is being executed.

2009-12-04 09:19:37 0x00000e38 ERR -24580 DBMSrv ERR_COMMAND_FAILED: Command 'db_execute' has ended and failed with return code -24988.

0x00000e38 ERR -24988 DBMSrv ERR_SQL: SQL error

0x00000e38 ERR -24778 DBMSrv 100,Row not found

2009-12-04 09:19:37 0x00000e38 INF 283 DBMSrv Command 'auto_extend show' is being executed.

2009-12-04 09:19:37 0x00000e38 INF 419 DBMSrv Command 'auto_extend' has ended with return code 0.

2009-12-04 09:19:37 0x00000e38 INF 283 DBMSrv Command 'auto_update_statistics show' is being executed.

2009-12-04 09:19:38 0x00000e38 INF 419 DBMSrv Command 'auto_update_statistics' has ended with return code 0.

Edited by: Elena Abramova on Dec 4, 2009 7:59 AM

Accepted Solutions (0)

Answers (1)

Answers (1)

markus_doehr2
Active Contributor
0 Kudos

> I have strange problem with my DB (ver.7.6.06.05). Yesterday (03/12/09) I have restored DB from medium from 01/12/2009 (cold full backup) via recovery function in Database Manager. All is ok, but we have found that DB have restored for the last point (03.12.2009 ), but not to the 01/12/2009.

>

> What does it mean? Can DB restore last log itself or something else? What can I did wrong?

If you restored the system to a database where all the logs between 01/12/09 and 03/12/09 are still available in the database the database will roll forward automatically during restart.

If you want to have the database without those logs you need to "recover with initialization". This means, that the log is formatted (and hence empty).

Markus