Print Thread
Page 1 of 5 1 2 3 4 5
Compare objects with only select_catalog_role on target user
#36367 11/03/09 04:05 PM
Joined: Nov 2009
Posts: 20
New Jersey, USA
J
Member
OP Offline
Member
J
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
Jeff_1947 #36379 11/04/09 12:15 PM
Joined: Aug 1999
Posts: 22,487
Member
Offline
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
Marco Kalter #36393 11/04/09 04:31 PM
Joined: Nov 2009
Posts: 20
New Jersey, USA
J
Member
OP Offline
Member
J
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
Jeff_1947 #36403 11/05/09 10:43 AM
Joined: Aug 1999
Posts: 22,487
Member
Offline
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
Marco Kalter #36411 11/05/09 01:44 PM
Joined: Nov 2009
Posts: 20
New Jersey, USA
J
Member
OP Offline
Member
J
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
Jeff_1947 #36424 11/06/09 10:35 AM
Joined: Aug 1999
Posts: 22,487
Member
Offline
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
Marco Kalter #36546 11/20/09 02:43 PM
Joined: Nov 2009
Posts: 20
New Jersey, USA
J
Member
OP Offline
Member
J
Joined: Nov 2009
Posts: 20
New Jersey, USA
Any update on this

Re: Compare objects with only select_catalog_role on target user
Jeff_1947 #36682 12/04/09 02:59 PM
Joined: Aug 2003
Posts: 63
V
Member
Offline
Member
V
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
vllr #36683 12/04/09 03:55 PM
Joined: Nov 2009
Posts: 20
New Jersey, USA
J
Member
OP Offline
Member
J
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
Jeff_1947 #36689 12/04/09 08:04 PM
Joined: Aug 2003
Posts: 63
V
Member
Offline
Member
V
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
vllr #36743 12/10/09 05:56 PM
Joined: Aug 2003
Posts: 63
V
Member
Offline
Member
V
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
vllr #36763 12/11/09 06:51 PM
Joined: Aug 2003
Posts: 63
V
Member
Offline
Member
V
Joined: Aug 2003
Posts: 63
Any chance to get any response?

Re: Compare objects with only select_catalog_role on target user
vllr #36767 12/14/09 10:40 AM
Joined: Aug 1999
Posts: 22,487
Member
Offline
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
Marco Kalter #36812 12/15/09 07:16 PM
Joined: Aug 2003
Posts: 63
V
Member
Offline
Member
V
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
vllr #36882 12/28/09 03:27 PM
Joined: Aug 2003
Posts: 63
V
Member
Offline
Member
V
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
vllr #36940 01/06/10 05:22 PM
Joined: Sep 2004
Posts: 6
Toronto
D
Member
Offline
Member
D
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
djkucera #36951 01/07/10 01:25 PM
Joined: Aug 1999
Posts: 22,487
Member
Offline
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
Marco Kalter #36958 01/07/10 05:58 PM
Joined: Nov 2009
Posts: 20
New Jersey, USA
J
Member
OP Offline
Member
J
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
djkucera #36962 01/08/10 04:07 PM
Joined: Aug 2003
Posts: 63
V
Member
Offline
Member
V
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
vllr #36988 01/12/10 03:32 PM
Joined: Sep 2009
Posts: 14
A
Member
Offline
Member
A
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
Arunosaur #37151 02/01/10 04:51 PM
Joined: Aug 2003
Posts: 63
V
Member
Offline
Member
V
Joined: Aug 2003
Posts: 63
Any update?

Re: Compare objects with only select_catalog_role on target user
Arunosaur #37153 02/01/10 07:00 PM
Joined: Sep 2003
Posts: 389
London, UK
Member
Offline
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
William Robertson #37235 02/08/10 05:03 PM
Joined: Aug 2003
Posts: 63
V
Member
Offline
Member
V
Joined: Aug 2003
Posts: 63
Any update?

Re: Compare objects with only select_catalog_role on target user
vllr #37315 02/16/10 03:58 PM
Joined: Aug 2003
Posts: 63
V
Member
Offline
Member
V
Joined: Aug 2003
Posts: 63
Any update?

Re: Compare objects with only select_catalog_role on target user
vllr #37373 02/22/10 03:10 PM
Joined: Aug 2003
Posts: 63
V
Member
Offline
Member
V
Joined: Aug 2003
Posts: 63
Any update?

Re: Compare objects with only select_catalog_role on target user
vllr #37379 02/23/10 11:23 AM
Joined: Aug 1999
Posts: 22,487
Member
Offline
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
Marco Kalter #37383 02/23/10 02:44 PM
Joined: Aug 2003
Posts: 63
V
Member
Offline
Member
V
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
vllr #37466 03/03/10 04:40 PM
Joined: Aug 2003
Posts: 63
V
Member
Offline
Member
V
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
vllr #37738 04/01/10 06:32 PM
Joined: Nov 2009
Posts: 20
New Jersey, USA
J
Member
OP Offline
Member
J
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
Jeff_1947 #37776 04/09/10 01:48 PM
Joined: Nov 2009
Posts: 20
New Jersey, USA
J
Member
OP Offline
Member
J
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
vllr #37788 04/12/10 06:42 PM
Joined: Aug 2003
Posts: 63
V
Member
Offline
Member
V
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
vllr #37909 04/23/10 06:55 PM
Joined: Nov 2009
Posts: 20
New Jersey, USA
J
Member
OP Offline
Member
J
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
Jeff_1947 #38078 05/19/10 06:01 PM
Joined: Aug 2003
Posts: 63
V
Member
Offline
Member
V
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
vllr #38080 05/20/10 07:51 AM
Joined: May 2003
Posts: 113
Moenchengladbach; Germany
Member
Offline
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
stef #38141 06/01/10 05:21 PM
Joined: Aug 2003
Posts: 63
V
Member
Offline
Member
V
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
vllr #38154 06/03/10 06:29 PM
Joined: Jul 2004
Posts: 592
W
Member
Offline
Member
W
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
Worker #38161 06/04/10 04:15 PM
Joined: Aug 2003
Posts: 63
V
Member
Offline
Member
V
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
vllr #38466 07/23/10 01:25 PM
Joined: Aug 2003
Posts: 63
V
Member
Offline
Member
V
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
vllr #38890 10/20/10 03:28 PM
Joined: Aug 2003
Posts: 63
V
Member
Offline
Member
V
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
vllr #39894 04/06/11 11:30 AM
Joined: Feb 2006
Posts: 619
Sao Paulo, Brazil
G
Member
Offline
Member
G
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
Gustavo #39900 04/06/11 12:21 PM
Joined: Aug 1999
Posts: 22,487
Member
Offline
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
Marco Kalter #39913 04/07/11 11:41 AM
Joined: Feb 2006
Posts: 619
Sao Paulo, Brazil
G
Member
Offline
Member
G
Joined: Feb 2006
Posts: 619
Sao Paulo, Brazil
Great! Thx! smile


There are 10 types of people: those who know binary and those who don't.
Page 1 of 5 1 2 3 4 5

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.056s Queries: 14 (0.010s) Memory: 2.7178 MB (Peak: 3.2235 MB) Data Comp: Off Server Time: 2024-12-04 06:41:40 UTC
Valid HTML 5 and Valid CSS