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

📄 xa_config.so

📁 berkeley db 4.6.21的源码。berkeley db是一个简单的数据库管理系统
💻 SO
字号:
m4_comment([$Id: xa_config.so,v 10.23 2003/06/27 17:38:24 bostic Exp $])m4_ref_title(Distributed Transactions,    Configuring m4_db with the Tuxedo System,    configuring m4_db with the @Tuxedo System,    xa/xa_intro, xa/faq)m4_p([dnlThis information assumes that you have already installed the m4_dblibrary.])m4_p([dnlFirst, you must update the resource manager file in Tuxedo.  For thepurposes of this discussion, assume that the Tuxedo home directory is in])m4_indent([/home/tuxedo])In that case, the resource manager file will be located inm4_indent([/home/tuxedo/udataobj/RM])Edit the resource manager file, adding the linem4_indent([dnlBERKELEY-DB:db_xa_switch:-L${DB_INSTALL}/lib -ldb m4_backslash([])	-lsocket -ldl -lm])m4_p([dnlwhere ${DB_INSTALLHOME} is the directory into which you installed the m4_dblibrary.])m4_p([dnlm4_bold([Note that the previous load options are for a Sun MicrosystemsSolaris 5.6 Sparc installation of Tuxedo, and may not be correct foryour system.])])m4_p([dnlNext, you must build the transaction manager server.  To do this, use theTuxedo m4_manref(buildtms, 1) utility.  The buildtms utility will createthe Berkeley-DB resource manager in the directory from which it was run.The parameters to buildtms should be])m4_indent([buildtms [-v] -o DBRM -r BERKELEY-DB])m4_p([dnlThis will create an executable transaction manager server, DBRM, which iscalled by Tuxedo to process begins, commits, and aborts.])m4_p([dnlFinally, you must make sure that your TUXCONFIG environment variableidentifies an ubbconfig file that properly identifies your resourcemanagers.  In the GROUPS section of the ubb file, you should identify thegroup's LMID and GRPNO, as well as the transaction manager server name"TMSNAME=DBRM."  You must also specify the OPENINFO parameter, setting itequal to the string])m4_indent([rm_name:dir])m4_p([dnlwhere rm_name is the resource name specified in the RM file (that is,BERKELEY-DB) and dir is the directory for the m4_db home environment(see m4_ref(dbenv_open) for a discussion of m4_db environments).])m4_p([dnlBecause Tuxedo resource manager startup accepts only a single stringfor configuration, any environment customization that might have beendone via the config parameter to m4_ref(dbenv_open) must instead be doneby placing a m4_ref(DB_CONFIG) file in the m4_db environment directory.See m4_link(M4RELDIR/ref/env/naming, [m4_db File Naming]) for furtherinformation.])m4_p([dnlConsider the following configuration.  We have built a transactionmanager server, as described previously.  We want the m4_db environmentto be m4_path([/home/dbhome]), our database files to be maintained inm4_path([/home/datafiles]), our log files to be maintained inm4_path([/home/log]), and we want a duplexed server.])m4_p([dnlThe GROUPS section of the ubb file might look like the following])m4_indent([dnlgroup_tm LMID=myname GRPNO=1 TMSNAME=DBRM TMSCOUNT=2 m4_backslash([])	OPENINFO="BERKELEY-DB:/home/dbhome"])m4_p([dnlThere would be a m4_ref(DB_CONFIG) configuration file in the directorym4_path([/home/dbhome]) that contained the following two lines:])m4_indent([dnlset_data_dir	/home/datafilesset_lg_dir	/home/log])m4_p([dnlFinally, the ubb file must be translated into a binary version usingTuxedo's m4_manref(tmloadcf, 1) utility, and then the pathname of thatbinary file must be specified as your TUXCONFIG environment variable.])m4_p([dnlAt this point, your system is properly initialized to use the m4_dbresource manager.])m4_p([dnlSee m4_ref(dbh_create) for further information on accessing data filesusing XA.])m4_page_footer

⌨️ 快捷键说明

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