sql - Materialized View with Index in Separate Tablespace -
we're attempting perform data migration 1 schema via use of materialized views. process i've setup works follows:
create snapshot/materialized view log:
create snapshot log on oldschema.table;
create materialized view on new schema:
create snapshot table select * oldschema.table@olddb
refresh materialized view
- break link, preserving table
for historical reasons, indexes kept in separate tablespace , want maintain same structure on new schema (i'm aware there no performance benefit this, we're doing stay consistent). understand can accomplish altering primary key after fact:
alter index pk_idx rebuild online tablespace idx_tablespace
but possible perform @ time of snapshot creation avoid having move it? i'm hoping additional clause create snapshot
command affects primary key gets generated.
thanks
you have using index tablespace
clause in create materiazlized view
command.
Comments
Post a Comment