Beruflich Dokumente
Kultur Dokumente
The ODBC interface allows maximum interoperability—an application can access data in
diverse DBMSs through a single interface. Moreover, that application will be
independent of any DBMS from which it accesses data. Users of the application can add
software components called drivers, which interface between an application and a
specific DBMS.
The Microsoft® ODBC Data Source Administrator manages database drivers and data
sources. On computers running the Microsoft Windows® 2000 operating system, this
application is located in the Windows Control Panel under Administrative Tools. Its icon
is named Data Sources (ODBC).
Drivers are the components that process ODBC requests and return data to the
application. If necessary, drivers modify an application's request into a form that is
understood by the data source. You must use the driver's setup program to add or delete a
driver from your computer.
Data sources are the databases or files accessed by a driver and are identified by a data
source name (DSN). Use the ODBC Data Source Administrator to add, configure, and
delete data sources from your system. The types of data sources that can be used are
described in the following table.
Data
Description
source
User DSNs are local to a computer and can be used only by the current user.
User
They are registered in the HKEY_CURRENT_USER registry subtree.
System DSNs are local to a computer rather than dedicated to a user. The system
System or any user with privileges can use a data source set up with a system DSN.
System DSNs are registered in the HKEY_LOCAL_MACHINE registry subtree.
File DSNs are file-based sources that can be shared among all users who have
the same drivers installed and therefore have access to the database. These data
File sources need not be dedicated to a user nor be local to a computer. File data
source names are not identified by dedicated registry entries; instead, they are
identified by a file name with a .dsn extension.
Managing Data Sources
Adding a file data source is slightly different from adding user or system
data sources. For more information, see the ODBC Data Source
Administrator help file.
Depending on your requirements, you might find it necessary to reconfigure
Modifying
data sources. You can reset options by clicking Configure in any driver
data sources
setup dialog box.
Deleting data
Click Remove after selecting a data source.
sources
At the driver level, connection pooling is enabled by the CPTimeout registry value. This
selective per-driver enabling allows a system administrator to enable connection pooling
for just the drivers that can support it. It is accomplished by setting the default value of
CPTimeout during the driver's setup program.
When the ODBC Driver Manager detects that a database server is unavailable, it waits
for a certain amount of time before attempting to reconnect. You can adjust the waiting
time by setting the Retry Wait time value (in seconds) in the Connection Pooling tab of
the ODBC Data Source Administrator dialog box. Double-click a driver name to set
the connection time-out period.
Performance Monitoring
Performance monitoring tracks connection performance by recording a variety of
statistics. These statistics can be customized by the developer to include items such as the
following:
ODBC Test
Microsoft® ODBC Test is an ODBC-enabled application that you can use to test ODBC
drivers and the ODBC Driver Manager. ODBC 3.51 includes both ANSI and Unicode-
enabled versions of ODBC Test.
Driver writers must be aware that the driver architecture can affect whether an application
can use DBMS-specific SQL.
File-based Drivers
DBMS-Based Drivers
Network Architecture
When a driver is required to work with a variety of data sources, it can be used as
middleware. Heterogeneous join engine architecture can make the driver appear as a
driver manager. Drivers can also be installed on servers, where they can be shared by a
series of clients.
With the ODBC data access component, you can use 16-bit and 32-bit applications with
32-bit drivers. The Microsoft® Windows® 95/98 and Microsoft Windows
NT®/Windows 2000 operating systems support the following combinations of
applications and drivers:
ODBC includes the ODBC components necessary to support the above configurations by
"thunking" dynamic-link libraries (DLLs) to convert 16-bit addresses to 32-bit addresses
and vice versa. The Setup program determines which operating system you are using and
installs ODBC components required by that system. You can also choose to install the
ODBC components used by all systems.
In most cases, porting an application or driver from 16-bit to 32-bit involves five types of
changes:
From an application or driver programming standpoint, the major difference between 16-
bit and 32-bit ODBC components is that they have different file names. From a system
standpoint, the architecture of each application or driver connection is different and the
tools used to manage data sources are different.
The Microsoft® ODBC Driver for Oracle allows you to connect your ODBC-compliant
application to an Oracle database. The ODBC Driver for Oracle conforms to the Open
Database Connectivity (ODBC) specification described in the ODBC Programmer's
Reference. It allows access to PL/SQL packages, XA/DTC integration, and Oracle access
from within Internet Information Services (IIS).
The ODBC Driver for Oracle enables an application to access data in an Oracle database
through the ODBC interface. The driver can access local Oracle databases or it can
communicate with the network through SQL*Net. The following diagram details this
application and driver architecture.
The ODBC Driver for Oracle complies with API Conformance Level
1 and SQL Conformance Level Core. It also supports some functions
in API Conformance Level 2 and most of the grammar in the Core
and Extended SQL conformance levels. The driver is ODBC 2.5
compliant and supports 32-bit systems. Oracle 7.3x is supported fully;
Oracle8 has limited support. The ODBC Driver for Oracle does not
support any of the new Oracle8 data types — Unicode data types,
BLOBs, CLOBs, and so on — nor does it support Oracle's new
Relational Object Model. For more information about supported data
types, see Supported Data Types in this guide.
• A network that connects the computers that run the driver and
the database. The network must support SQL*Net
connections.