
Oracle® Objects for OLE Developer's Guide 11g Release 2 (11.2) for Microsoft Windows E17727-04 August 2013 Oracle Objects for OLE Developer's Guide, 11g Release 2 (11.2) for Microsoft Windows E17727-04 Copyright © 1994, 2013, Oracle and/or its affiliates. All rights reserved. Primary Authors: Janis Greenberg, Christian Shay Contributing Authors: Riaz Ahmed, Kiminari Akiyama, Steven Caminez, Naveen Doraiswamy, Neeraj Gupta, Sinclair Hsu, Alex Keh, Chithra Ramamurthy, Ashish Shah, Martha Woo 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 RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictions and license terms set forth in the applicable Government contract, and, to the extent applicable by the terms of the Government contract, the additional rights set forth in FAR 52.227-19, Commercial Computer Software License (December 2007). Oracle USA, Inc., 500 Oracle Parkway, Redwood City, CA 94065. 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 is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. This software 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 .............................................................................................................................................................. xvii What's New in Oracle Objects for OLE? ....................................................................................... xxi 1 Introducing Oracle Objects for OLE Overview of Oracle Objects for OLE ................................................................................................... 1-1 Oracle Objects for OLE In-Process Automation Server.................................................................... 1-2 Oracle Data Control ................................................................................................................................ 1-4 Oracle Objects for OLE C++ Class Library ........................................................................................ 1-4 Required Setups ....................................................................................................................................... 1-5 Installation........................................................................................................................................... 1-5 System Requirements ....................................................................................................................... 1-5 Other Requirements .......................................................................................................................... 1-5 Oracle Objects for OLE File Locations................................................................................................. 1-6 Component Certifications ...................................................................................................................... 1-6 Oracle Objects for OLE Redistributable Files.................................................................................... 1-6 Redistributable File Locations.......................................................................................................... 1-6 Updating Files and Registrations .................................................................................................... 1-7 2 Using Oracle Objects for OLE with Automation Clients Using Automation Clients Overview................................................................................................... 2-1 Demonstration Schema and Code Examples ...................................................................................... 2-1 Demonstration Schema Creation .................................................................................................... 2-2 Demonstration Schema .............................................................................................................. 2-2 Other Schemas............................................................................................................................. 2-2 Related Files ................................................................................................................................ 2-2 Using Oracle Objects for OLE Automation with Visual Basic ....................................................... 2-2 Using OO4O Automation with Active Server Pages (ASP)............................................................. 2-4 Using Oracle Objects for OLE Automation with Excel ................................................................... 2-6 Using Microsoft C++ ............................................................................................................................. 2-8 Using Oracle Data Control with Visual Basic..................................................................................... 2-8 Setting Oracle Data Control Properties with the Properties Window ...................................... 2-9 Setting Oracle Data Control Properties Programmatically ...................................................... 2-11 Using the Oracle Data Control with MS Visual C++ .................................................................... 2-12 iii 3 Basic Features Overview of Client Applications .......................................................................................................... 3-1 Accessing the Oracle Objects for OLE Automation Server.............................................................. 3-1 Obtaining an OraSession Object ...................................................................................................... 3-2 Obtaining an OraServer Object ........................................................................................................ 3-2 Connecting to Oracle Database ............................................................................................................. 3-2 Using OraServer for Connection Multiplexing ............................................................................. 3-3 Executing Commands.............................................................................................................................. 3-3 Queries................................................................................................................................................. 3-3 Data Manipulation Language Statements ...................................................................................... 3-5 Updating Database Records...................................................................................................... 3-6 Deleting Rows from a Table ...................................................................................................... 3-6 Inserting New Rows into a Table ............................................................................................. 3-7 Thread Safety ............................................................................................................................................ 3-7 Using the Connection Pool Management Facility ............................................................................ 3-8 Creating the Connection Pool .......................................................................................................... 3-8 Obtaining from and Returning Objects to the Pool......................................................................
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages744 Page
-
File Size-