# Schema Comparison from SDXML Source Cannot do Column Level Grants

**URL:** <https://forums.toadworld.com/t/schema-comparison-from-sdxml-source-cannot-do-column-level-grants/28817>\
**Category:** Toad for Oracle & DevOps Toolkit\
**Created:** [February 13, 2014, 11:44am UTC](https://forums.toadworld.com/t/schema-comparison-from-sdxml-source-cannot-do-column-level-grants/28817 "2014-02-13T11:44:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![chazamania](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/chazamania/32/137_2.png) [@chazamania](https://forums.toadworld.com/u/chazamania)\
**Post date:** [February 13, 2014, 11:44am UTC](https://forums.toadworld.com/t/schema-comparison-from-sdxml-source-cannot-do-column-level-grants/28817/1 "2014-02-13T11:44:44Z")

</div>

Steps to reproduce on 12.1 (same issue in 11.6 generated file using 11.6).1. Do DB to DB comparison of just grants and create a schema snapshot file. My sample grants identical on both sides:

GRANT SELECT ON SCOTT.TABLE TO ROLE\_VIEWER;  
GRANT UPDATE (COL1) ON SCOTT.TABLE TO ROLE\_VIEWER;

1. Observe no diffs in the results

2. Change source to newly generated snapshot file.

3. Compare and diffs report GRANT UPDATE (COL1) ON SCOTT.TABLE TO ROLE\_VIEWER

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [February 13, 2014, 12:10pm UTC](https://forums.toadworld.com/t/schema-comparison-from-sdxml-source-cannot-do-column-level-grants/28817/2 "2014-02-13T12:10:43Z")

</div>

Thanks. It’s a bug. It will be fixed in the next beta. The column level grants are making it into the file from Toad, they just aren’t making it into  
Toad from the file.

**From:** chazamania [[mailto:bounce-chazamania@toadworld.com](mailto:bounce-chazamania@toadworld.com)]

**Sent:** Thursday, February 13, 2014 1:45 PM

**To:** [toadoracle@toadworld.com](mailto:toadoracle@toadworld.com)

**Subject:** [Toad for Oracle - Discussion Forum] Schema Comparison from SDXML Source Cannot do Column Level Grants

**[Schema Comparison from SDXML Source Cannot do Column Level Grants](http://www.toadworld.com/products/toad-for-oracle/f/10/t/21332.aspx)**

Thread created by chazamania

Steps to reproduce on 12.1 (same issue in 11.6 generated file using 11.6).1. Do DB to DB comparison of just grants and create a schema snapshot file. My sample grants identical on both sides:

GRANT SELECT ON SCOTT.TABLE TO ROLE\_VIEWER;

GRANT UPDATE (COL1) ON SCOTT.TABLE TO ROLE\_VIEWER;

1. Observe no diffs in the results

2. Change source to newly generated snapshot file.

3. Compare and diffs report GRANT UPDATE (COL1) ON SCOTT.TABLE TO ROLE\_VIEWER

To reply, please reply-all to this email.

[Stop receiving emails](http://www.toadworld.com/products/toad-for-oracle/f/10/t/21332.aspx?subscribe=false) on this subject.

Or [  
Unsubscribe from Toad for Oracle - General](http://www.toadworld.com/products/toad-for-oracle/f/10.aspx?subscribe=false) notifications altogether.

Toad for Oracle - Discussion Forum

[Flag](http://www.toadworld.com/products/toad-for-oracle/f/10/t/21332.aspx?AbuseContentId=7730354e-166c-45ea-9a55-f6181571accf&AbuseContentTypeId=46448885-d0e6-4133-bbfb-f0cd7b0fd6f7&AbuseFlag=true)  
this post as spam/abuse.

![](http://gyk.r.mailjet.com/o/04j0/62b60348/pk7j415e.gif)

---

<div class="post-metadata">

**Author:** ![chazamania](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/chazamania/32/137_2.png) [@chazamania](https://forums.toadworld.com/u/chazamania)\
**Post date:** [February 14, 2014, 5:55am UTC](https://forums.toadworld.com/t/schema-comparison-from-sdxml-source-cannot-do-column-level-grants/28817/3 "2014-02-14T05:55:21Z")

</div>

So my production 11.6 captured sdxml can be compared to a locally generated sdxml from my dev environment on my “off-this-network” beta box. Makes my life much easier with the bug not in the sdxml files.

Question on grant comparisons. Is it possible to exclude some roles in the comparison? Scenario - production site has added a few roles to our apps to support some of their monitoring apps and they all are named '%LOCAL%. I’m getting 900+ hits on grants and about 5% are legit and the others are all on the LOCAL grants. As a workaround, I dumped them all to excel and used the filtering there to get it right and then re-compared and added them to the exclusion list. I can put this in the Idea Pond if this is really an enhancement. Just wanted to check since I’m knee deep in grants in this thread.

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [February 14, 2014, 6:27am UTC](https://forums.toadworld.com/t/schema-comparison-from-sdxml-source-cannot-do-column-level-grants/28817/4 "2014-02-14T06:27:34Z")

</div>

Hm, yeah there really isn’t a way to filter the SDXML file other than uncheck the object types that you’re not interested in.

If I added a wildcard feature to the exclusion file, would that help you?

---

<div class="post-metadata">

**Author:** ![chazamania](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/chazamania/32/137_2.png) [@chazamania](https://forums.toadworld.com/u/chazamania)\
**Post date:** [February 14, 2014, 6:39am UTC](https://forums.toadworld.com/t/schema-comparison-from-sdxml-source-cannot-do-column-level-grants/28817/5 "2014-02-14T06:39:49Z")

</div>

That should do it if I could a single wildcard on the LOCAL in the samples of my mega-exclusion file. Something like: “Grant: %TO%LOCAL%” so it applies just to grants and a role/user vs an object with local in the name.

current samples:

Grant:ADMIN TO LOCAL\_DBAPPS

Grant:ADMIN TO LOCAL\_TOAD\_CDA\_TABLES

Grant:ADMIN TO LOCAL\_TOAD\_USER\_TABLES

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [February 14, 2014, 7:28am UTC](https://forums.toadworld.com/t/schema-comparison-from-sdxml-source-cannot-do-column-level-grants/28817/6 "2014-02-14T07:28:51Z")

</div>

OK, this will be in the next beta. Wildcards can apply to any object type.

All of these will work:

Grant: %TO%LOCAL%

Grant: _TO_LOCAL\*

_LOCAL_

---

<div class="post-metadata">

**Author:** ![chazamania](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/chazamania/32/137_2.png) [@chazamania](https://forums.toadworld.com/u/chazamania)\
**Post date:** [February 21, 2014, 9:55am UTC](https://forums.toadworld.com/t/schema-comparison-from-sdxml-source-cannot-do-column-level-grants/28817/7 "2014-02-21T09:55:47Z")

</div>

The column level grant comparisons from SDXML files and the exclusion filters worked like a champ. Thanks again.

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [February 21, 2014, 9:57am UTC](https://forums.toadworld.com/t/schema-comparison-from-sdxml-source-cannot-do-column-level-grants/28817/8 "2014-02-21T09:57:09Z")

</div>

I’m glad to hear it. You’re welcome.
