Compare objects with only select_catalog_role on target user
|
Joined: Nov 2009
Posts: 20 New Jersey, USA
Member
|
OP
Member
Joined: Nov 2009
Posts: 20 New Jersey, USA |
Hi,
This just maybe to be a limitiation of V8. Here is my problem. I want to compare the objects in a schema in dev with prod. The prod target user, not a schema, has select_catalog_role so I can see all DDL for any user on the prod instance when logged in as target user through the data dictionary dba views. I can not select on any views or tables however. This is to be expected as target user does not have select permission on any schema objects. However, compare from dev does not see the DDL on prod. A blank file is returned when I bring up ExamDiff. Any ideas why compare does not work under the above situtation.
Thanks
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Aug 1999
Posts: 22,487
Member
|
Member
Joined: Aug 1999
Posts: 22,487 |
I'm not sure I understand. Can you provide an example?
Marco Kalter Allround Automations
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Nov 2009
Posts: 20 New Jersey, USA
Member
|
OP
Member
Joined: Nov 2009
Posts: 20 New Jersey, USA |
Here goes.
A user , let's say DDLUSER, on our production server is created with role SELECT_CATALOG_ROLE so this user can select all data dictionary view. Log into a schema, let's say APP1, on development server. Run compare tool which brings up a list of all objects owned by APP1. Then login into target session DDLUSER on production server and set Target Schema to APP1 on Options tab. Select an object on the list and compare. The compare results in differences whether differences exist or not since the object is not found in the target session DDLUSER on the production server. However, when logged into DDLUSER on production the PLSQL dev browser shows all objects on the instance and can view all DDL for these objects. This is Oracle 10.2.0.4.
Hope this helps.
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Aug 1999
Posts: 22,487
Member
|
Member
Joined: Aug 1999
Posts: 22,487 |
Okay, I understand. Have you enabled the "Use DBA views if available" option (Tools > Preferences > Oracle / Options)?
Marco Kalter Allround Automations
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Nov 2009
Posts: 20 New Jersey, USA
Member
|
OP
Member
Joined: Nov 2009
Posts: 20 New Jersey, USA |
Yes it is set to Use DBA Views. Remember the user APP1 which is running the compare does not have access to the DBA views but DDLUSER on the production schema does.
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Aug 1999
Posts: 22,487
Member
|
Member
Joined: Aug 1999
Posts: 22,487 |
Okay. We will check it out.
Marco Kalter Allround Automations
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Nov 2009
Posts: 20 New Jersey, USA
Member
|
OP
Member
Joined: Nov 2009
Posts: 20 New Jersey, USA |
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Aug 2003
Posts: 63
Member
|
Member
Joined: Aug 2003
Posts: 63 |
Not sure if this is related, but it looks to me like it can be. When I go to "Export User Objects" and select some schema - I can see all the objects and successfully export them. When I go to "Compare User Objects" and select the same schema - I see only a limited subset of objects. To me these sets should be identical. Am I missing something?
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Nov 2009
Posts: 20 New Jersey, USA
Member
|
OP
Member
Joined: Nov 2009
Posts: 20 New Jersey, USA |
I think the problem is that compare objects is using the SYS.ALL_... views and not the SYS.DBA_.... views even if "Ues DBA views if available" option is checked. If you have permission to an object in another schema it will appear in the compare list since it is in the SYS.ALL_... views.
--jeff
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Aug 2003
Posts: 63
Member
|
Member
Joined: Aug 2003
Posts: 63 |
I think this is exactly right. Marco, PLEASE, PLEASE, PLEASE fix it :-) It can simplify greatly our life!
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Aug 2003
Posts: 63
Member
|
Member
Joined: Aug 2003
Posts: 63 |
Sorry to ask again - but I just checked and figured out that I requested this feature (compare objects in different schema in production environment with what we have in dev/QC) for the first time back in December, 2004. And I believe I was not alone with this request. Though there was some improvement in this area with latest releases, we can still not do what we need. Is there any REAL problem in fixing it so it takes more than 5 years? Sorry again - but it doesn't look like our requests are counted...
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Aug 2003
Posts: 63
Member
|
Member
Joined: Aug 2003
Posts: 63 |
Any chance to get any response?
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Aug 1999
Posts: 22,487
Member
|
Member
Joined: Aug 1999
Posts: 22,487 |
We're looking into a solution.
Marco Kalter Allround Automations
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Aug 2003
Posts: 63
Member
|
Member
Joined: Aug 2003
Posts: 63 |
Any chance to have an estimate? Wait 5 more years?
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Aug 2003
Posts: 63
Member
|
Member
Joined: Aug 2003
Posts: 63 |
Can we expect this issue to be fixed soon?
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Sep 2004
Posts: 6 Toronto
Member
|
Member
Joined: Sep 2004
Posts: 6 Toronto |
Our organization would also greatly benefit from a solution to this compare object limitation. If it helps at all to raise the urgency of this case - we have an active 100 user support contract.
Would it be possible to get an update with respect to when we might be able to see a fix? ie. Will it make it into an 8.0 patch level?
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Aug 1999
Posts: 22,487
Member
|
Member
Joined: Aug 1999
Posts: 22,487 |
We are working on a fix. At the moment you need to have access to the dba views for both the source and target connection.
Marco Kalter Allround Automations
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Nov 2009
Posts: 20 New Jersey, USA
Member
|
OP
Member
Joined: Nov 2009
Posts: 20 New Jersey, USA |
Hi Marco,
Thanks for your help on this.
I tried compare from a source account with select_catalog_role to a target account with select_catalog_role so both accounts had access to the dba_views and they owned no objects. The compare window did not display any objects when I selected an object owning schema. The objects for the schema are, however, displayed in the object browser when "all users" or the schema is specified. It looks like the compare is not using the dba views even when "Use DBA view if available" option is checked.
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Aug 2003
Posts: 63
Member
|
Member
Joined: Aug 2003
Posts: 63 |
[quote=djkucera]Our organization would also greatly benefit from a solution to this compare object limitation. If it helps at all to raise the urgency of this case - we have an active 100 user support contract.
Would it be possible to get an update with respect to when we might be able to see a fix? ie. Will it make it into an 8.0 patch level? [/quote] We are even bigger - unlimited user licence. And EVERY user in our organization is dreaming about this option...
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Sep 2009
Posts: 14
Member
|
Member
Joined: Sep 2009
Posts: 14 |
I just wanted to check on this, please update. Thanks
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Aug 2003
Posts: 63
Member
|
Member
Joined: Aug 2003
Posts: 63 |
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Sep 2003
Posts: 389 London, UK
Member
|
Member
Joined: Sep 2003
Posts: 389 London, UK |
While we're at it, I notice that the 'Use DBA views if available' option doesn't work well with Compare User Objects for production vs dev/test environments at my current site, because even though my local account can access the DBA views, my read-only production account can't. I normally have the option checked, but when I want to compare something with production I have to go to preferences and uncheck it first to avoid a 'ORA-00942: table or view does not exist' error from the Target Schema dropdown when it tries to query dba_users. (Or, I've just discovered, select the target user from the list locally before connecting to the target session.) Maybe there could be a preference panel for Compare User Objects with this sort of thing on it.
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Aug 2003
Posts: 63
Member
|
Member
Joined: Aug 2003
Posts: 63 |
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Aug 2003
Posts: 63
Member
|
Member
Joined: Aug 2003
Posts: 63 |
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Aug 2003
Posts: 63
Member
|
Member
Joined: Aug 2003
Posts: 63 |
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Aug 1999
Posts: 22,487
Member
|
Member
Joined: Aug 1999
Posts: 22,487 |
I will post here when there is an update.
Marco Kalter Allround Automations
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Aug 2003
Posts: 63
Member
|
Member
Joined: Aug 2003
Posts: 63 |
I have been asking for this for the last 5 years. Guys who started this thread and were asking about this fix in the others - may be if you add your opinion here it will reduce waitng time from the next 5 years to something more reasonable.
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Aug 2003
Posts: 63
Member
|
Member
Joined: Aug 2003
Posts: 63 |
I was asked today by our IT Asset Management team if we are planning to prolong our existing service contract. Based on your responses (actually - lack of responses to pretty much all of the requests that came from our company. 5 years to implement "compare user objects" in production schema looks too long, sorry) I'm not sure we need to do this. Pretty much all new bells and wistles that were implemented in 8.0 version are either useless (at least for our company, and we are very heavy on daily Oracle development) or are not working as expected. Version 8.0.2.1505 01.60233 - Unlimited user license Service contract 11/1/2010
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Nov 2009
Posts: 20 New Jersey, USA
Member
|
OP
Member
Joined: Nov 2009
Posts: 20 New Jersey, USA |
Hi Marco,
Do you think that this issue will be resolved a near future release. The ability to compare objects from a user that owns no objects and only has access to dba view to a target user that also owns no objects and only has access to dba view would be a great help to any developer that works in a "best practice" environment.
Other then this enhancement, we have been very happy with with 8.0.2
Thanks,
--jeff
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Nov 2009
Posts: 20 New Jersey, USA
Member
|
OP
Member
Joined: Nov 2009
Posts: 20 New Jersey, USA |
Hi Marco,
I see the above was not fixed in 8.0.3. Any chance in next update.
Regards,
--jeff
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Aug 2003
Posts: 63
Member
|
Member
Joined: Aug 2003
Posts: 63 |
What I really don't understand - why is it so hard? It really looks like the problem is only in not using dba views while performing this operation. Are we missing something really complex? There are dozens of people in our company who are crying for this feature (and it looks like not in our company only). What is the real problem behind this request???
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Nov 2009
Posts: 20 New Jersey, USA
Member
|
OP
Member
Joined: Nov 2009
Posts: 20 New Jersey, USA |
Hi Marco,
Have have looked at debug.txt file for compare user objects and the select that generates the compare list uses sys.all_objects and not a dba view. I hve emailed you the debug.txt file. I can not say what is being uses on the target since I need a list of objects first to run the compare. I do know that if I log into an object owning schema and the target user only has select_catalog_role the target object is not found.
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Aug 2003
Posts: 63
Member
|
Member
Joined: Aug 2003
Posts: 63 |
Is there any chance at some point this problem is resolved?
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: May 2003
Posts: 113 Moenchengladbach; Germany
Member
|
Member
Joined: May 2003
Posts: 113 Moenchengladbach; Germany |
any update on this issue. I'm also waiting for a solution
Would be relay helpfull!!
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Aug 2003
Posts: 63
Member
|
Member
Joined: Aug 2003
Posts: 63 |
Just curious - hom many posts from different users can move this problem from freezing point?
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Jul 2004
Posts: 592
Member
|
Member
Joined: Jul 2004
Posts: 592 |
So far the answers have been "We're looking into a solution.", "We are working on a fix." and "I will post here when there is an update." What more do you want?
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Aug 2003
Posts: 63
Member
|
Member
Joined: Aug 2003
Posts: 63 |
I want to see some progress. Do you really think it's OK to have such answers for the last 6 (!!!) years? This feature (compare objects in prod environment under different schema) was originally requested in 2004. Now - in 2010 - we still cannot do it.
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Aug 2003
Posts: 63
Member
|
Member
Joined: Aug 2003
Posts: 63 |
Any chance to hear anything new on this problem?
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Aug 2003
Posts: 63
Member
|
Member
Joined: Aug 2003
Posts: 63 |
Any chance to hear anything new on this problem?
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Feb 2006
Posts: 619 Sao Paulo, Brazil
Member
|
Member
Joined: Feb 2006
Posts: 619 Sao Paulo, Brazil |
Hi!
So far, in the rare situations I needed to perform this task, I would generate source files and "Compare Source" instead of "Compare Objects". But I've been assigned to a new customer and this activity has become more and more frequent. So I'd like to see this in 9, or in a patch after the major release.
Regards, Gustavo
There are 10 types of people: those who know binary and those who don't.
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Aug 1999
Posts: 22,487
Member
|
Member
Joined: Aug 1999
Posts: 22,487 |
Version 9 should fix this.
Marco Kalter Allround Automations
|
|
|
Re: Compare objects with only select_catalog_role on target user
|
Joined: Feb 2006
Posts: 619 Sao Paulo, Brazil
Member
|
Member
Joined: Feb 2006
Posts: 619 Sao Paulo, Brazil |
Great! Thx!
There are 10 types of people: those who know binary and those who don't.
|
|
|
|
|