Export (0) Print
Expand All

OracleLob.BeginBatch Method ()

Prevents server-side triggers from firing while performing multiple read operations.

Namespace: System.Data.OracleClient
Assembly: System.Data.OracleClient (in system.data.oracleclient.dll)

public:
void BeginBatch ()
public void BeginBatch ()
public function BeginBatch ()
Not applicable.

Exception typeCondition

InvalidOperationException

The connection is closed.

ObjectDisposedException

The object was closed or disposed.

OracleException

An Oracle error has occurred.

Opens the LOB in ReadOnly mode; therefore, the LOB can only be read from, not written to, until the corresponding call to EndBatch. To perform batch writes to the LOB, call BeginBatch with ReadWrite.

Calling BeginBatch more than one time within the same transaction currently throws the Oracle "ORA-22293: LOB already opened in the same transaction" error. In addition, if you obtain the LOB using another OracleDataReader, and the original caller has not called the EndBatch method, the same error is generated. Therefore, you must call the EndBatch method when you are finished using the OracleLob.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1

Community Additions

ADD
Show:
© 2015 Microsoft