Exforsys

Free Training

Can this be done

This is a discussion on Can this be done within the Oracle Database forums, part of the Database category; Is it possible to create index on audit table and if so can someone mention me how to do that ...

Go Back   Exforsys > Database > Oracle Database

Exforsys.com

  #1 (permalink)  
Old 06-13-2007, 07:11 AM
Senior Member
 
Join Date: Apr 2006
Posts: 141
Adrian is on a distinguished road
Can this be done

Is it possible to create index on audit table and if so can someone mention me how to do that and an instance of when a user would require the indexing on audit table. Kindly envisage my knowledge in this concept.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-16-2007, 04:58 PM
Senior Member
 
Join Date: Apr 2006
Posts: 125
ashlee is on a distinguished road
Yes you can very well create index on audit table. One instance when you can go for indexing on audit table is when you have millions of records in you database and also when you have instances of querying your audit table. In that instance for increasing performance you must do indexing on audit table.

Suppose you want to create indexing on audit table date field named as auddate you can create indexing on audit table as below:
create index sample_inde on audit(to_char(auddate,'mm.yyyy'));
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 11:49 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Copyright 2004 - 2009 Exforsys Inc. All rights reserved.