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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

RMAN-05017: no copy of datafile number found to recover

2000


[ERROR] [main 11:01:20] (JCLLoggerAdapter.java:error:454) Unsuccessful: alter table user.CEN_USER_MASTER add constraint FKF4EDEDC3D0BAAE75 foreign key (ROLE_ID) references user.CEN_ROLE_MASTER [ERROR] [main 11:01:20] (JCLLoggerAdapter.java:error:454) ORA-02275: such a referential constraint already exists in the table

2407


ORA-26094: stream format error: input column overflow

2354


IMP-00060: Warning: Skipping table "string"."string" because object type "string"."string" does not exist or has different identifier

2733


In my project I am using star schema and only diimension tables are loaded and not fact tables any one can help me why it is happening? Plase guide me.

2438






when i ran any workflow or session, getting below error: seesion task instance[s_xxx]: Execution terminated unexpecterdly

1840


invalid quantity specification negative quantity are not allowed for this item please check this item definition quantity

2982


NZE-28890: Entrust Login Failed

1489


ORA-16627: No standby databases support the overall protection mode.

3649


ORA-16626: failed to enable specified object

1865


if the lengths of two wires are same and the area of cross sections is 4:7 then what will be the ratio of current passing through these wires

2328


ORA-07497: sdpri: cannot create trace file 'string'; errno = string.

2429


ORA-26029: index string.string partition string initially in unusable state

1818


How to resolve QSM-01108 error. I have no OR conditions in my query, but do have 9 IN conditions. The error says the max limit is 2 while I have 257 number of disjuncts. However, if I remove even a single IN condition, the query is rewritten. I cannot change my query. How can I resolve this issue?

2403


IMP-00096: Warning: Skipping table "string"."string" because type synonym "string"."string" cannot be created

1324