import failed when processing synonyms [message #610909] |
Tue, 25 March 2014 16:27 |
|
anncao
Messages: 87 Registered: August 2013
|
Member |
|
|
If I excute : drop user ausername cascade; I understand all the objects created by the user will be dropped.
How about the public synonyms the user created(owned) and granted access to public?
Will that be dropped too? We assume so. but it seems not the case.
We got error when we want to using data dump import into our existing testing database from a production data export dump file.
Before we do the import, we excuted the drop Schema script that does the drop user cascade command.
Then we see the import process hang at the step at following step:
Processing object type DATABASE_EXPORT/SCHEMA/SYNONYM
Any idea what could cause that?
Thanks
|
|
|
Re: import failed when processing synonyms [message #610910 is a reply to message #610909] |
Tue, 25 March 2014 16:32 |
John Watson
Messages: 8960 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
This Quote:If I excute : drop user ausername cascade; I understand all the objects created by the user will be dropped. is not correct: you will drop all objects in the user's schema, whether they were created by him or not. Oracle does not store who created an object, only the schema within which it exists. Public synonyms are in the PUBLIC schema, which you cannot drop.
|
|
|
Re: import failed when processing synonyms [message #610911 is a reply to message #610910] |
Tue, 25 March 2014 16:44 |
|
anncao
Messages: 87 Registered: August 2013
|
Member |
|
|
Thank you, so we can only drop the public synonym using drop public synonyms statement in the case the user has the privilege to drop public synonyms, correct?
Also, I noticed when we created a public synonym for example by UserA, and grant select on the synonym to public, then I see when I query the dba_synonyms table, I see the owner is not only UserA, also Public and UserB? why is that, does it mean whenvever a public synonyms created, in dba_synonyms table, all the users have a record that says it is the owner of the public synonyms?
Thanks
[Updated on: Tue, 25 March 2014 16:55] Report message to a moderator
|
|
|
Re: import failed when processing synonyms [message #610929 is a reply to message #610911] |
Wed, 26 March 2014 02:00 |
John Watson
Messages: 8960 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
What does this mean:Quote:when we created a public synonym for example by UserA, and grant select on the synonym to public, then I see when I query the dba_synonyms table, I see the owner is not only UserA, also Public and User If you post an example (please use SQL*Plus, and copy/paste with [code] tags) perhaps someone can explain.
|
|
|
|
Re: import failed when processing synonyms [message #610990 is a reply to message #610944] |
Wed, 26 March 2014 10:11 |
|
anncao
Messages: 87 Registered: August 2013
|
Member |
|
|
Thanks, yes, I feel confused why in dba_synonyms table, the same synonym appear in three records, one owner is public, the other is UserA, the third is UserB.
The statement we create the synonyms is below and userA execute it.
create or replace public synonym PRODUCT for ma.product;
grant select on PRODUCT to public;
Thanks
[Updated on: Wed, 26 March 2014 10:12] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|