internal OciLobLocator(OracleConnection connection, OracleType lobType) { this._connection = connection; this._connectionCloseCount = connection.CloseCount; this._lobType = lobType; this._cloneCount = 1; switch (lobType) { case OracleType.BFile: this._descriptor = new OciFileDescriptor(connection.ServiceContextHandle); break; case OracleType.Blob: case OracleType.Clob: case OracleType.NClob: this._descriptor = new OciLobDescriptor(connection.ServiceContextHandle); return; case OracleType.Char: break; default: return; } }
internal int OCILobFileSetNameWrapper(OciHandle envhp, OciHandle errhp, byte[] dirAlias, ushort dirAliasLength, byte[] fileName, ushort fileNameLength) { int num; bool success = false; RuntimeHelpers.PrepareConstrainedRegions(); try { base.DangerousAddRef(ref success); RuntimeHelpers.PrepareConstrainedRegions(); try { } finally { IntPtr handle = base.DangerousGetHandle(); num = System.Data.Common.UnsafeNativeMethods.OCILobFileSetName(envhp, errhp, ref handle, dirAlias, dirAliasLength, fileName, fileNameLength); base.handle = handle; } } finally { if (success) { base.DangerousRelease(); } } return num; }
internal static int OCIAttrSet(OciHandle trgthndlp, OciHandle attributep, uint size, OCI.ATTR attrtype, OciHandle errhp) { if (Bid.AdvancedOn) { Bid.Trace("<oc.OCIAttrSet|ADV|OCI> trgthndlp=0x%-07Ix trghndltyp=%-18ls attributep=0x%-07Ix size=%d attrtype=%-22ls errhp=0x%-07Ix\n", trgthndlp, trgthndlp.HandleType, attributep, size, attrtype, errhp); } return System.Data.Common.UnsafeNativeMethods.OCIAttrSet(trgthndlp, trgthndlp.HandleType, attributep, size, attrtype, errhp); }
internal static int OCIAttrGet(OciHandle trgthndlp, OciHandle attributep, out uint sizep, OCI.ATTR attrtype, OciHandle errhp) { int num = System.Data.Common.UnsafeNativeMethods.OCIAttrGet(trgthndlp, trgthndlp.HandleType, attributep, out sizep, attrtype, errhp); if (Bid.AdvancedOn) { Bid.Trace("<oc.OCIAttrGet|ADV|OCI|RET> trgthndlp=0x%-07Ix trghndltyp=%-18ls attrtype=%-22ls errhp=0x%-07Ix attributep=0x%-18Ix sizep=%2d rc=%d\n", trgthndlp, trgthndlp.HandleType, attrtype, errhp, OciHandle.HandleValueToTrace(attributep), sizep, num); } return num; }
internal static int OCIAttrGet(OciHandle trgthndlp, ref IntPtr attributep, ref uint sizep, OCI.ATTR attrtype, OciHandle errhp) { int num = System.Data.Common.UnsafeNativeMethods.OCIAttrGet(trgthndlp, trgthndlp.HandleType, ref attributep, ref sizep, attrtype, errhp); if (Bid.AdvancedOn) { if (OCI.ATTR.OCI_ATTR_SQLCODE == attrtype) { Bid.Trace("<oc.OCIAttrGet|ADV|OCI|RET> trgthndlp=0x%-07Ix trghndltyp=%-18ls attrtype=%-22ls errhp=0x%-07Ix attributep=%-20ls sizep=%2d rc=%d\n", trgthndlp, trgthndlp.HandleType, attrtype, errhp, trgthndlp.PtrToString(attributep, (int) sizep), sizep, num); return num; } Bid.Trace("<oc.OCIAttrGet|ADV|OCI|RET> trgthndlp=0x%-07Ix trghndltyp=%-18ls attrtype=%-22ls errhp=0x%-07Ix attributep=0x%-18Ix sizep=%2d rc=%d\n", trgthndlp, trgthndlp.HandleType, attrtype, errhp, attributep, sizep, num); } return num; }
internal static int OCIStmtExecute(OciHandle svchp, OciHandle stmtp, OciHandle errhp, int iters, OCI.MODE mode) { if (Bid.AdvancedOn) { Bid.Trace("<oc.OCIStmtExecute|ADV|OCI> svchp=0x%-07Ix stmtp=0x%-07Ix errhp=0x%-07Ix iters=%d rowoff=%d snap_in=0x%-07Ix snap_out=0x%-07Ix mode=0x%x{OCI.MODE}\n", svchp, stmtp, errhp, iters, 0, IntPtr.Zero, IntPtr.Zero, (int) mode); } int num = System.Data.Common.UnsafeNativeMethods.OCIStmtExecute(svchp, stmtp, errhp, (uint) iters, 0, IntPtr.Zero, IntPtr.Zero, mode); if (Bid.AdvancedOn) { Bid.Trace("<oc.OCIStmtExecute|ADV|OCI|RET> rc=%d\n", num); } return num; }
internal static int OCIServerVersion(OciHandle hndlp, OciHandle errhp, NativeBuffer bufp) { if (Bid.AdvancedOn) { Bid.Trace("<oc.OCIServerVersion|ADV|OCI> hndlp=0x%-07Ix errhp=0x%-07Ix bufp=0x%-07Ix bufsz=%d hndltype=%d{OCI.HTYPE}\n", OciHandle.HandleValueToTrace(hndlp), OciHandle.HandleValueToTrace(errhp), NativeBuffer.HandleValueToTrace(bufp), bufp.Length, (int) hndlp.HandleType); } int num = System.Data.Common.UnsafeNativeMethods.OCIServerVersion(hndlp, errhp, bufp, (uint) bufp.Length, (byte) hndlp.HandleType); if (Bid.AdvancedOn) { Bid.Trace("<oc.OCIServerVersion|ADV|OCI|RET> rc=%d\n%ls\n\n", num, hndlp.PtrToString(bufp)); } return num; }
internal static int OCIRowidToChar(OciHandle rowidDesc, NativeBuffer outbfp, ref int bufferLength, OciHandle errhp) { ushort outbflp = (ushort) bufferLength; if (Bid.AdvancedOn) { Bid.Trace("<oc.OCIRowidToChar|ADV|OCI> rowidDesc=0x%-07Ix outbfp=0x%-07Ix outbflp=%d, errhp=0x%-07Ix\n", OciHandle.HandleValueToTrace(rowidDesc), NativeBuffer.HandleValueToTrace(outbfp), outbfp.Length, OciHandle.HandleValueToTrace(errhp)); } int num = System.Data.Common.UnsafeNativeMethods.OCIRowidToChar(rowidDesc, outbfp, ref outbflp, errhp); bufferLength = outbflp; if (Bid.AdvancedOn) { Bid.Trace("<oc.OCIRowidToChar|ADV|OCI|RET> outbfp='%ls' rc=%d\n", outbfp.PtrToStringAnsi(0, outbflp), num); } return num; }
internal static int OCILobWrite(OciHandle svchp, OciHandle errhp, OciHandle locp, ref int amtp, uint offset, IntPtr bufp, uint buflen, byte piece, ushort csid, OCI.CHARSETFORM csfrm) { uint num2 = (uint) amtp; if (Bid.AdvancedOn) { Bid.Trace("<oc.OCILobWrite|ADV|OCI> svchp=0x%-07Ix errhp=0x%-07Ix locp=0x%-07Ix amt=%d offset=%u bufp=0x%-07Ix buflen=%d piece=%d{Byte} ctxp=0x%-07Ix cbfp=0x%-07Ix csid=%d csfrm=%d{OCI.CHARSETFORM}\n", OciHandle.HandleValueToTrace(svchp), OciHandle.HandleValueToTrace(errhp), OciHandle.HandleValueToTrace(locp), amtp, offset, bufp, (int) buflen, piece, IntPtr.Zero, IntPtr.Zero, csid, (int) csfrm); } int num = System.Data.Common.UnsafeNativeMethods.OCILobWrite(svchp, errhp, locp, ref num2, offset, bufp, buflen, piece, IntPtr.Zero, IntPtr.Zero, csid, csfrm); amtp = (int) num2; if (Bid.AdvancedOn) { Bid.Trace("<oc.OCILobWrite|ADV|OCI|RET> amt=%d, rc=%d\n", amtp, num); } return num; }
internal static extern int OCILobAppend(OciHandle svchp, OciHandle errhp, OciHandle dst_locp, OciHandle src_locp);
public OciIntervalDescriptor(OciHandle parent, OciHandleType type, IntPtr newHandle) : base(type, parent, newHandle) { }
public OciLobLocator(OciHandle parent, IntPtr handle) : base(OciHandleType.LobLocator, parent, handle) { }
public OciTransactionHandle(OciHandle parent, IntPtr handle) : base(OciHandleType.Transaction, parent, handle) { }
public OciServerHandle(OciHandle parent, IntPtr newHandle) : base(OciHandleType.Server, parent, newHandle) { }
//OciCredentialType credentialType; #endregion // Fields #region Constructors public OciSessionHandle(OciHandle parent, IntPtr handle) : base(OciHandleType.Session, parent, handle) { }
internal static int OCIStmtFetch(OciHandle stmtp, OciHandle errhp, int nrows, OCI.FETCH orientation, OCI.MODE mode) { if (Bid.AdvancedOn) { Bid.Trace("<oc.OCIStmtFetch|ADV|OCI> stmtp=0x%-07Ix errhp=0x%-07Ix nrows=%d orientation=%d{OCI.FETCH}, mode=0x%x{OCI.MODE}\n", stmtp, errhp, nrows, (int) orientation, (int) mode); } int num = System.Data.Common.UnsafeNativeMethods.OCIStmtFetch(stmtp, errhp, (uint) nrows, orientation, mode); if (Bid.AdvancedOn) { Bid.Trace("<oc.OCIStmtFetch|ADV|OCI|RET> rc=%d\n", num); } return num; }
internal static int OCITransRollback(OciHandle srvhp, OciHandle errhp, OCI.MODE mode) { if (Bid.AdvancedOn) { Bid.Trace("<oc.OCITransRollback|ADV|OCI> srvhp=0x%-07Ix errhp=0x%-07Ix mode=0x%x{OCI.MODE}\n", OciHandle.HandleValueToTrace(srvhp), OciHandle.HandleValueToTrace(errhp), (int) mode); } int num = System.Data.Common.UnsafeNativeMethods.OCITransRollback(srvhp, errhp, mode); if (Bid.AdvancedOn) { Bid.Trace("<oc.OCITransRollback|ADV|OCI|RET> rc=%d\n", num); } return num; }
internal static extern int OCILobClose(OciHandle svchp, OciHandle errhp, OciHandle locp);
internal OciSimpleHandle(OciHandle parent, OCI.HTYPE handleType, IntPtr value) : base(handleType) { base.handle = value; }
internal static extern int OCILobCopy(OciHandle svchp, OciHandle errhp, OciHandle dst_locp, OciHandle src_locp, uint amount, uint dst_offset, uint src_offset);
internal static int OCILobOpen(OciHandle svchp, OciHandle errhp, OciHandle locp, byte mode) { if (Bid.AdvancedOn) { Bid.Trace("<oc.OCILobOpen|ADV|OCI> svchp=0x%-07Ix errhp=0x%-07Ix locp=0x%-07Ix mode=%d\n", OciHandle.HandleValueToTrace(svchp), OciHandle.HandleValueToTrace(errhp), OciHandle.HandleValueToTrace(locp), (int) mode); } int num = System.Data.Common.UnsafeNativeMethods.OCILobOpen(svchp, errhp, locp, mode); if (Bid.AdvancedOn) { Bid.Trace("<oc.OCILobOpen|ADV|OCI|RET> rc=%d\n", num); } return num; }
internal static extern int OCILobCreateTemporary(OciHandle svchp, OciHandle errhp, OciHandle locp, ushort csid, [In, MarshalAs(UnmanagedType.U1)] OCI.CHARSETFORM csfrm, [In, MarshalAs(UnmanagedType.U1)] OCI.LOB_TYPE lobtype, int cache, [In, MarshalAs(UnmanagedType.U2)] OCI.DURATION duration);
internal static int OCILobTrim(OciHandle svchp, OciHandle errhp, OciHandle locp, uint newlen) { if (Bid.AdvancedOn) { Bid.Trace("<oc.OCILobTrim|ADV|OCI> svchp=0x%-07Ix errhp=0x%-07Ix locp=0x%-07Ix newlen=%d\n", OciHandle.HandleValueToTrace(svchp), OciHandle.HandleValueToTrace(errhp), OciHandle.HandleValueToTrace(locp), newlen); } int num = System.Data.Common.UnsafeNativeMethods.OCILobTrim(svchp, errhp, locp, newlen); if (Bid.AdvancedOn) { Bid.Trace("<oc.OCILobTrim|ADV|OCI|RET> rc=%d\n", num); } return num; }
internal static int OCILobAppend(OciHandle svchp, OciHandle errhp, OciHandle dst_locp, OciHandle src_locp) { if (Bid.AdvancedOn) { Bid.Trace("<oc.OCILobAppend|ADV|OCI> svchp=0x%-07Ix errhp=0x%-07Ix dst_locp=0x%-07Ix src_locp=%Id\n", OciHandle.HandleValueToTrace(svchp), OciHandle.HandleValueToTrace(errhp), OciHandle.HandleValueToTrace(dst_locp), OciHandle.HandleValueToTrace(src_locp)); } int num = System.Data.Common.UnsafeNativeMethods.OCILobAppend(svchp, errhp, dst_locp, src_locp); if (Bid.AdvancedOn) { Bid.Trace("<oc.OCILobAppend|ADV|OCI|RET> rc=%d\n", num); } return num; }
internal static int OCIParamGet(OciHandle hndlp, OCI.HTYPE hType, OciHandle errhp, out IntPtr paramdpp, int pos) { int num = System.Data.Common.UnsafeNativeMethods.OCIParamGet(hndlp, hType, errhp, out paramdpp, (uint) pos); if (Bid.AdvancedOn) { Bid.Trace("<oc.OCIParamGet|ADV|OCI|RET> hndlp=0x%-07Ix htype=%-18ls errhp=0x%-07Ix pos=%d paramdpp=0x%-07Ix rc=%d\n", hndlp, hType, errhp, pos, paramdpp, num); } return num; }
internal static int OCILobCreateTemporary(OciHandle svchp, OciHandle errhp, OciHandle locp, [In, MarshalAs(UnmanagedType.U2)] ushort csid, [In, MarshalAs(UnmanagedType.U1)] OCI.CHARSETFORM csfrm, [In, MarshalAs(UnmanagedType.U1)] OCI.LOB_TYPE lobtype, int cache, [In, MarshalAs(UnmanagedType.U2)] OCI.DURATION duration) { if (Bid.AdvancedOn) { Bid.Trace("<oc.OCILobCreateTemporary|ADV|OCI> svchp=0x%-07Ix errhp=0x%-07Ix locp=0x%-07Ix csid=%d csfrm=%d{OCI.CHARSETFORM} lobtype=%d{OCI.LOB_TYPE} cache=%d duration=%d{OCI.DURATION}\n", OciHandle.HandleValueToTrace(svchp), OciHandle.HandleValueToTrace(errhp), OciHandle.HandleValueToTrace(locp), csid, (int) csfrm, (int) lobtype, cache, (int) duration); } int num = System.Data.Common.UnsafeNativeMethods.OCILobCreateTemporary(svchp, errhp, locp, csid, csfrm, lobtype, cache, duration); if (Bid.AdvancedOn) { Bid.Trace("<oc.OCILobCreateTemporary|ADV|OCI|RET> rc=%d\n", num); } return num; }
internal static int OCIServerAttach(OciHandle srvhp, OciHandle errhp, string dblink, int dblink_len, OCI.MODE mode) { if (Bid.AdvancedOn) { Bid.Trace("<oc.OCIServerAttach|ADV|OCI> srvhp=0x%-07Ix errhp=0x%-07Ix dblink='%ls' dblink_len=%d mode=0x%x{OCI.MODE}\n", srvhp, errhp, dblink, dblink_len, (int) mode); } byte[] bytes = srvhp.GetBytes(dblink); int length = bytes.Length; int num = System.Data.Common.UnsafeNativeMethods.OCIServerAttach(srvhp, errhp, bytes, length, mode); if (Bid.AdvancedOn) { Bid.Trace("<oc.OCIServerAttach|ADV|OCI|RET> rc=%d\n", num); } return num; }
internal static int OCILobErase(OciHandle svchp, OciHandle errhp, OciHandle locp, ref uint amount, uint offset) { if (Bid.AdvancedOn) { Bid.Trace("<oc.OCILobErase|ADV|OCI> svchp=0x%-07Ix errhp=0x%-07Ix locp=0x%-07Ix amount=%d, offset=%d\n", OciHandle.HandleValueToTrace(svchp), OciHandle.HandleValueToTrace(errhp), OciHandle.HandleValueToTrace(locp), amount, offset); } int num = System.Data.Common.UnsafeNativeMethods.OCILobErase(svchp, errhp, locp, ref amount, offset); if (Bid.AdvancedOn) { Bid.Trace("<oc.OCILobErase|ADV|OCI|RET> amount=%u, rc=%d\n", amount, num); } return num; }
internal static int OCISessionBegin(OciHandle svchp, OciHandle errhp, OciHandle usrhp, OCI.CRED credt, OCI.MODE mode) { if (Bid.AdvancedOn) { Bid.Trace("<oc.OCISessionBegin|ADV|OCI> svchp=0x%-07Ix errhp=0x%-07Ix usrhp=0x%-07Ix credt=%ls mode=0x%x{OCI.MODE}\n", svchp, errhp, usrhp, credt, (int) mode); } int num = System.Data.Common.UnsafeNativeMethods.OCISessionBegin(svchp, errhp, usrhp, credt, mode); if (Bid.AdvancedOn) { Bid.Trace("<oc.OCISessionBegin|ADV|OCI|RET> rc=%d\n", num); } return num; }
internal static int OCILobFileGetName(OciHandle envhp, OciHandle errhp, OciHandle filep, IntPtr dir_alias, ref ushort d_length, IntPtr filename, ref ushort f_length) { if (Bid.AdvancedOn) { Bid.Trace("<oc.OCILobFileGetName|ADV|OCI> envhp=0x%-07Ix errhp=0x%-07Ix filep=%Id\n", OciHandle.HandleValueToTrace(envhp), OciHandle.HandleValueToTrace(errhp), OciHandle.HandleValueToTrace(filep)); } int num = System.Data.Common.UnsafeNativeMethods.OCILobFileGetName(envhp, errhp, filep, dir_alias, ref d_length, filename, ref f_length); if (Bid.AdvancedOn) { Bid.Trace("<oc.OCILobFileGetName|ADV|OCI|RET> rc=%d, dir_alias='%ls', d_lenght=%d, filename='%ls', f_length=%d\n", num, envhp.PtrToString(dir_alias, d_length), d_length, envhp.PtrToString(filename, f_length), f_length); } return num; }
internal static int OCILobFileSetName(OciHandle envhp, OciHandle errhp, OciFileDescriptor filep, string dir_alias, string filename) { if (Bid.AdvancedOn) { Bid.Trace("<oc.OCILobFileSetName|ADV|OCI> envhp=0x%-07Ix errhp=0x%-07Ix filep=0x%-07Ix dir_alias='%ls', d_length=%d, filename='%ls', f_length=%d\n", OciHandle.HandleValueToTrace(envhp), OciHandle.HandleValueToTrace(errhp), OciHandle.HandleValueToTrace(filep), dir_alias, dir_alias.Length, filename, filename.Length); } byte[] bytes = envhp.GetBytes(dir_alias); ushort length = (ushort) bytes.Length; byte[] fileName = envhp.GetBytes(filename); ushort fileNameLength = (ushort) fileName.Length; int num = filep.OCILobFileSetNameWrapper(envhp, errhp, bytes, length, fileName, fileNameLength); if (Bid.AdvancedOn) { Bid.Trace("<oc.OCILobFileSetName|ADV|OCI|RET> rc=%d\n", num); } return num; }
internal static int OCILobFreeTemporary(OciHandle svchp, OciHandle errhp, OciHandle locp) { if (Bid.AdvancedOn) { Bid.Trace("<oc.OCILobFreeTemporary|ADV|OCI> svchp=0x%-07Ix errhp=0x%-07Ix locp=%Id\n", OciHandle.HandleValueToTrace(svchp), OciHandle.HandleValueToTrace(errhp), OciHandle.HandleValueToTrace(locp)); } int num = System.Data.Common.UnsafeNativeMethods.OCILobFreeTemporary(svchp, errhp, locp); if (Bid.AdvancedOn) { Bid.Trace("<oc.OCILobFreeTemporary|ADV|OCI|RET> rc=%d\n", num); } return num; }
internal static int OCIStmtPrepare(OciHandle stmtp, OciHandle errhp, string stmt, OCI.SYNTAX language, OCI.MODE mode, OracleConnection connection) { if (Bid.AdvancedOn) { Bid.Trace("<oc.OCIStmtPrepare|ADV|OCI> stmtp=0x%-07Ix errhp=0x%-07Ix stmt_len=%d language=%d{OCI.SYNTAX} mode=0x%x{OCI.MODE}\n\t\t%ls\n\n", stmtp, errhp, stmt.Length, (int) language, (int) mode, stmt); } byte[] bytes = connection.GetBytes(stmt, false); uint length = (uint) bytes.Length; int num = System.Data.Common.UnsafeNativeMethods.OCIStmtPrepare(stmtp, errhp, bytes, length, language, mode); if (Bid.AdvancedOn) { Bid.Trace("<oc.OCIStmtPrepare|ADV|OCI|RET> rc=%d\n", num); } return num; }
internal static int OCILobGetLength(OciHandle svchp, OciHandle errhp, OciHandle locp, out uint lenp) { if (Bid.AdvancedOn) { Bid.Trace("<oc.OCILobGetLength|ADV|OCI> svchp=0x%-07Ix errhp=0x%-07Ix locp=%Id\n", OciHandle.HandleValueToTrace(svchp), OciHandle.HandleValueToTrace(errhp), OciHandle.HandleValueToTrace(locp)); } int num = System.Data.Common.UnsafeNativeMethods.OCILobGetLength(svchp, errhp, locp, out lenp); if (Bid.AdvancedOn) { Bid.Trace("<oc.OCILobGetLength|ADV|OCI|RET> len=%u, rc=%d\n", lenp, num); } return num; }
internal static int OraMTSEnlCtxGet(byte[] userName, byte[] password, byte[] serverName, OciHandle pOCISvc, OciHandle pOCIErr, out IntPtr pCtxt) { int num; RuntimeHelpers.PrepareConstrainedRegions(); try { } finally { if (Bid.AdvancedOn) { Bid.Trace("<oc.OraMTSEnlCtxGet|ADV|OCI> userName=..., password=..., serverName=..., pOCISvc=0x%-07Ix pOCIErr=0x%-07Ix dwFlags=0x%08X\n", OciHandle.HandleValueToTrace(pOCISvc), OciHandle.HandleValueToTrace(pOCIErr), 0); } num = System.Data.Common.UnsafeNativeMethods.OraMTSEnlCtxGet(userName, password, serverName, pOCISvc, pOCIErr, 0, out pCtxt); if (Bid.AdvancedOn) { Bid.Trace("<oc.OraMTSEnlCtxGet|ADV|OCI|RET> pCtxt=0x%-07Ix rc=%d\n", pCtxt, num); } } return num; }
internal static int OCILobIsTemporary(OciHandle envhp, OciHandle errhp, OciHandle locp, out int flag) { if (Bid.AdvancedOn) { Bid.Trace("<oc.OCILobIsTemporary|ADV|OCI> envhp=0x%-07Ix errhp=0x%-07Ix locp=%Id\n", OciHandle.HandleValueToTrace(envhp), OciHandle.HandleValueToTrace(errhp), OciHandle.HandleValueToTrace(locp)); } int num = System.Data.Common.UnsafeNativeMethods.OCILobIsTemporary(envhp, errhp, locp, out flag); if (Bid.AdvancedOn) { Bid.Trace("<oc.OCILobIsTemporary|ADV|OCI|RET> flag=%d, rc=%d\n", flag, num); } return num; }
internal static int OCIAttrSet(OciHandle trgthndlp, byte[] attributep, uint size, OCI.ATTR attrtype, OciHandle errhp) { if (Bid.AdvancedOn) { string str; if ((OCI.ATTR.OCI_ATTR_EXTERNAL_NAME == attrtype) || (OCI.ATTR.OCI_ATTR_INTERNAL_NAME == attrtype)) { str = new string(Encoding.UTF8.GetChars(attributep, 0, (int) size)); } else { str = attributep.ToString(); } Bid.Trace("<oc.OCIAttrSet|ADV|OCI> trgthndlp=0x%-07Ix trghndltyp=%-18ls attributep='%ls' size=%d attrtype=%-22ls errhp=0x%-07Ix\n", trgthndlp, trgthndlp.HandleType, str, size, attrtype, errhp); } return System.Data.Common.UnsafeNativeMethods.OCIAttrSet(trgthndlp, trgthndlp.HandleType, attributep, size, attrtype, errhp); }
internal static int OCILobLoadFromFile(OciHandle svchp, OciHandle errhp, OciHandle dst_locp, OciHandle src_locp, uint amount, uint dst_offset, uint src_offset) { if (Bid.AdvancedOn) { Bid.Trace("<oc.OCILobLoadFromFile|ADV|OCI> svchp=0x%-07Ix errhp=0x%-07Ix dst_locp=0x%-07Ix src_locp=0x%-07Ix amount=%u dst_offset=%u src_offset=%u\n", OciHandle.HandleValueToTrace(svchp), OciHandle.HandleValueToTrace(errhp), OciHandle.HandleValueToTrace(dst_locp), OciHandle.HandleValueToTrace(src_locp), amount, dst_offset, src_offset); } int num = System.Data.Common.UnsafeNativeMethods.OCILobLoadFromFile(svchp, errhp, dst_locp, src_locp, amount, dst_offset, src_offset); if (Bid.AdvancedOn) { Bid.Trace("<oc.OCILobLoadFromFile|ADV|OCI|RET> rc=%d\n", num); } return num; }
internal OciRowidDescriptor(OciHandle parent) : base(parent, OCI.HTYPE.OCI_DTYPE_ROWID) { }
public OciServiceHandle(OciHandle parent, IntPtr handle) : base(OciHandleType.Service, parent, handle) { }