Deploying parts of the DB including users [message #638622] |
Tue, 16 June 2015 03:28  |
 |
PASAG
Messages: 3 Registered: June 2015 Location: Germany
|
Junior Member |
|
|
Hi all,
am new to the forum and somewhat desperate to find a solution to my problem:
My customer requires me to deploy my 11g Oracle instance without any system related objects. So instead of providing a full database dump I should produce one just containing all relevant objects in the export. I have succeeded exporting (datapump) the relevant schemas, but when importing those in a fresh instance, I get plenty of errors that the users do not exist.
How can I export schemas, grants, public synonyms, procedures, functions, packages and related users? Or perhaps I can do a full export and then partially import that again (I tried it, but again I got errors reg. non exisiting users)?
Thanks in advance for any of your kind help with this matter.
Regards,
Pascal
|
|
|
|
|
|
|
|
|
|
|
Re: Deploying parts of the DB including users [message #638634 is a reply to message #638631] |
Tue, 16 June 2015 05:52   |
Lalit Kumar B
Messages: 3174 Registered: May 2013 Location: World Wide on the Web
|
Senior Member |
|
|
I like Michel's suggestion about EXCLUDE. The only issue I find with the INCLUDE/EXCLUDE commands is that when the data types are same for the objects in the list, Oracle implicitly applies "AND" condition. You could see this topic to know what I mean.
|
|
|
|
Re: Deploying parts of the DB including users [message #638644 is a reply to message #638624] |
Tue, 16 June 2015 12:38   |
John Watson
Messages: 8966 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
PASAG wrote on Tue, 16 June 2015 09:44Thanks for the input, Littlefoot.
I think it is more a problem with different database versions and the implications they bring along. As for example the creation of the APEX-user account in my instance within the db of the customer caused the local DBA to get hysterical. Also accepting a couple of thousand errors of attempted creations of already existing system objects did not contribute to his general happiness. Your DBA is correct to get hysterical regarding APEX. You should not attempt to import the APEX schemas, you need to install them, and then import (using APEX import, not impdp) the workspace(s) and application(s). You import only the parsing schemas tat owen te data. I think that is how I've usually done it.
|
|
|
Re: Deploying parts of the DB including users [message #638649 is a reply to message #638644] |
Wed, 17 June 2015 00:14  |
 |
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
(Not that it matters, but) I got it wrong; it never crossed my mind that DBA's hysteria is caused by importing Apex. I thought that it comes from installing it.
I'd rather keep my mouth shut & go away from the keyboard.
|
|
|