MDAC 2.5 SDK - ODBC Driver for Oracle
Adding and Modifying Data Sources Using Setup
A data source identifies a path to data that can include a network library, server, database, and other attributes—in this case, the data source is the path to an Oracle database. To connect to a data source, the Driver Manager checks the Windows registry for specific connection information.
The registry entry created by the ODBC Data Source Administrator is used by the ODBC Driver Manager and ODBC drivers. This entry contains information about each data source and its associated driver. Before you can connect to a data source, its connection information must be added to the registry.
To add and configure data sources, use the ODBC Data Source Administrator. The ODBC Administrator updates your data source connection information. As you add data sources, the ODBC Administrator updates the registry information for you.
To add a data source for Windows
- Open the ODBC Data Source Administrator.
- In the ODBC Data Source Administrator dialog box, click Add. The Create New Data Source dialog box appears.
- Select Microsoft ODBC for Oracle, and then click Finish. The Microsoft ODBC for Oracle Setup dialog box appears.
- In the Data Source Name box, type the name of the data source you want to access. It can be any name that you choose.
- In the Description box, type the description for the driver. This optional field describes the database driver that the data source connects to. It can be any name that you choose.
- In the User Name box, type your database user name (your database user ID).
- In the Server box, type the Database Alias or connect string for the Oracle Server engine that you want to access.
- Click OK to add this data source.
Note The Data Sources dialog box appears, and the ODBC Administrator updates the registry information. The user name and connect string that you typed become the default connection values for this data source when you connect to it.
- Click Options to make more specifications about the ODBC Driver for Oracle setup:
- Translation—Click Select to choose a loaded data translator. The default is <No Translator>.
- Performance—The Include REMARKS in Catalog Functions check box specifies whether the driver returns Remarks columns for the SQLColumns result set. The ODBC Driver for Oracle provides faster access when this value is not set.
The Include SYNONYMS in SQL Columns check box specifies whether the driver returns column information. Buffer Size specifies the size, in bytes, allocated to receive fetched data. The driver optimizes fetching so that one fetch from the Oracle Server returns enough rows to fill a buffer of the specified size. Larger values tend to increase performance when fetching a lot of data.
- Customization—The Enforce ODBC DayOfWeek Standard check box specifies whether the result set will conform to the ODBC specified day-of-week format (Sunday = 1; Saturday = 7). If this check box is cleared, the locale-specific Oracle value is returned.
The SQLDescribeCol always returns a value for precision check box specifies whether or not the driver should return a non-zero value for the cbColDef argument of SQLDescribeCol. This connection string attribute applies only to columns where there is no Oracle-defined scale, such as computed numeric columns and columns defined as NUMBER without a precision or scale. A SQLDescribeCol call returns 130 for the precision when Oracle does not provide that information. If this check box is cleared, the driver will return 0 for these types of columns instead.
- Click Add to add another data source, or click Close to exit.
To modify a data source for Windows
- Open the ODBC Data Source Administrator. Click the appropriate DSN tab.
- Select the Oracle data source you want to modify and then click Configure. The Microsoft ODBC for Oracle Setup dialog box appears.
- Modify the applicable data source fields, and then click OK.
When you have finished modifying the information in this dialog box, the ODBC Administrator updates the registry information.