Oracle Objects for OLE C++ Class Library
Release 9.2

Part Number A95896-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents

Master Index

Feedback

DestroyDatabasePool Method

Applies To

OSession

Description

This method destroys a pool of database connections.

Usage

oresult DestroyDatabasePool ();

Arguments

None

Remarks

Only one pool can be created per session. An OIP error 4147-Database Pool Already exists for this session will be generated if CreateDatabasePool is called again.

Return Value

An oresult indicating whether the operation succeeded (OSUCCESS) or not (OFAILURE).

Example

This example creates a pool of 2 connections with a maximum of 10 connections, and then destroys it.

OSession osess;

osess.Open();

osess.CreateDatabasePool(2,10,200, "Exampledb",

"scott", "tiger", ODATABASE_DEFAULT);

//Do processing here

...

//Destroy database pool

osess.DestroyDatabsePool();


 
Oracle
Copyright © 1998, 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents

Master Index

Feedback