⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 process.so

📁 berkeley db 4.6.21的源码。berkeley db是一个简单的数据库管理系统
💻 SO
字号:
m4_comment([$Id: process.so,v 1.15 2006/10/09 16:51:34 bostic Exp $])m4_ref_title(Upgrading m4_db Applications,    Upgrading m4_db installations,,    upgrade/version, changelog/toc)m4_p([dnlThe following information describes the general process of upgradingm4_db installations.  There are four areas to be considered whenupgrading m4_db applications and database environments: the applicationAPI, the database environment's region files, the underlying databaseformats, and, in the case of transactional database environments, thelog files.  The upgrade procedures required depend on whether or notthe release is a major or minor release (in which either the major orminor number of the version changed), or a patch release (in which onlythe patch number in the version changed).  m4_db major and minorreleases may optionally include changes in all four areas, that is, theapplication API, region files, database formats, and log files may notbe backward-compatible with previous releases.])m4_p([dnlEach m4_db major or minor release has information in this chapter ofthe Reference Guide, describing how to upgrade to the new release.  Thesection describes any API changes made in the release.  Applicationmaintainers should review the API changes and update their applicationsas necessary before recompiling with the new release.  In addition, eachsection includes a page specifying whether the log file format ordatabase formats changed in non-backward-compatible ways as part of therelease.  Because there are several underlying m4_db database formats,and they do not all necessarily change in the same release, changes toa database format in a release may not affect any particularapplication.  Further, database and log file formats may have changedbut be entirely backward-compatible, in which case no upgrade will benecessary.])m4_p([dnlA m4_db patch release will never modify the API, regions, log files, ordatabase formats in incompatible ways, and so applications need only berelinked (or, in the case of a shared library, pointed at the newversion of the shared library) to upgrade to a new release.  Note thatinternal m4_db interfaces may change at any time and in any release(including patch releases) without warning.  This means the library mustbe entirely recompiled and reinstalled when upgrading to new releasesof the library because there is no guarantee that modules from oneversion of the library will interact correctly with modules from anotherrelease.  We recommend using the same compiler release when buildingpatch releases as was used to build the original release; in the defaultconfiguration, the m4_db library shares data structures from underlyingshared memory between threads of control, and should the compilerre-order fields or otherwise change those data structures between thetwo builds, errors may result.])m4_p([If the release is a patch release, do the following:])m4_nlistbeginm4_nlist([Shut down the old version of the application.])m4_nlistns([dnlInstall the new version of the application by relinking or installinga new version of the m4_db shared library.])m4_nlistns([Restart the application.])m4_nlistendm4_p([dnlOtherwise, if the application m4_bold(does not) have a m4_dbtransactional environment, the application may be installed in the fieldusing the following steps:])m4_nlistbeginm4_nlist([Shut down the old version of the application.])m4_nlistns([dnlRemove any m4_db environment using the m4_refT(dbenv_remove) or anappropriate system utility.])m4_nlistns([Recompile and install the new version of the application.])m4_nlistns([dnlIf necessary, upgrade the application's databases.  Seem4_link(M4RELDIR/ref/am/upgrade, Upgrading databases) for moreinformation.])m4_nlistns([Restart the application.])m4_nlistendm4_p([dnlOtherwise, if the application has a m4_db transactional environment,but neither the log file nor database formats need upgrading, theapplication may be installed in the field using the following steps:])m4_nlistbeginm4_nlist([Shut down the old version of the application.])m4_nlistns([dnlRun recovery on the database environment using the m4_refT(dbenv_open)or the m4_ref(db_recover) utility.])m4_nlistns([dnlRemove any m4_db environment using the m4_refT(dbenv_remove) or anappropriate system utility.])m4_nlistns([Recompile and install the new version of the application.])m4_nlistns([Restart the application.])m4_nlistendm4_p([dnlIf the application has a m4_db transactional environment, and the logfiles need upgrading but the databases do not, the application may beinstalled in the field using the following steps:])m4_nlistbeginm4_nlist([Shut down the old version of the application.])m4_nlistns([dnlStill using the old version of m4_db, run recovery on the databaseenvironment using the m4_refT(dbenv_open) or the m4_ref(db_recover)utility.])m4_nlistns([dnlIf you used the m4_refT(dbenv_open) to run recovery, make sure that them4_db environment is removed using the m4_refT(dbenv_remove) or anappropriate system utility. ])m4_nlistns([dnlArchive the database environment for catastrophic recovery.  Seem4_link(M4RELDIR/ref/transapp/archival, Archival procedures) for moreinformation.])m4_nlistns([Recompile and install the new version of the application.])m4_nlistns([Force a checkpoint using the m4_refT(txn_checkpoint) or them4_ref(db_checkpoint) utility. If you use the m4_ref(db_checkpoint)utility, make sure to use the new version of the utility; that is, theversion that came with the release of m4_db to which you are upgrading.])m4_nlistns([Restart the application.])m4_nlistendm4_p([dnlOtherwise, if the application has a m4_db transactional environment andthe databases need upgrading, the application may be installed in thefield using the following steps:])m4_nlistbeginm4_nlist([Shut down the old version of the application.])m4_nlistns([dnlStill using the old version of m4_db, run recovery on the databaseenvironment using the m4_refT(dbenv_open) or the m4_ref(db_recover)utility.])m4_nlistns([dnlIf you used the m4_refT(dbenv_open) to run recovery, make sure that them4_db environment is removed using the m4_refT(dbenv_remove) or anappropriate system utility. ])m4_nlistns([dnlArchive the database environment for catastrophic recovery.  Seem4_link(M4RELDIR/ref/transapp/archival, Archival procedures) for moreinformation.])m4_nlistns([Recompile and install the new version of the application.])m4_nlistns([dnlUpgrade the application's databases.  Seem4_link(M4RELDIR/ref/am/upgrade, Upgrading databases) for moreinformation.])m4_nlistns([dnlArchive the database for catastrophic recovery again (using differentmedia than before, of course).  Note: This archival is not strictlynecessary.  However, if you have to perform catastrophic recovery afterrestarting the application, that recovery must be done based on thelast archive you have made.  If you make this second archive, you canuse it as the basis of that catastrophic recovery.  If you do not makethis second archive, you have to use the archive you made in step 4 asthe basis of your recovery, and you have to do a full upgrade on itbefore you can apply log files created after the upgrade to it.])m4_nlistns([Force a checkpoint using the m4_refT(txn_checkpoint) or them4_ref(db_checkpoint) utility. If you use the m4_ref(db_checkpoint)utility, make sure to use the new version of the utility; that is, theversion that came with the release of m4_db to which you are upgrading.])m4_nlistns([Restart the application.])m4_nlistendm4_p([dnlFinally, upgrading a m4_db replication group requires a few additionalsteps.  To upgrade a replication group, you must:])m4_nlistbeginm4_nlist([Bring all clients up to date with the master (that is, allclients must be brought up to the most current log record as measuredby the master's log sequence number (LSN)).])m4_nlistns([Perform the upgrade procedures described previously on eachof the individual database environments that are part of the replicationgroup.])m4_nlistns([Restart the replication group.])m4_nlistendm4_p([dnlAlternatively, it may be simpler to discard the contents of all of theclient database environments, upgrade the master database environment,and then re-add all of the clients to the replication group using thestandard replication procedures for new sites.])m4_page_footer

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -