Oracle® Provider for OLE DB Developer's Guide 19c for Microsoft Windows E96615-01 May 2019 Oracle Provider for OLE DB Developer's Guide, 19c for Microsoft Windows E96615-01 Copyright © 1999, 2019, Oracle and/or its affiliates. All rights reserved. Primary Author: Maitreyee Chaliha Contributing Authors: Janis Greenberg, Alex Keh, Eric Belden, Riaz Ahmed, Kiminari Akiyama, Christian Shay, Valarie Moore, Neeraj Gupta, Sinclair Hsu, Gopal Kirsur, Sunil Mushran, Rajendra Pingte, Helen Slattery, Vikhram Shetty, Sujith Somanathan, Mark Williams This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, then the following notice is applicable: U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency- specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs. No other rights are granted to the U.S. Government. This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group. This software or hardware and documentation may provide access to or information about content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services unless otherwise set forth in an applicable agreement between you and Oracle. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services, except as set forth in an applicable agreement between you and Oracle. Contents Preface Audience vii Documentation Accessibility vii Related Documents vii Conventions viii Changes in This Release for Oracle Provider for OLE DB Developer's Guide Changes in Oracle Provider for OLE DB in 12c Release 2 (12.2.0.1) ix Changes in Oracle Provider for OLE DB in ODAC 12c Release 4 ix Changes in Oracle Provider for OLE DB in 12c Release 1 (12.1.0.2) x 1 Introduction to Oracle Provider for OLE DB Overview of OLE DB 1-1 OLE DB Design 1-1 Overview of OraOLEDB 1-2 System Requirements 1-2 OraOLEDB Installation 1-3 Component Certifications 1-4 Connecting to Oracle Database Exadata Express Cloud Service 1-4 2 Features of OraOLEDB OraOLEDB Provider Specific Features 2-1 Data Source 2-1 Compatibility with OLE DB Services 2-2 Connecting to an Oracle Database 2-3 OraOLEDB-Specific Connection String Attributes 2-3 Default Attribute Values 2-5 Distributed Transactions 2-5 Enhanced Failover Capability 2-5 iii Operating System Authentication 2-6 Password Expiration 2-6 VCharNull 2-7 SPPrmDefVal 2-8 OraOLEDB Sessions 2-8 Transactions 2-8 Commands 2-9 Stored Procedures 2-9 Preparing Commands 2-9 Command Parameters 2-9 OraOLEDB Custom Properties for Commands 2-10 Stored Procedures and Functions Returning Rowsets 2-13 Multiple Rowsets 2-13 Statement Caching 2-16 Metadata Caching 2-17 Command Timeout and Cancel Method 2-17 Rowsets 2-18 To Create Rowsets 2-18 Updatability 2-19 Server Data on Insert Property 2-19 To Search for Rows with IRowsetFind::FindNext 2-20 OraOLEDB-Specific Connection String Attributes for Rowsets 2-20 Tips for ADO Programmers 2-21 Schema Rowsets 2-21 Date Formats 2-21 Case of Object Names 2-22 Performing a Fast Load with SQL Server Integration Services 2-22 Data Types 2-23 Binary Data Types 2-23 TIMESTAMP Data Types 2-23 INTERVAL Data Types 2-25 LOB Support 2-26 Unicode Support 2-27 Types of Unicode Encoding 2-27 How Oracle Unicode Support Works 2-27 Unicode Support Setup 2-28 Errors 2-28 OLEDB.NET Data Provider Compatibility 2-29 Using the OLEDB.NET Attribute in a Connection String 2-29 Using OraOLEDB Custom Properties 2-29 Updating Oracle with DataTable Changes 2-30 iv Using OraOLEDB with Visual Basic 2-30 Setting Up the Oracle Database 2-31 Setting Up the Visual Basic Project 2-31 A Provider-Specific Information Data Type Mappings in Rowsets and Parameters A-1 Properties Supported A-2 Data Source Properties A-2 DataSourceInfo Properties A-2 Initialization and Authorization Properties A-4 Session Properties A-5 Rowset Properties A-5 Rowset Property Implications A-8 Interfaces Supported A-9 Data Source A-9 Session A-9 Command A-10 Rowset A-10 Multiple Results A-10 Transaction Options A-10 Custom Error Object A-11 MetaData Columns Supported A-11 OraOLEDB Tracing A-12 Registry Setting for Tracing Calls A-12 Glossary Index v List of Tables 1-1 Oracle Provider for OLE DB Files 1-3 2-1 Custom Properties for Commands 2-10 2-2 Possible Values for Updatability Property 2-18 A-1 Data Type Mappings A-1 A-2 DBPROPSET_DATASOURCE Properties A-2 A-3 DBPROPSET_DATASOURCEINFO Properties A-3 A-4 DBPROPSET_DBINIT Properties A-4 A-5 DBPROPSET_SESSION Properties A-5 A-6 DBPROPSET_ROWSET Properties A-5 vi Preface Based on an open standard, Oracle Provider for OLE DB (OraOLEDB) allows access to Oracle Databases. This documentation describes OraOLEDB's provider-specific features and properties. This document describes the features of Oracle Database for Windows that apply to the Windows operating system. Audience Oracle Provider for OLE DB Developer's Guide is intended for programmers developing applications to access an Oracle Database using Oracle Provider for OLE DB. This documentation is also valuable to systems analysts, project managers, and others interested in the development of database applications. To use this document, you must be familiar with OLE DB and have a working knowledge of application programming using Microsoft C/C++, Visual Basic, or ActiveX Data Objects (ADO). Knowledge of Component Object Model (COM) concepts are also useful. Readers should also be familiar with the use of Structured Query Language (SQL) to access information in relational database systems. Documentation Accessibility For information about Oracle's commitment to accessibility, visit the Oracle Accessibility Program website at http://www.oracle.com/pls/topic/lookup? ctx=acc&id=docacc. Access to Oracle Support Oracle customers that have purchased support have access to electronic support through My Oracle Support. For information, visit http://www.oracle.com/pls/topic/ lookup?ctx=acc&id=info or visit http://www.oracle.com/pls/topic/lookup?ctx=acc&id=trs if you are hearing impaired. Related Documents For more information, see these Oracle resources: • Oracle Database Installation Guide for Microsoft Windows • Oracle Database Release Notes for Microsoft Windows • Oracle Database Platform Guide for Microsoft Windows • Oracle Database Concepts vii Preface • Oracle Services for Microsoft Transaction Server Developer's Guide for Microsoft Windows • Oracle Database Net Services Administrator's Guide • Oracle Database New Features Guide • Oracle Database Reference • Oracle Database Globalization Support Guide • Oracle Database Error Messages for information about Oracle error message. Once you find the specific range, you can search for the specific message. When connected to the Internet, you can search for a specific error message using the error message search feature of the Oracle online documentation. • Oracle Database Sample Schemas for information on how schemas are created and how you can use them yourself. Many of the examples in this book use the sample schemas of the seed database, which is installed by default when you install Oracle. To download free release notes, installation documentation, white papers, or other collateral, please visit the Oracle Technology Network (OTN) http://www.oracle.com/technetwork/index.html For the latest version of the Oracle documentation, including this guide, visit http://www.oracle.com/technetwork/indexes/documentation/index.html For additional information, see: http://www.microsoft.com Conventions The following text conventions are used in this document: Convention Meaning boldface Boldface type indicates graphical user interface elements associated with an action, or terms defined in text or the glossary.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages66 Page
-
File Size-