|
|
Choosing A Webhost: |
Re: scripted log backup/recovery: msg#00240db.maxdb
hello tilo, all! now, is it correct that the approach is this: scan the output of backup_history_list for the last log id that was succefully imported. then identify all logbackup-files with an extension that is numerically higher than this and recover_start <medium> <extension of file> for each of them.If you end log restores in between individual log files with this log recovery is giving me a headache... i now have a script that looks at backup_history_list of the importing host to determine which was the last log fragment that was successfully imported. then it looks at all available files and tries to insert them using recover_start. the reason for one-file-at-a-time is that i am doing this with dbmcli-calls in a simple shell script. playing around with the dbmcli interactivly i get this impression: look at db_restartinfo to find out what "Used Log Page" the instance currently is at. looking at all available files (medium_label xxx) find out, wich fragment has that page (might be at begin/end of a fragment or in between when recover_cancel was used). even if one fragment ends with this page, recover_start from that fragment and treat -8020 as an ok to recover_replace the next fragment. continue with this with all the fragments you want to insert. this seems to work, but i cannot stop. when i quit dbmcli (or use backup_cancel or recover_cancel) the kernel dies with "ERR 8 Admin ERROR 'cancelled' CAUSED EMERGENCY SHUTDOWN". db_restartinfo and the backup_history_list (after another backup_history_open) show that the log was successfully imported. question: how do i "commit" this backup session without going offline. i cant find a command for that in the 'help' output. question: does that sound like it might be correct? is this actually scriptable? seems i need 'expect' or a more clever script for the complex dbmcli interaction. isnt this supposed to be a standard problem? how do people do that? manually with the dbmgui? thanks for your patience, Raimund -- 7. RedDot Anwendertagung der RedDot Usergroup e.V. am 31.1.2005 Pinuts präsentiert neue Entwicklung, http://www.pinuts.de/news Pinuts media+science GmbH http://www.pinuts.de Dipl.-Inform. Raimund Jacob Raimund.Jacob@xxxxxxxxx Krausenstr. 9-10 voice : +49 30 59 00 90 322 10117 Berlin fax : +49 30 59 00 90 390 Germany -- MaxDB Discussion Mailing List For list archives: http://lists.mysql.com/maxdb To unsubscribe: http://lists.mysql.com/maxdb?unsub=gcdm-maxdb@xxxxxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | SAPDB crash With ERR 53173 B*TREE NOT ftsTemp IN filetype: 68, clovis_wichoski |
|---|---|
| Next by Date: | overloading ambiguity in veo907.cpp, "Döhr, Markus ICC-H" |
| Previous by Thread: | Re: scripted log backup/recovery, Raimund Jacob |
| Next by Thread: | Re: scripted log backup/recovery, Filip Sergeys |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home
| advertise | OSDir is
an inevitable website.
|