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 |
ORA-27070: async read/write failed
RMAN-06517: KEEP option is not supported for archive log backups
LSX-00149: duplicated ID specified in "~S"
TNS-03502: Insufficient arguments. Usage: tnsping <address> [<count>]
ORA-14153: only one of STORE IN or <partition-description> clause may be specified
LPX-00311: unsupported feature: ~S
QSM-01584: equivalence, string, has anchor, string, not found in query
PLS-00390: undefined column 'string' in INSERT statement
ORA-32400: cannot use object id columns from materialized view log on "string"."string"
ORA-27009: skgfwrt: cannot write to file opened for read
ORA-08266: create_ora_addr: cannot register name in nameserver
TNS-02501: Authentication: no more roles