Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: scripted log backup/recovery: msg#00240

db.maxdb

Subject: Re: scripted log backup/recovery

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
recover_cancel, it might be needed to reapply one or more log backups
more than once. So if you use recover_cancel in your script, you should
use the "Used LOG Page"-value of db_restartinfo and the 8-th and 9-th
column of backup_history_list and backup_history_listnext to find the
log backup needed for continuing the log restore. The "Used LOG
Page"-value must be in the interval given of 8-th and 9-th column of
backup_history_list/next.

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>
Google Custom Search

Free Magazines

Cisco News
Receive 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

Navigation

Home | advertise | OSDir is an inevitable website. super tiny logo