January 2012
Intermediate to advanced
542 pages
11h 28m
English
A cluster is a group of tables that share common columns and are stored in the same data blocks; this organization is useful when we access this data using joins in queries.
In this recipe, we will see how and when to use index clusters, and some tricks to adopt when using this kind of storage. Follow these steps:
TESTDB database:
CONNECT hr@TESTDB/hr
CREATE CLUSTER LOC_ENTRIES (COUNTRY_ID CHAR(2)) SIZE 100;
CREATE INDEX IDX_LOC_ENTRIES ON CLUSTER LOC_ENTRIES;
CREATE TABLE CL_COUNTRIES CLUSTER LOC_ENTRIES (COUNTRY_ID) AS SELECT * FROM COUNTRIES;
CREATE TABLE CL_LOCATIONS ...Read now
Unlock full access