Developer’s Guide 11g Release 2 (11.2) for ... - Oracle

Oracle? Provider for OLE DB

Developer¡¯s Guide

11g Release 2 (11.2) for Microsoft Windows

E17726-03

July 2013

Oracle Provider for OLE DB Developer's Guide, 11g Release 2 (11.2) for Microsoft Windows

E17726-03

Copyright ? 1999, 2013, Oracle and/or its affiliates. All rights reserved.

Contributors: Janis Greenberg, Eric Belden, Riaz Ahmed, Kiminari Akiyama, Neeraj Gupta, Sinclair Hsu,

Gopal Kirsur, Sunil Mushran, Rajendra Pingte, Helen Slattery, Valarie Moore, Vikhram Shetty, Sujith

Somanathan, Alex Keh, Christian Shay

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, 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 on 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. 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.

Contents

Preface ................................................................................................................................................................ vii

Audience...................................................................................................................................................... vii

Documentation Accessibility .................................................................................................................... vii

Related Documents ................................................................................................................................... viii

Conventions ............................................................................................................................................... viii

What's New in OraOLEDB? ................................................................................................................... ix

New Features in Oracle Provider for OLE DB for Release 11.1.0.7.20 ................................................ ix

New Features in Oracle Provider for OLE DB for Release 11.1............................................................ ix

1 Introduction to Oracle Provider for OLE DB

Overview of OLE DB...............................................................................................................................

OLE DB Design...................................................................................................................................

Overview of OraOLEDB .........................................................................................................................

System Requirements..............................................................................................................................

OraOLEDB Installation...........................................................................................................................

Component Certifications .....................................................................................................................

2

1-1

1-1

1-2

1-3

1-3

1-4

Features of OraOLEDB

OraOLEDB Provider Specific Features ................................................................................................ 2-1

Data Types........................................................................................................................................... 2-1

Binary Data Types....................................................................................................................... 2-2

TIMESTAMP Data Types .......................................................................................................... 2-2

INTERVAL Data Types.............................................................................................................. 2-4

Data Source ......................................................................................................................................... 2-5

Compatibility with OLE DB Services....................................................................................... 2-5

Connecting to an Oracle Database ........................................................................................... 2-6

OraOLEDB-Specific Connection String Attributes ................................................................ 2-7

Default Attribute Values............................................................................................................ 2-8

Distributed Transactions............................................................................................................ 2-8

Enhanced Failover Capability ................................................................................................... 2-8

Operating System Authentication ............................................................................................ 2-9

Password Expiration .................................................................................................................. 2-9

VCharNull................................................................................................................................. 2-10

SPPrmDefVal ............................................................................................................................ 2-10

iii

OraOLEDB Sessions........................................................................................................................

Transactions ..............................................................................................................................

Commands .......................................................................................................................................

Stored Procedures ....................................................................................................................

Preparing Commands .............................................................................................................

Command Parameters.............................................................................................................

OraOLEDB Custom Properties for Commands ..................................................................

Stored Procedures and Functions Returning Rowsets .......................................................

Multiple Rowsets .....................................................................................................................

Statement Caching ...................................................................................................................

Metadata Caching ....................................................................................................................

Command Timeout and Cancel Method ..............................................................................

Rowsets.............................................................................................................................................

To Create Rowsets ...................................................................................................................

Updatability ..............................................................................................................................

Server Data on Insert Property ..............................................................................................

To Search for Rows with IRowsetFind::FindNext...............................................................

OraOLEDB-Specific Connection String Attributes for Rowsets .......................................

Tips for ADO Programmers ...................................................................................................

Schema Rowsets .......................................................................................................................

Date Formats.............................................................................................................................

Case of Object Names..............................................................................................................

LOB Support ....................................................................................................................................

Unicode Support .............................................................................................................................

Types of Unicode Encoding ...................................................................................................

How Oracle Unicode Support Works ...................................................................................

Unicode Support Setup ...........................................................................................................

Errors.................................................................................................................................................

Data Provider Compatibility .................................................................................

Using the Attribute in a Connection String..................................................

Using OraOLEDB Custom Properties...................................................................................

Updating Oracle with DataTable Changes ..........................................................................

Using OraOLEDB with Visual Basic .................................................................................................

Setting Up the Oracle Database ....................................................................................................

Setting Up the Visual Basic Project...............................................................................................

A

Provider-Specific Information

Data Type Mappings in Rowsets and Parameters ............................................................................

Properties Supported..............................................................................................................................

Data Source Properties .....................................................................................................................

DataSourceInfo Properties ...............................................................................................................

Initialization and Authorization Properties ..................................................................................

Session Properties .............................................................................................................................

Rowset Properties .............................................................................................................................

Rowset Property Implications..................................................................................................

Interfaces Supported...............................................................................................................................

Data Source ........................................................................................................................................

iv

2-10

2-11

2-11

2-11

2-12

2-12

2-12

2-15

2-15

2-18

2-18

2-19

2-19

2-19

2-20

2-21

2-21

2-21

2-22

2-22

2-23

2-24

2-24

2-24

2-24

2-25

2-25

2-25

2-26

2-26

2-26

2-27

2-27

2-28

2-28

A-1

A-2

A-2

A-2

A-4

A-5

A-5

A-8

A-8

A-9

Session.................................................................................................................................................

Command...........................................................................................................................................

Rowset.................................................................................................................................................

Multiple Results ..............................................................................................................................

Transaction Options........................................................................................................................

Custom Error Object .......................................................................................................................

MetaData Columns Supported ...........................................................................................................

OraOLEDB Tracing ...............................................................................................................................

Registry Setting for Tracing Calls ................................................................................................

A-9

A-9

A-9

A-10

A-10

A-10

A-10

A-11

A-11

Glossary

Index

v

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download