Exforsys

Online 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

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #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
  #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


Thread Tools

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

vB 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 10:53 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.