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 |
AUD-00703: unable to read audio data
ORA-01112: media recovery not started
ORA-31422: owner schema string does not exist
NNL-00853: Renames refused, new name already exists: number
ORA-27487: invalid object privilege for a string
ORA-29250: Invalid index specifed in call to dbms_sql.bind_array
ORA-01283: Options specified is invalid
ORA-16608: one or more sites have warnings
NZE-28829: no cipher type specified
ORA-12600: TNS: string open failed
RMAN-08030: allocated channel: string
ORA-33334: (DSSEXIST04) Analytic workspace string is not attached.