Export (0) Print
Expand All

OracleLob.BeginBatch Method (OracleLobOpenMode)

Prevents server-side triggers from firing while performing multiple read and write operations in the specified access mode.

Namespace:  System.Data.OracleClient
Assembly:  System.Data.OracleClient (in System.Data.OracleClient.dll)

'Declaration
Public Sub BeginBatch ( _
	mode As OracleLobOpenMode _
)
'Usage
Dim instance As OracleLob 
Dim mode As OracleLobOpenMode

instance.BeginBatch(mode)

Parameters

mode
Type: System.Data.OracleClient.OracleLobOpenMode

Mode (one of the OracleLobOpenMode values) in which the LOB can be accessed between this BeginBatch call and the corresponding EndBatch call.

ExceptionCondition
InvalidOperationException

The connection is closed.

ObjectDisposedException

The object was closed or disposed.

OracleException

An Oracle error has occurred.

To write to the LOB, you must have retrieved the LOB using the FOR UPDATE clause in the SQL SELECT statement, and you must have a local transaction started.

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 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1

Community Additions

ADD
Show:
© 2014 Microsoft