PL/SQL (MOSC)

MOSC Banner

performance issues when using functional index

edited Mar 28, 2013 7:20AM in PL/SQL (MOSC) 12 commentsAnswered
Hi ,
i am from telecom industry and my working version is oracle 10g standard edition in RAC

i have requirment where i have to dynamically allocate a number from the pool table

the below is my pool table structure

create table xyz
(
  POOL_NUMBER      VARCHAR2(20) primary key,
  POOL_ID          NUMBER(5),
  ALLOCATED_NUMBER VARCHAR2(20),
  ALLOCATED_TIME   DATE,
  INSTANCE_ID      NUMBER(2)
)
/

 the below query is used to dynamically allocate a number from pool table

 SELECT pool_number
                INTO v_pool_number
                FROM  xyz
               WHERE pool_id = 1
                     AND decode(allocated_time, NULL, 1, NULL) = 1
                     AND rownum = 1;

i have created the functional index for the column allocated_time as it queries in the above

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