+ Reply to Thread + Post New Thread
Results 1 to 4 of 4
  1. #1
    mirza's Avatar
    mirza is offline Junior Member
    Join Date
    03 Aug 2009
    Posts
    18
    Say Thanks
    9
    Thanked 0 Times in 0 Posts
    Documents
    0
    Uploads
    0

    Default function-based index

    How to create a function-based index on the expression?
    I am using 10.2.0.4.
    Please also tell that can We create the same through Enterprise manager?


    Thanks in Advance

    Rgds,
    Mirza

  2.    Club-Oracle Complementary E-Books and Magazines
    Get your free Complementary Copy of Oracle Magazine

    You can also browse the Free Magazines and E-Books section to see the complete list of free magazines, e-books and Whitepapers.

  3. #2
    rajavu's Avatar
    rajavu is offline Forum Genius
    Join Date
    13 Oct 2008
    Location
    @ Bangalore , India
    Posts
    471
    Say Thanks
    0
    Thanked 20 Times in 19 Posts
    Documents
    0
    Uploads
    0

    Default Re: function-based index

    what kind of expression you mean ?

    This link may help you.

    Yes. you can create.

    Raj.

  4. #3
    mirza's Avatar
    mirza is offline Junior Member
    Join Date
    03 Aug 2009
    Posts
    18
    Say Thanks
    9
    Thanked 0 Times in 0 Posts
    Documents
    0
    Uploads
    0

    Default Re: function-based index

    EM recommending :-

    Rewrite the predicate into an equivalent form to take advantage of indices. Alternatively, create a function-based index on the expression.

    The optimizer is unable to use an index if the predicate is an inequality condition or if there is an expression or an implicit data type conversion on the indexed column.

  5. #4
    zargon's Avatar
    zargon is offline Forum Genius
    Join Date
    22 Oct 2008
    Location
    Here, or maybe there, or ...
    Posts
    473
    Say Thanks
    0
    Thanked 38 Times in 37 Posts
    Documents
    0
    Uploads
    0

    Default Re: function-based index

    Quote Originally Posted by mirza View Post
    EM recommending :-

    Rewrite the predicate into an equivalent form to take advantage of indices. Alternatively, create a function-based index on the expression.

    The optimizer is unable to use an index if the predicate is an inequality condition or if there is an expression or an implicit data type conversion on the indexed column.
    Which doesn't answer the question. What is this problem query? Which function are you using that causes the tuning advisor to recommend a function-based index? Creating a function-based index is easy enough:

    Code sql:
    CREATE INDEX my_fbi
    ON mytable(to_date(mydate, 'MM/DD/RRRR'))
    /

    You really need to provide more information than you do so others can assist you.

Similar Threads

  1. Partitioned index
    By prepek2000 in forum SQL PL/SQL
    Replies: 1
    Last Post: 09-07-2009, 07:39 AM
  2. Problem with CTXXPATH index
    By lcavina in forum SQL PL/SQL
    Replies: 0
    Last Post: 06-29-2009, 01:42 PM
  3. Caching for UCM based websites
    By rakeshgugnani in forum Oracle Fusion Middleware
    Replies: 1
    Last Post: 05-27-2009, 11:20 AM
  4. Cluster index Vs IOT
    By prashant in forum SQL PL/SQL
    Replies: 2
    Last Post: 01-20-2009, 04:45 AM

Tags for this Thread