ORA-32766: instr with negative offset: use varchar semantics
on LOBs



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

Post New Answer

More Oracle Errors Interview Questions

ORA-30153: An invalid File Object is passed to the OCIFile function

1 Answers  


ORA-01456: may not perform insert/delete/update operation inside a READ ONLY transaction

1 Answers  


ORA-25123: Too many components specified in the name.

1 Answers  


TNS-02515: Encryption/crypto-checksumming: unknown control type

1 Answers  


PLS-01407: One of the identifiers CHAR, CHARACTER, or INTEGER has been redefined by the programmer

1 Answers  






ORA-14131: enabled UNIQUE constraint exists on one of the tables

1 Answers  


CLSR-00502: Error number encountered when subscribing an EVM event

1 Answers  


ORA-30485: missing ORDER BY expression in the window specification

1 Answers  


ORA-01949: ROLE keyword expected

1 Answers  


ORA-36278: (XSCGMDLAGG07) workspace object is not a valid valueset.

1 Answers  


ORA-30557: function based index could not be properly maintained

1 Answers  


DRG-52204: error while registering index

1 Answers  


Categories