Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Query got slow just after db minor upgrade 19c

Manish GuptaSep 22 2022 — edited Sep 28 2022

One of the query got slow after minor upgrade from 19.10 to 19.14. noticed that execution plan got changed. having full table scan and not using index. although, index are in valid state. we rebuild index, drop & re-create index but that didn't help. we have 19c Standard edition without tuning pack. can someone help me please ?
Note:- i have created backup before upgrade. so if anything required, i can bring them back.

SELECT /*+ FIRST_ROWS */ c.id FROM schema.table1 c WHERE ((contains(c.description, '12345' ) > 0 OR contains(c.key_label, '12345' ) > 0 OR EXISTS (SELECT 1 FROM schema.table2 m WHERE c.id = m.case_id AND m.deleted_flag = 0 AND contains(m.case_comment, '12345' ) > 0)) AND c.case_type = 'issue' );

Comments

Timo Hahn

User, tell us your exact JDev version, please!
You normally get this message if the VO or collection behind the LOV has duplicate entries. If you now select one of the duplicate values you get this error as the e.g. selectOneChoice can only select one.
If you use a VO behind the LOV check if you have selected a primary key in the VO and rewrite your query that it returns unique values.

Timo

User508065-Oracle

JDev version is 11.1.1.9.0
Also, the VO behind the LOV has a primary key defined.

Timo Hahn

And the query for the LOV returns unique values?
If yes, do you have a reproducible test case?
Timo

User508065-Oracle

Yes, the issue can be reproduced on one of our Fusion env. I think it will be easier to show you via a zoom if possible.

Timo Hahn

Sorry, this is a public forum and we should keep it this way. Zoom is not an option here as it would not address everybody.
I'm not the only member that might be able to help you solve the problem.
Timo

1 - 5

Post Details

Added on Sep 22 2022
6 comments
1,450 views