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-27070: async read/write failed

1 Answers  


RMAN-06517: KEEP option is not supported for archive log backups

1 Answers  


LSX-00149: duplicated ID specified in "~S"

1 Answers  


TNS-03502: Insufficient arguments. Usage: tnsping <address> [<count>]

1 Answers  


ORA-14153: only one of STORE IN or <partition-description> clause may be specified

1 Answers  






LPX-00311: unsupported feature: ~S

1 Answers  


QSM-01584: equivalence, string, has anchor, string, not found in query

1 Answers  


PLS-00390: undefined column 'string' in INSERT statement

1 Answers  


ORA-32400: cannot use object id columns from materialized view log on "string"."string"

1 Answers  


ORA-27009: skgfwrt: cannot write to file opened for read

1 Answers  


ORA-08266: create_ora_addr: cannot register name in nameserver

1 Answers  


TNS-02501: Authentication: no more roles

1 Answers  


Categories