cdrerr.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. /***************************************************************************
  2. *
  3. * Licensed Materials - Property of IBM and/or HCL
  4. *
  5. * __IFMX_DBSERVER_FULLNAME__
  6. * Copyright IBM Corporation 1996, 2012
  7. * (c) Copyright HCL Technologies Ltd. 2017. All Rights Reserved.
  8. *
  9. * Title: cdrerr.h
  10. * Description: return codes for CDR api
  11. *
  12. ***************************************************************************
  13. */
  14. #ifndef CDRERR_DOT_H
  15. #define CDRERR_DOT_H
  16. /*
  17. WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING W
  18. W W
  19. W See warning at end of this file W
  20. W W
  21. WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING W
  22. */
  23. extern char cdr_errmsgstr[];
  24. #define CDR_SUCCESS 0 /* command successful */
  25. #define CDR_ENOCONNECT 1 /* no connection for the specified server */
  26. #define CDR_EOPENQUEUE 2 /* Can Not Open Queue */
  27. #define CDR_ECOLUNDEF 3 /* table column undefined */
  28. #define CDR_ECOMPAT 4 /* incompatible server version */
  29. #define CDR_ECONNECT 5 /* unable to connect to server specified */
  30. #define CDR_EDBDNE 6 /* database does not exist */
  31. #define CDR_EDBLOG 7 /* database not logged */
  32. #define CDR_EFREQ 8 /* Bad or mismatched frequency attributes */
  33. #define CDR_ECONNECTED 9 /* already connected to specified server */
  34. #define CDR_EGRPSTATE 10 /* illegal group state change */
  35. #define CDR_EGRPUNDEF 11 /* undefined replicateset */
  36. #define CDR_ENAMEUNIQ 12 /* name already in use */
  37. #define CDR_EIDLE 13 /* invalid idle time */
  38. #define CDR_EINVOP 14 /* invalid operator or specifier */
  39. #define CDR_ELEN 15 /* future use */
  40. #define CDR_EGRPNOPART 16 /* replication not participating in group */
  41. #define CDR_ENOPART 17 /* participants required for operation specified */
  42. #define CDR_ENOPKEY 18 /* table does not contain primary key */
  43. #define CDR_ENOERKEY CDR_ENOPKEY
  44. #define CDR_EOWNER 19 /* table does not exist */
  45. #define CDR_EPACTIVE 20 /* server already participating in replicate */
  46. #define CDR_ETIMEOUT 21 /* command timed out */
  47. #define CDR_EPKEYSELCT 22 /* primary key not contained in select clause */
  48. #define CDR_EPARTINGRP 23 /* Already a member of the replset */
  49. #define CDR_ERECVQ 24 /* Dbspace for receive queue does not exist */
  50. #define CDR_EREPACTIVE 25 /* replicate already participating in a group */
  51. #define CDR_EREPDEF 26 /* group operation not permitted on replicate */
  52. #define CDR_EREPLSYN 27 /* future use */
  53. #define CDR_EREPLUNIQ 28 /* replicate name already in use */
  54. #define CDR_ETBLDNE 29 /* table does not exist */
  55. #define CDR_EREPSTATE 30 /* illegal replicate state change */
  56. #define CDR_EREPUNDEF 31 /* undefined replicate */
  57. #define CDR_ESENDQ 32 /* dbspace specified for the send queue does
  58. not exist */
  59. #define CDR_ESERVDEF 33 /* server not participant in replicate/group */
  60. #define CDR_ESERVMAX 34 /* not used */
  61. #define CDR_ESERVRESOLV 35 /* server not defined in sqlhosts */
  62. #define CDR_ESERVSET 36 /* disjoint servers for replicates */
  63. #define CDR_ESERVUNDEF 37 /* undefined server */
  64. #define CDR_ESPDNE 38 /* stored procedure does not exist */
  65. #define CDR_ESQLSYN 39 /* illegal select syntax */
  66. #define CDR_ESQLUNSUP 40 /* unsupported SQL syntax (join, etc..) */
  67. #define CDR_ECODESET 41 /* Cannot find codeset conversion table from/to UTF8 */
  68. #define CDR_ETIME 42 /* invalid time */
  69. #define CDR_EVALID 43 /* participants required for specified operation */
  70. #define CDR_ENAMERR 44 /* illegal name syntax */
  71. #define CDR_EPART 45 /* invalid participant */
  72. #define CDR_EREPL 46 /* future use */
  73. #define CDR_ESERV 47 /* invalid server */
  74. #define CDR_ENOMEM 48 /* out of memory */
  75. #define CDR_EREPMAX 49 /* maximum number of replicates exceeded */
  76. #define CDR_EPARTMAX 50 /* maximum participants */
  77. #define CDR_ERUMOR 51 /* attempt to delete server remotely */
  78. #define CDR_ESERVUNIQ 52 /* server name already in use */
  79. #define CDR_EDUPL 53 /* duplicate server or replicate */
  80. #define CDR_EBADCRULE 54 /* Bad conflict rule specified */
  81. #define CDR_ENOSCOPE 55 /* Resolution scope not specified */
  82. #define CDR_ESCOLSDNE 56 /* Shadow columns do not exist for table */
  83. #define CDR_ECRDELTAB 57 /* Error creating delete table */
  84. #define CDR_ENOCRULE 58 /* No conflict resolution rule specified */
  85. #define CDR_EBADSCOLS 59 /* Table has badtype for shadow columns or has
  86. shadow columns at wrong place */
  87. #define CDR_EGRPPART 60 /* illegal operation on group participant */
  88. #define CDR_ENOPERM 61 /* user doesn't have permission to issue command */
  89. #define CDR_ENOCDR 62 /* CDR not active */
  90. #define CDR_ECDR 63 /* CDR already active */
  91. #define CDR_ENOSYNC 64 /* remote/cyclic synchronization not allowed */
  92. #define CDR_ESERVID 65 /* server identifier already in use */
  93. #define CDR_ENOTIME 66 /* No upper time for prune error */
  94. #define CDR_ERRNOTFOUND 67 /* Error not found for delete or update */
  95. #define CDR_EPARTMODE 68 /* illegal participant mode */
  96. #define CDR_ECONFLICT 69 /* conflict mode for replicate not ignore */
  97. #define CDR_ECONSAME 70 /* connect/disconnect to/from same server */
  98. #define CDR_EROOT 71 /* conflicting root server flags */
  99. #define CDR_EPARENT 72 /* cannot delete server with children */
  100. #define CDR_ESPAROOT 73 /* leaf-root configuration not allowed */
  101. #define CDR_ELIMITED 75 /* request denied on limited server */
  102. #define CDR_EMSGFORMAT 76 /* unsupported message format */
  103. #define CDR_EDROPDB 77 /* couldn't drop syscdr database (sqerr -425) */
  104. #define CDR_EATSDIR 78 /* ATS directory does not exist */
  105. #define CDR_ERISDIR 79 /* RIS directory does not exist */
  106. #define CDR_ECRCHANGE 80 /* Illegal Conflict resolution change */
  107. #define CDR_EUDTBADCOL 81 /* UDT collection types not allowed */
  108. #define CDR_EUDTEXPR 82 /* UDTs not allowed in expressions
  109. (such as where clauses) */
  110. #define CDR_ENOUDTPKEY 83 /* No UDTs in primary key allowed */
  111. #define CDR_ESYNC 84 /* No sync server with non-root & leaf */
  112. #define CDR_EPARTFLAGS 85 /* incorrect participant flags */
  113. #define CDR_ELEAF 86 /* conflicting leaf server flags or
  114. attempt to sync with leaf server */
  115. #define CDR_ESTOPFLAGS 87 /* invalid cdr stop options */
  116. #define CDR_EMODRECVQ 89 /* cannot modify dbspace for queues */
  117. #define CDR_ECLOCKSKEW 90 /* system clocks are out of synchronizaton */
  118. #define CDR_ESERVSTATE 91 /* invalid server state transition */
  119. #define CDR_EALRDYDEF 92 /* CDR server already defined */
  120. #define CDR_ESTARTUP 93 /* CDR is starting */
  121. #define CDR_ESHUTDOWN 94 /* CDR is shutting down */
  122. #define CDR_USAGE 99 /* Exit code for usage messages */
  123. #define CDR_ESERVERR 100 /* fatal server error */
  124. #define CDR_ENOSUPPORT 101 /* unsupported feature */
  125. #define CDR_EINVSYNC 102 /* Root server can not sync with non
  126. * root or leaf servers */
  127. #define CDR_EINVCONNECT 103 /* Invalid server to connect */
  128. #define CDR_ETEMPDB 104 /* Can not use temp dbspaces for Send/Recv
  129. * queues and error tables */
  130. #define CDR_EUDRNOTFOUND 105 /* A UDR needed for replication was not found */
  131. #define CDR_EUDRSETUP 106 /* Setup necessary for UDR invocation could not
  132. * be completed */
  133. #define CDR_ESBSPACE 107 /* There was an error related to the smart blob */
  134. /* space specified for the send queue */
  135. #define CDR_EDBSPACE 108 /* There was an error related to the dbspace */
  136. /* specified for the catalog */
  137. #define CDR_EMODSPACE 109 /* server dbspace can not be modified */
  138. #define CDR_ENOMRINWHERE 110 /* Multirep types are not allowed in the where
  139. * clause of a replicate. */
  140. #define CDR_EFULLROWSPCR 111 /* Cannot have fullrow off and use stored
  141. * procedure conflict resolution. */
  142. #define CDR_EPARTIAL 112 /* ReplSet operation partially applied */
  143. #define CDR_EXREPLSET 113 /* Exclusive Replset Violation */
  144. #define CDR_ESERVQUISENT 114 /* Server is in quiescent state */
  145. #define CDR_ENOSYSCDR 115 /* The syscdr database is missing! */
  146. #define CDR_ENOSYSCDRSPACE 116 /* The syscdr dbspace is not correct */
  147. #define CDR_ENOHDR 117 /* Enterprise Replication op attempted on
  148. * HDR or Mach-11 secondary server */
  149. #define CDR_ESQLHOSTS 118 /* Error found in the sqlhost file while processing*/
  150. #define CDR_EHOSTOPTION 119 /* Error found in option (g=) or (i=) */
  151. #define CDR_EREMOVE 120 /* cdr remove commad executed when ER is active */
  152. #define CDR_ENOMASTER 121 /* master participant not found */
  153. #define CDR_ESHADOWOP 122 /* Illegal shadow operation attempted */
  154. #define CDR_ESHADOWPART 123 /* Attempt to add an invalid participant to a shadow replicate */
  155. #define CDR_ECDRCMD 124 /* Invalid command passed to cdrcmd */
  156. #define CDR_EMASTER 125 /* Mastered Replicate Error */
  157. /* These definitions are to support template feature */
  158. #define CDR_ETEMPLATEPART 126 /* invalid template participant */
  159. #define CDR_ETEMPLATEUNIQ 127 /* template name already in use */
  160. #define CDR_ETEMPLATEUNDEF 128 /* undefined template */
  161. #define CDR_EREPLSETPARTOFTEMPLATE 129 /* can not delete replset part of template */
  162. #define CDR_ENOSERVER 130 /* Server name not specified */
  163. #define CDR_ENOSYNCSERV 131 /* Sync server name not specified */
  164. #define CDR_EINVSYNSERV 132 /* Invalid syncserver option specified */
  165. #define CDR_EINVSYNOPT 133 /* Invalid extratargetrows option specified */
  166. #define CDR_EXLOCK 134 /* Can not lock the replicated table in exclusive mode. See the ISAM error code in server log file.*/
  167. #define CDR_NOTINALTMODE 135 /* Replicate is not in alter mode */
  168. #define CDR_SNOOPYDOWN 136 /* Snoopy sub-component is down */
  169. #define CDR_EMSTRVERIFY 137 /* Mismatch between local table dictionary and master dictionary. */
  170. #define CDR_ETAB2REPLNOTFOUND 138 /* Replicate(s) not found for table. See message log file for more information */
  171. #define CDR_ESCHK4SWPSHADOW 139 /* Sanity check failed for 'swap shadow' operation. See message log file for more information */
  172. #define CDR_ESWAPPARTMISMATCH 140 /* Primary and shadow replicate participant verification failure. See message log file for more information */
  173. #define CDR_EINALTMODE 141 /* Table is already in alter mode. See message log file for more information */
  174. #define CDR_ECLASSICREPL 142 /* Classic replicate(s) (no mastered dictionary) found on the table. See message log file for more information */
  175. #define CDR_ETRIGGERNF 144 /* can not find requested trigger */
  176. #define CDR_ETRIGGEREXISTS 145 /* trigger of this name already exists */
  177. /* This definition is here to support the SQL error code for Catalog Open*/
  178. #define EOCATALOG 211 /* Error in Opening the Catalog */
  179. #define CDR_ESYNCUNIQ 146 /* Resync job with the same name was defined*/
  180. #define CDR_ESYNCSHADOW 147 /* Attemp to use shadow replicate as primary
  181. for resync */
  182. #define CDR_ETGTPARAM 148 /* Invalid target parameter(s)to resync. job */
  183. #define CDR_ENORSNC 149 /* Attempted resync with older servers */
  184. #define CDR_EINVJBST 150 /* Invalid job status */
  185. #define CDR_ENOTSRC 151 /* Rsnc job can't start on a non-source server */
  186. #define CDR_EINACTJOB 152 /* Job is not active */
  187. #define CDR_ENOMULTTGT 153 /* Resynch.Job can not have more than on target*/
  188. #define CDR_EINACTREPL 154 /* replicate of the resynch. job is not active */
  189. #define CDR_EJOBUNDEF 155 /* Resynch job is not defined */
  190. #define CDR_ENONAMEVERF 156 /* Since replicate is not defined with name verification option (--name y), auto remastering can not be done. */
  191. #define CDR_EGRPRBLOCK 157 /* Can not verify/block grouper evaluation blocking condition" */
  192. #define CDR_EGRPRUNBLOCK 158 /* Can not unblock grouper evaluation */
  193. #define CDR_EGRPR_ALREADY_BLOCK 159 /* CDR: Grouper evaluation already blocked in the same transaction. Commit the previous alter statement then execute the current alter statement. */
  194. #define CDR_TEMPLATE_TABLEVIEW_ERR 160 /* Table not found */
  195. #define CDR_TEMPLATE_NOFILE 161 /* File specified not found */
  196. #define CDR_REPAIR_NOTXH 162 /* Repair could not find group entry in TXH in ATS/RIS file */
  197. #define CDR_ALTER_TABVERIFYERR 163 /* Table verification failed */
  198. #define CDR_EREPAIR 164 /* ATS/RIS repair failed */
  199. #define CDR_EREPSUSP_REPJOB 165 /* Replicate/Replset cannot be suspended due
  200. to the presence of repair jobs */
  201. #define CDR_EEMPTY_RPLSET 166 /* Replset is empty */
  202. #define CDR_ENOCDRINEXPRESS 167 /* IDS Express edition does not support ER */
  203. #define CDR_ETABISVIEWERR 168 /* Table specified is a view */
  204. #define CDR_EEMPTY_TEMPLATE 169 /* Template is empty */
  205. #define CDR_UNKNOWNTEMPLATE 170 /* Template is not yet defined */
  206. #define CDR_NOVERIFYCREATEALLOWED 171 /* Cannot use -u/-v with classic repl */
  207. #define CDR_ENOCHECKSUM 172 /* checksum library not installed */
  208. #define CDR_EXTSHUTDOWN 173 /* external sync shutdown requested */
  209. #define CDR_EXTABORT 174 /* external sync abort requested */
  210. #define CDR_EXTSTOP 175 /* external sync stop requested */
  211. #define CDR_SYNCONINACTIVE 176 /* Attempted to sync an inactive repl */
  212. #define CDR_UNKNDDL 177 /* Unknown DDL Statement */
  213. #define CDR_EREPLOUTOFSYNC 178 /* Replicate Tables are out of sync */
  214. #define CDR_EMASTERNOTINREPL 179 /* Master Node specified in not a participant */
  215. #define CDR_ETARGETSNOTNREPL 180 /* None of the Target Nodes are participant of the Replicate */
  216. #define CDR_ECFGVALNOTCHANGED 181 /* Config value for the specifed variable could not be set */
  217. #define CDR_ECFGVALADJUSTED 182 /* Config value for the specifed variable has been adjusted */
  218. #define CDR_ECFGUNSUPPORTEDOPRN 183 /* Unsupported modifying operation for the onconfig variable */
  219. #define CDR_ECFGWRONGFORMAT 184 /* Wrong format of the onconfig variable value */
  220. #define CDR_ECFGUNKNOWNVAR 185 /* Unsupported/Unknown ER onconfig/CDR_ENV variable */
  221. #define CDR_ECFGERDEFINED 186 /* Cannot change the value while ER is defined */
  222. #define CDR_ECFGHDRDEFINED 187 /* Cannot change the value while HDR is defined */
  223. #define CDR_WCFGVALSAME 188 /* Value specified is same as that currently in-memory */
  224. #define CDR_ENOSUPPORT_LBAC 189 /* Replicate cannot be defined on a LBAC protected table */
  225. #define CDR_EREPAIR_DBCLICODESETS 190 /* Repair requires DB_LOCALE and CLIENT_LOCALE to have the same codesets */
  226. #define CDR_ESERVIDINDET 191 /* Cannot determine connection server id for server. */
  227. #define CDR_ESYSCDRSPARSE 192 /* Unable to find or connect to a 'syscdr' database at a non-leaf server */
  228. #define CDR_ESQLRESOURCE 193 /* Qry failed due to resources */
  229. #define CDR_ESQLCONNECT 194 /* Qry failed due to connection loss */
  230. #define CDR_ESQLOTHER 195 /* Qry failed due to other resource */
  231. #define CDR_ESQLERR 196 /* Error code for SQL Errors */
  232. #define CDR_ERSNCCRTAB 197 /* Error In creating control tables */
  233. #define CDR_ERSNCCRTRG 198 /* Error In creating triggers */
  234. #define CDR_ERSNCCRPROC 199 /* Error In creating resync procedures */
  235. #define CDR_ESYNCERR 200 /* Unexpected Error in Sync or Check */
  236. #define CDR_EBADCTYPE 201 /* Unexpected column type */
  237. #define CDR_COLMISMATCH 202 /* Column types mismatch */
  238. #define CDR_ENODATA 203 /* Column data missing */
  239. #define CDR_ENOTABLE 204 /* Table not found SO WHY NOT CDR_ETBLDNE */
  240. #define CDR_ESERVGRPUNDEF 205 /* Undefined server group */
  241. #define CDR_ETEMPL_NOTREAL_AT_SYNCSRC 206 /* Template not realized at template sync source */
  242. #define CDR_ETEMPL_REAL 207 /* Template already realized */
  243. #define CDR_ESERVREMRESOLV 208/* server unknown at remote server */
  244. #define CDR_EBADCHAR 209 /* A byte sequence that is not a valid
  245. * character in the specified locale was
  246. * encountered */
  247. #define CDR_EBADARG 210 /* Parameter passed to command (or
  248. * internally, routine) is invalid */
  249. #define CDR_ETOOLARGE 211 /* background job string is too large */
  250. #define CDR_SUBABORT 212 /* Sync/Check subTask aborted */
  251. #define CDR_ESETOUTOFSYNC 213 /* Check set out of sync */
  252. /* make sure error numbers match across server families */
  253. #define CDR_EREPLAY 214 /* Invalid replay position detected */
  254. #define CDR_ETABISEXTERNALERR 215 /* Table specified is an external table */
  255. #define CDR_EDPARTIAL 216 /* Command partially executed */
  256. #define CDR_EQOD 217 /* Error with Quality of Data command */
  257. #define CDR_ESQLNOTFOUND 218 /* SQL query returned no rows */
  258. #define CDR_ESERVLOCAL 219 /* Server parameter cannot refer to the
  259. * local server */
  260. /* N.B. the difference between CDR_ESTASHUTDOWN and CDR_EXTASTOP is that
  261. * CDR_EXTASHUTDOWN is restartable
  262. */
  263. /*
  264. * Grid Errors
  265. */
  266. #define CDR_EGRIDPART 220 /* node not a member of grid */
  267. #define CDR_EGRIDUNIQ 221 /* grid name is not unique */
  268. #define CDR_EGRIDUNDEF 222 /* grid is not defined */
  269. #define CDR_EGRIDENU 223 /* grid enable user failed */
  270. #define CDR_EGRIDENN 224 /* grid enable node failed */
  271. #define CDR_ESEC2ER 225 /* sec2er failure */
  272. #define CDR_ENETERR 226 /* A network error occurred */
  273. #define CDR_EREGION 227 /* Region Operation Failed */
  274. #define CDR_EGRIDTABLE 228 /* Grid Table Error */
  275. #define CDR_ESHARD 229 /* sharding error */
  276. /* The following errors provide more details on the error via
  277. * cdr_errmsgstr. All such errors should be included in the range
  278. * defined below so that we can output the full message to the user.
  279. */
  280. #define CDR_EMSGSTR_MIN 300
  281. #define CDR_EMSGSTR_MAX 500
  282. #define CDR_ETS CDR_ESQLUNSUP /* error related to TimeSeries */
  283. #define CDR_EMSGSTR_SIZE 1024 /* size of the error buffer */
  284. /*
  285. WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING W
  286. W W
  287. W When adding new error codes, use next available error number. Do not W
  288. W try to "plug gaps" in error numbers. For example, as I write this, W
  289. W there is no error 92 and the largest error number is 110. A new errorW
  290. W should use 111, and not 92 (since that was probably an error that was W
  291. W removed and there could be server versions out there that think 92 W
  292. W means something). W
  293. W W
  294. W If you add new error code here, you may need to add it to W
  295. W gc_genSevErrMsg. This is necessary if the error could go into the W
  296. W severe errors table (error could occur during an operation from a W
  297. W peer). W
  298. W Please also add to the function cdr_find_error(). W
  299. W W
  300. WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING W
  301. */
  302. #endif /* CDRERR_DOT_H */