Connecting to a eXtremeDB「建议收藏」

The eXtremeDB ODBC driver can connect to an eXtremeDB databasein two manners. The first (which we recommended) assumes that the driver actslike a Remote SQL client. This is a thin client that serializes SQL queries anddeserializes the results via a TCP connection to the eXtremeSQL server. Forexample, you may use the xsqlcmd utility or sample xsql, or a customapplication with SQL server enabled.

Secondly, the eXtremeDB ODBC driver can open a database locallyin shared memory. In this case a process which loads the ODBC driver in itsmemory space does direct access to the database in shared memory. In this casea crash of the application (or terminating it inside an opened transaction) cancause corruption of the database.

Both database access methods are described in “Chapter 7:McObject ODBC Driver” of the eXtremeSQL User Guide. Practically, themethod of database access depends on the string “DSN=…;” in the ODBCconfiguration file. If the DSN string has a TCP address semantic like ‘192.168.1.1:5000’or ‘localhost:5000’ (here the substring “:port_number” indicates anaddress), then the ODBC driver acts as a RemoteSQL client and tries to connectto the specified address. When the DSN string specifies just a name with no ‘:’symbol, the ODBC driver tries to connect to a local database in shared memoryby that name.

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/181953.html原文链接:https://javaforall.cn

相关文章

学习编程是顺着互联网的发展潮流,是一件好事。新手如何学习...
IT行业是什么工作做什么?IT行业的工作有:产品策划类、页面...
女生学Java好就业吗?女生适合学Java编程吗?目前有不少女生...
Can’t connect to local MySQL server through socket \'/v...
oracle基本命令 一、登录操作 1.管理员登录 # 管理员登录 ...
一、背景 因为项目中需要通北京网络,所以需要连vpn,但是服...