⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 oci.h

📁 SQLAPI C/C++ 连接Oracle 数据库!
💻 H
📖 第 1 页 / 共 5 页
字号:
#define OCI_ATTR_RESERVED_7                 202                  /* reserved */#define OCI_ATTR_ERRONEOUS_COLUMN           203 /* position of erroneous col */#define OCI_ATTR_RESERVED_8                 204                  /* reserved *//* -------------------- 8.2 dpapi support of ADTs continued ---------------- */#define OCI_ATTR_DIRPATH_OBJ_CONSTR         206 /* obj type of subst obj tbl */#define OCI_ATTR_ENV_CHARSET_ID             207         /* charset id in env */#define OCI_ATTR_ENV_NCHARSET_ID            208        /* ncharset id in env */#define OCI_ATTR_ENV_UTF16                  209     /* is env in utf16 mode? */#define OCI_ATTR_RESERVED_9                 210          /* reserved for TMZ */#define OCI_ATTR_RESERVED_10                211                  /* reserved *//* Attr to allow setting of the stream version PRIOR to calling Prepare */#define OCI_ATTR_DIRPATH_STREAM_VERSION     212      /* version of the stream*/#define OCI_ATTR_RESERVED_11                213                  /* reserved *//*------------- Supported Values for Direct Path Stream Version -------------*/#define OCI_DIRPATH_STREAM_VERSION_1        100                   /* default */#define OCI_DIRPATH_STREAM_VERSION_2        200                   /* default *//*------------- Supported Values for protocol for recepient -----------------*/#define OCI_SUBSCR_PROTO_OCI                0                         /* oci */#define OCI_SUBSCR_PROTO_MAIL               1                        /* mail */#define OCI_SUBSCR_PROTO_SERVER             2                      /* server */#define OCI_SUBSCR_PROTO_HTTP               3                        /* http */#define OCI_SUBSCR_PROTO_MAX                4       /* max current protocols *//*------------- Supported Values for presentation for recepient -------------*/#define OCI_SUBSCR_PRES_DEFAULT             0                     /* default */#define OCI_SUBSCR_PRES_XML                 1                         /* xml */#define OCI_SUBSCR_PRES_MAX                 2   /* max current presentations */                                                   /* ----- Temporary attribute value for UCS2/UTF16 character set ID -------- */ #define OCI_UCS2ID            1000                        /* UCS2 charset ID */#define OCI_UTF16ID           1000                       /* UTF16 charset ID *//*============================== End OCI Attribute Types ====================*//*---------------- Server Handle Attribute Values ---------------------------*//* OCI_ATTR_SERVER_STATUS */#define OCI_SERVER_NOT_CONNECTED	0x0 #define OCI_SERVER_NORMAL      		0x1 /*---------------------------------------------------------------------------*//*------------------------- Supported Namespaces  ---------------------------*/#define OCI_SUBSCR_NAMESPACE_ANONYMOUS   0            /* Anonymous Namespace */#define OCI_SUBSCR_NAMESPACE_AQ          1                /* Advanced Queues */#define OCI_SUBSCR_NAMESPACE_MAX         2          /* Max Name Space Number *//*-------------------------Credential Types----------------------------------*/#define OCI_CRED_RDBMS      1                  /* database username/password */#define OCI_CRED_EXT        2             /* externally provided credentials */#define OCI_CRED_PROXY      3                        /* proxy authentication */#define OCI_CRED_RESERVED_1 4                                    /* reserved *//*---------------------------------------------------------------------------*//*------------------------Error Return Values--------------------------------*/#define OCI_SUCCESS 0                      /* maps to SQL_SUCCESS of SAG CLI */#define OCI_SUCCESS_WITH_INFO 1             /* maps to SQL_SUCCESS_WITH_INFO */#define OCI_RESERVED_FOR_INT_USE 200                            /* reserved */ #define OCI_NO_DATA 100                               /* maps to SQL_NO_DATA */#define OCI_ERROR -1                                    /* maps to SQL_ERROR */#define OCI_INVALID_HANDLE -2                  /* maps to SQL_INVALID_HANDLE */#define OCI_NEED_DATA 99                            /* maps to SQL_NEED_DATA */#define OCI_STILL_EXECUTING -3123                   /* OCI would block error */#define OCI_CONTINUE -24200    /* Continue with the body of the OCI function *//*---------------------------------------------------------------------------*//*------------------DateTime and Interval check Error codes------------------*//* DateTime Error Codes used by OCIDateTimeCheck() */#define   OCI_DT_INVALID_DAY         0x1                          /* Bad day */#define   OCI_DT_DAY_BELOW_VALID     0x2      /* Bad DAy Low/high bit (1=low)*/#define   OCI_DT_INVALID_MONTH       0x4                       /*  Bad MOnth */#define   OCI_DT_MONTH_BELOW_VALID   0x8   /* Bad MOnth Low/high bit (1=low) */#define   OCI_DT_INVALID_YEAR        0x10                        /* Bad YeaR */#define   OCI_DT_YEAR_BELOW_VALID    0x20  /*  Bad YeaR Low/high bit (1=low) */#define   OCI_DT_INVALID_HOUR        0x40                       /*  Bad HouR */#define   OCI_DT_HOUR_BELOW_VALID    0x80   /* Bad HouR Low/high bit (1=low) */#define   OCI_DT_INVALID_MINUTE      0x100                     /* Bad MiNute */#define   OCI_DT_MINUTE_BELOW_VALID  0x200 /*Bad MiNute Low/high bit (1=low) */#define   OCI_DT_INVALID_SECOND      0x400                    /*  Bad SeCond */#define   OCI_DT_SECOND_BELOW_VALID  0x800  /*bad second Low/high bit (1=low)*/#define   OCI_DT_DAY_MISSING_FROM_1582 0x1000                                      /*  Day is one of those "missing" from 1582 */#define   OCI_DT_YEAR_ZERO           0x2000       /* Year may not equal zero */#define   OCI_DT_INVALID_TIMEZONE    0x4000                 /*  Bad Timezone */#define   OCI_DT_INVALID_FORMAT      0x8000         /* Bad date format input *//* Interval Error Codes used by OCIInterCheck() */#define   OCI_INTER_INVALID_DAY         0x1                       /* Bad day */#define   OCI_INTER_DAY_BELOW_VALID     0x2  /* Bad DAy Low/high bit (1=low) */#define   OCI_INTER_INVALID_MONTH       0x4                     /* Bad MOnth */#define   OCI_INTER_MONTH_BELOW_VALID   0x8 /*Bad MOnth Low/high bit (1=low) */#define   OCI_INTER_INVALID_YEAR        0x10                     /* Bad YeaR */#define   OCI_INTER_YEAR_BELOW_VALID    0x20 /*Bad YeaR Low/high bit (1=low) */#define   OCI_INTER_INVALID_HOUR        0x40                     /* Bad HouR */#define   OCI_INTER_HOUR_BELOW_VALID    0x80 /*Bad HouR Low/high bit (1=low) */#define   OCI_INTER_INVALID_MINUTE      0x100                  /* Bad MiNute */#define   OCI_INTER_MINUTE_BELOW_VALID  0x200                                             /*Bad MiNute Low/high bit(1=low) */#define   OCI_INTER_INVALID_SECOND      0x400                  /* Bad SeCond */#define   OCI_INTER_SECOND_BELOW_VALID  0x800                                               /*bad second Low/high bit(1=low) */#define   OCI_INTER_INVALID_FRACSEC     0x1000      /* Bad Fractional second */#define   OCI_INTER_FRACSEC_BELOW_VALID 0x2000                                             /* Bad fractional second Low/High *//*------------------------Parsing Syntax Types-------------------------------*/#define OCI_V7_SYNTAX 2       /* V815 language - for backwards compatibility */#define OCI_V8_SYNTAX 3       /* V815 language - for backwards compatibility */#define OCI_NTV_SYNTAX 1    /* Use what so ever is the native lang of server */                     /* these values must match the values defined in kpul.h *//*---------------------------------------------------------------------------*//*------------------------Scrollable Cursor Fetch Options-------------------  * For non-scrollable cursor, the only valid (and default) orientation is  * OCI_FETCH_NEXT */#define OCI_FETCH_CURRENT 0x01               /* refetching current position  */#define OCI_FETCH_NEXT 0x02                                      /* next row */#define OCI_FETCH_FIRST 0x04                  /* first row of the result set */#define OCI_FETCH_LAST 0x08                /* the last row of the result set */#define OCI_FETCH_PRIOR 0x10         /* the previous row relative to current */#define OCI_FETCH_ABSOLUTE 0x20                /* absolute offset from first */#define OCI_FETCH_RELATIVE 0x40                /* offset relative to current */#define OCI_FETCH_RESERVED_1 0x80                                /* reserved *//*---------------------------------------------------------------------------*//*------------------------Bind and Define Options----------------------------*/#define OCI_SB2_IND_PTR   0x01                                     /* unused */#define OCI_DATA_AT_EXEC  0x02                       /* data at execute time */#define OCI_DYNAMIC_FETCH 0x02                          /* fetch dynamically */#define OCI_PIECEWISE     0x04                    /* piecewise DMLs or fetch */#define OCI_DEFINE_RESERVED_1 0x08                               /* reserved */#define OCI_BIND_RESERVED_2   0x10                               /* reserved */#define OCI_DEFINE_RESERVED_2 0x20                               /* reserved *//*---------------------------------------------------------------------------*//*-----------------------------  Various Modes ------------------------------*/#define OCI_DEFAULT         0x00000000                           /* the default value for parameters and attributes *//*-------------OCIInitialize Modes / OCICreateEnvironment Modes -------------*/#define OCI_THREADED        0x00000001      /* appl. in threaded environment */#define OCI_OBJECT          0x00000002  /* application in object environment */#define OCI_EVENTS          0x00000004  /* application is enabled for events */#define OCI_RESERVED1       0x00000008                           /* reserved */#define OCI_SHARED          0x00000010  /* the application is in shared mode */#define OCI_RESERVED2       0x00000020                           /* reserved *//* The following *TWO* are only valid for OCICreateEnvironment call */#define OCI_NO_UCB          0x00000040 /* No user callback called during ini */#define OCI_NO_MUTEX        0x00000080 /* the environment handle will not be */                                         /*  protected by a mutex internally */#define OCI_SHARED_EXT      0x00000100              /* Used for shared forms */#define OCI_CACHE           0x00000200                  /* turn on  DB Cache */#define OCI_ALWAYS_BLOCKING 0x00000400    /* all connections always blocking */#define OCI_NO_CACHE        0x00000800             /* turn off DB Cache mode */#define OCI_USE_LDAP        0x00001000            /* allow  LDAP connections */#define OCI_REG_LDAPONLY    0x00002000              /* only register to LDAP */#define OCI_UTF16           0x00004000        /* mode for all UTF16 metadata */#define OCI_AFC_PAD_ON      0x00008000                              /* turn on AFC blank padding when rlenp present *//*---------------------------------------------------------------------------*//*------------------------OCIConnectionpoolCreate Modes----------------------*/#define OCI_CPOOL_REINITIALIZE 0x111/*---------------------------------------------------------------------------*//*----------------------------- Statement States ----------------------------*/#define OCI_STMT_STATE_INITIALIZED  0x0001#define OCI_STMT_STATE_EXECUTED     0x0002#define OCI_STMT_STATE_END_OF_FETCH 0x0003/*---------------------------------------------------------------------------*//*----------------------------- OCIMemStats Modes ---------------------------*/#define OCI_MEM_INIT        0x01 #define OCI_MEM_CLN         0x02 #define OCI_MEM_FLUSH       0x04 #define OCI_DUMP_HEAP       0x80#define OCI_CLIENT_STATS    0x10 #define OCI_SERVER_STATS    0x20 /*----------------------------- OCIEnvInit Modes ----------------------------*//* NOTE: NO NEW MODES SHOULD BE ADDED HERE BECAUSE THE RECOMMENDED METHOD  * IS TO USE THE NEW OCICreateEnvironment MODES. */#define OCI_ENV_NO_UCB 0x01         /* A user callback will not be called in                                       OCIEnvInit() */#define OCI_ENV_NO_MUTEX 0x08 /* the environment handle will not be protected				 by a mutex internally *//*---------------------------------------------------------------------------*//*------------------------ Prepare Modes ------------------------------------*/#define OCI_NO_SHARING        0x01      /* turn off statement handle sharing */#define OCI_PREP_RESERVED_1   0x02                               /* reserved */#define OCI_PREP_AFC_PAD_ON   0x04          /* turn on blank padding for AFC */#define OCI_PREP_AFC_PAD_OFF  0x08         /* turn off blank padding for AFC *//*---------------------------------------------------------------------------*//*---------------------------------------------------------------------------*//*----------------------- Execution Modes -----------------------------------*/#define OCI_BATCH_MODE        0x01  /* batch the oci statement for execution */#define OCI_EXACT_FETCH       0x02         /* fetch the exact rows specified */#define OCI_KEEP_FETCH_STATE  0x04                                 /* unused */#define OCI_STMT_SCROLLABLE_READONLY 0x08     /* if result set is scrollable */#define OCI_DESCRIBE_ONLY     0x10            /* only describe the statement */#define OCI_COMMIT_ON_SUCCESS 0x20        /* commit, if successful execution */#define OCI_NON_BLOCKING      0x40                           /* non-blocking */#define OCI_BATCH_ERRORS      0x80             /* batch errors in array dmls */#define OCI_PARSE_ONLY        0x100              /* only parse the statement */#define OCI_EXACT_FETCH_RESERVED_1 0x200                         /* reserved */#define OCI_SHOW_DML_WARNINGS 0x400            /* return OCI_SUCCESS_WITH_INFO for delete/update w/no where clause */#define OCI_EXEC_RESERVED_2   0x800                              /* reserved *//*---------------------------------------------------------------------------*//*------------------------Authentication Modes-------------------------------*/#define OCI_MIGRATE         0x0001                /* migratable auth context */#define OCI_SYSDBA          0x0002               /* for SYSDBA authorization */#define OCI_SYSOPER         0x0004              /* for SYSOPER authorization */#define OCI_PRELIM_AUTH     0x0008          /* for preliminary authorization */#define OCIP_ICACHE         0x0010 /* Private OCI cache mode to notify cache */#define OCI_AUTH_RESERVED_1 0x

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -