Database Tuning (MOSC)

MOSC Banner

How can i create a function based index on a varchar2 field that may contain a not valid number

edited Jun 5, 2018 5:05AM in Database Tuning (MOSC) 6 commentsAnswered

Hello,

we must tune a third party application. So we cant change the table or views they use. But we are allowed to create new indexes.

To understand where the problem comes from we have two applications, the first transfers data to the second, and the

source table has a number key, the second application and destination table has a varchar2 key. The application that have to be tuned uses this view:

  CREATE OR REPLACE FORCE EDITIONABLE VIEW "PROD_FIN_100"."SOPPROKONTO" ("BUCHUNGSNUMMER", "KLASSE", "KONTONUMMER", "BELEGART", "INTERNEBELEGNUMMER", "BELEGDATUM", "SOLL", "HABEN", "BETRAG") AS

  SELECT bu.dvbuchungsnummer,

          TRIM (CAST (k.klasse AS VARCHAR2 (1))),

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center