Technology Software

How to Create an Index Attribute in Oracle

    • 1). Identify the type of index required. This will be one of the following types: normal, bitmapped, partitioned, function or domain-based. You will need to gain an understanding of these before you can attempt to create index attributes based on them.

    • 2). Choose the field or field(s) in the database for which you want to create an index. Primary keys in the database are automatically indexed, but if you use other fields in the database that are accessed often, it is worth creating an index for the field.

    • 3). Create an index for the chosen field or fields as in the following examples.

      A single field:

      CREATE INDEX ord_sales_ix ON sales (client_id);

      An index with two fields:

      CREATE INDEX ord_sales_ix ON orders (client_id, sales_repid);

    • 4). Allocate indexes to other objects, such as clusters. In addition to creating indexes on tables, if you have an Oracle cluster, an index can be created on it to improve performance as shown:

      CREATE INDEX idx_cluster ON CLUSTER pers_cluster;

    • 5). Filter your indexes to be used only when a specific function is called on the data as illustrated:

      CREATE INDEX upper_name_ix ON customers (UPPER(surname));

      For every instance the "UPPER" function is called on the surname in this example, the index "upper_name_ix" will be used.

SHARE
RELATED POSTS on "Technology"
local area network (LAN)
local area network (LAN)
How to Make Watermarks
How to Make Watermarks
How to Convert RTF to Doc
How to Convert RTF to Doc
How to Insert a Check Box in Word 2007
How to Insert a Check Box in Word 2007
How to Digital Scrapbook With Adobe Photoshop
How to Digital Scrapbook With Adobe Photoshop
RiT PatchView: Designing Your Own Personal Network With Technicians' Assisting in the Performance
RiT PatchView: Designing Your Own Personal Network With Technicians' Assisting in the Performance
Best Things About Software Development Services In India
Best Things About Software Development Services In India
Diwali Festival New Year Offer For School Management System
Diwali Festival New Year Offer For School Management System
How to Edit Pictures to Make Teeth Whiter
How to Edit Pictures to Make Teeth Whiter
3 Quick Fix Solutions to Common DVD Driver Issues
3 Quick Fix Solutions to Common DVD Driver Issues
How to Make a Java Game With NetBeans
How to Make a Java Game With NetBeans
Convert Offline EDB to PST When Exchange Server Crashed
Convert Offline EDB to PST When Exchange Server Crashed
How to Compress BMP Files
How to Compress BMP Files
How to View Two PowerPoint 2007 Presentations in Sync
How to View Two PowerPoint 2007 Presentations in Sync
How to Convert AVI to MPEG2 in Linux
How to Convert AVI to MPEG2 in Linux
xinetd
xinetd
How to Design a Corporate Enterprise Email System
How to Design a Corporate Enterprise Email System
Solving Complex Data Migration Problems With ET Tools
Solving Complex Data Migration Problems With ET Tools
Web Development Being Powered by Ajax Programming!
Web Development Being Powered by Ajax Programming!
Biztalk Server Deployment A Challenging Task For Deploying Over A Remote Account
Biztalk Server Deployment A Challenging Task For Deploying Over A Remote Account
Great Plains Small Business Financials Upgrade Overview For Consultant
Great Plains Small Business Financials Upgrade Overview For Consultant
Choosing The Right Mobile Application Development Platforms: Tips And Guidelines
Choosing The Right Mobile Application Development Platforms: Tips And Guidelines
Taking A Closer Look At SugarSynch
Taking A Closer Look At SugarSynch
Online Scheduling Software- How Online Scheduling Software Can Revolutionize Your Business
Online Scheduling Software- How Online Scheduling Software Can Revolutionize Your Business

Leave Your Reply

*