ORA-32766: instr with negative offset: use varchar semantics
on LOBs
Answer / guest
Cause: The current varchar behavior is different. e.g.
instr('abcd', 'cd', -2, 1) returns 3, whereas
instr(to_clob('abcd'), 'cd', -2, 1) returns 0, (i.e. no
match), because the reverse search starts from offset -2,
which points to 'c' and moving backward, i.e. 'd' is
ignored. This is symmetric to instr('dcba','dc',2,1), which
returns 0.
Action: ORACLE uses the same varchar semantics on LOBs
(instr). Using the same example, instr(to_clob('abcd'),
'cd', -2, 1) will return 3 as in the varchar case.
Please add more information about this Error
Is This Answer Correct ? | 0 Yes | 0 No |
NNO-00261: cannot construct configuration checkpoint file name
DRG-11113: value of string must be one of string
LSX-00168: referring form of "~S" must NOT occur at the top level
NNL-00287: Cache flush occurs in string
ORA-19618: cannot name files after restoreValidate has been called
ORA-27207: syntax error in device PARMS - parentheses mismatch or missing
NID-00304: Datafile string - reverted
IMG-00852: image index free failed
ORA-28582: a direct connection to this agent is not allowed
DRG-12217: tags cannot be more than 64 bytes
ORA-16717: clearing parameter LOG_ARCHIVE_DUPLEX_DEST failed
RMAN-08127: cataloged backuppiece