Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Exchange partition using synonym

Milan HrickoOct 26 2011 — edited Nov 23 2011
Is exchange partition working with synonyms?
I tried but got error: ORA-00942: table or view does not exist
I can not find privileges requirements for exchange partition in oracle documentation :-(

Example:

conn owner1 ...
create table owner1.MYTABLE (....) ... partititon P_PARTITION ....;
grant ALTER,DELETE,INSERT,SELECT,UPDATE on owner1.MYTABLE to owner2;

conn owner2 ...
create or replace synonym MYTABLE for owner1.MYTABLE;
create table owner2.ANOTHER_TABLE as select * from MYTABLE;
alter table MYTABLE exchange partition P_PARTITION with table owner2.ANOTHER_TABLE including indexes without validation update global indexes;
ORA-00942: table or view does not exist

Edited by: Milan Hricko on 26.10.2011 1:47
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 21 2011
Added on Oct 26 2011
5 comments
744 views