Search notes:

Oracle: global indexes

A global index is similar to a partitioned table: depending on a criteria, multiple index-partititions are created each of which is its own index.
The following example creates a global index on a non-partitioned table.
create table tq84_tab (
   nm   number,
   tx   varchar2(10),
   val  number
);


create index tq84_ix
       on    tq84_tab (nm, tx)
       global partition by range(nm)
       (
         partition lt_1e6 values less than (   100000),
         partition lt_2e6 values less than (   200000),
         partition lt_3e6 values less than (   300000),
         partition lt_4e6 values less than (   400000),
         partition lt_5e6 values less than (   500000),
         partition lt_inf values less than ( maxvalue)
     )
;


drop table tq84_tab;
Github repository Oracle-patterns, path: /DatabaseObjects/Indexes/partitioned/global/create.sql

See also

Local partitioned indexes

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758199566, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/objects/indexes/partitioned/global/index(62): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78