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

📄 faq.so

📁 berkeley db 4.6.21的源码。berkeley db是一个简单的数据库管理系统
💻 SO
字号:
m4_comment([$Id: faq.so,v 10.22 2006/11/13 18:05:06 bostic Exp $])m4_ref_title(Distributed Transactions,    XA: Frequently Asked Questions,    [XA @FAQ, XA FAQ], xa/xa_config, apprec/intro)m4_nlistbeginm4_nlist([dnlm4_bold([Is it possible to mix XA and non-XA transactions?])m4_p([dnlYes.  It is also possible for XA and non-XA transactions to coexist inthe same m4_db environment.  To do this, specify the same environmentto the non-XA m4_ref(dbenv_open) calls as was specified in the Tuxedoconfiguration file.])])m4_hlm4_nlist([dnlm4_bold([Does converting an application to run within XA change any ofthe already existing C/C++ API calls it does?])m4_p([dnlWhen converting an application to run under XA, the application's m4_dbcalls are unchanged, with three exceptions:])m4_nlistbeginm4_nlist([The application must specify the m4_ref(DB_XA_CREATE) flag tothe m4_ref(dbh_create) function.])m4_nlist([Unless the application is performing an operation for a non-XAtransaction, the application should never explicitly callm4_ref(txn_commit), m4_ref(txn_abort) or m4_ref(txn_begin), and thosecalls should be replaced by calls into the Tuxedo transaction manager.])m4_nlist([Unless the application is performing an operation for a non-XAtransaction, the application should specify a transaction argument of NULLto m4_db methods taking transaction arguments (for example, m4_ref(dbh_put)or m4_ref(dbh_cursor)).])m4_nlistendm4_p([dnlOtherwise, the application should be unchanged.])])m4_hlm4_nlist([dnlm4_bold([How does m4_db recovery interact with recovery by the Tuxedotransaction manager?])m4_p([dnlRecovery is completed in two steps.  First, each resource manager shouldrecover its environment(s).  This can be done via a program that callsm4_ref(dbenv_open) or by calling the m4_ref(db_recover) utility.  Ifusing the m4_ref(db_recover) utility, then the m4_option(e) optionshould be specified so that the regions that are recovered persist afterthe utility exits.  Any transactions that were prepared, but neithercompleted nor aborted, are restored to their prepared state so that theymay be aborted or committed via the Tuxedo recovery mechanisms.  Aftereach resource manager has recovered, then Tuxedo recovery may begin.Tuxedo will interact with each resource manager via the __db_xa_recoverfunction which returns the list of prepared, but not yet completedtransactions. It should issue a commit or abort for each one, and onlyafter having completed each transaction will normal processing resume.])m4_p([dnlFinally, standard log file archival and catastrophic recovery proceduresshould occur independently of XA operation.])])m4_nlistendm4_page_footer

⌨️ 快捷键说明

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