Skip to Main Content

Database Software

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!

How to exclude only specific grant in impdb

Torsten KleiberApr 8 2016 — edited Apr 8 2016

Hi!

We have following constellation in 11.2.0.4:

Production database has 2 schemas. tables of schema1 (central utilities) are granted to schema2:

In development database schema2 does not exist, as it is legacy and no development happened on this anymore, costs for this should be avoided.

When refreshing development from production following errors occur:

ORA-39083: Object type OBJECT_GRANT failed to create with error
ORA-01917: user or role SCHEMA2 does not exist
grant insert, update, select, delete on schema1.table to schema2 with grant option

As the refresh process should be automated these errors should be eliminated.

Is this possible?

Datapump import EXCLUDE=GRANT parameter seems only to exlude all grants.
Datapump import EXCLUDE=SCHEMA: "= 'SCHEMA2' " and EXCLUDE=SCHEMA2 seems not exclude the grants from schema1 to schema2.

Kind regards
Torsten

This post has been answered by top.gun on Apr 8 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 6 2016
Added on Apr 8 2016
3 comments
2,816 views