Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
40
Добавлен:
16.04.2013
Размер:
4.96 Mб
Скачать

Overview of Oracle Objects for OLE (OO4O)

Example example = new Example(); example.Connect(); example.Close();

}

}

Note: Additional samples are provided in directory ORACLE_

BASE\ORACLE_HOME\ODP.NET\Samples.

Overview of Oracle Objects for OLE (OO4O)

Oracle Objects for OLE (OO4O) is a product designed to allow easy access to data stored in Oracle Database with any programming or scripting language that supports the Microsoft COM Automation and ActiveX technology. This includes Visual Basic, Visual C++, Visual Basic For Applications (VBA), IIS Active Server Pages (VBScript and JavaScript), and others.

See the OO4O online help for detailed information about using OO4O.

Oracle Objects for OLE consists of the following software layers:

OO4O "In-Process" Automation Server

Oracle Data Control

Oracle Objects for OLE C++ Class Library

Figure 1–2, "Software Layers" illustrates the OO4O software components.

1-30 Oracle Database Application Developer's Guide - Fundamentals

Overview of Oracle Objects for OLE (OO4O)

Figure 1–2 Software Layers

 

 

 

Data Aware

 

 

 

 

 

 

ActiveX

 

 

 

 

 

 

Controls

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

C++ Class

 

Oracle Data

 

Automation

 

 

Controllers

Libraries

 

Control

 

 

 

(VB, Excel, ASP)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

COM/DCOM

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OO4O

 

 

 

 

 

 

In-Process

 

 

 

 

 

 

Automation

 

 

 

 

 

 

Server

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Oracle Client

 

 

 

 

 

 

Libraries

 

 

 

 

 

 

(OCI, CORE,

 

 

 

 

 

 

NLS)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Oracle

 

 

 

 

 

 

Database

 

 

 

OO4O Automation Server

The OO4O Automation Server is a set of COM Automation objects for connecting to Oracle Database, executing SQL statements and PL/SQL blocks, and accessing the results.

Unlike other COM-based database connectivity APIs, such as Microsoft ADO, the OO4O Automation Server has been developed and evolved specifically for use with Oracle Database.

It provides an optimized API for accessing features that are unique to Oracle Database and are otherwise cumbersome or inefficient to use from ODBC or OLE database-specific components.

OO4O provides key features for accessing Oracle Database efficiently and easily in environments ranging from the typical two-tier client/server applications, such as those developed in Visual Basic or Excel, to application servers deployed in

Programmatic Environments 1-31

Соседние файлы в папке Oracle 10g