Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Database Diff unable to compare package with special characters inside

Lukas HorwathMay 1 2019 — edited May 1 2019

Could you please check the following issue with the Database Diff tool, I have sometimes problems with comparing two schemas and it gives me sometimes the message „Unable to compare objects….“ and I think I can replicate it now. It occurs only with one package when there are differences within the packages, when there is no diff, then it seems to work.

Steps to replicate, compile this code in two different databases, same schema name (but works also within one database with two different schemas with „consolidate“):

create or replace package diffme as

-- '0123456789 ~!@#$%^&*()_+=-`{}[]|\?><,./"''',

end diffme;

/

My diff settings:

pastedImage_0.pngpastedImage_1.pngpastedImage_2.png

Now change the code in source destination:

create or replace package diffme as

-- diff

-- '0123456789 ~!@#$%^&*()_+=-`{}[]|\?><,./"''',

end diffme;

/

And you should get this:

pastedImage_1.png

Next remove the character > and the diff works:

pastedImage_4.png

In the logging page I can see that you are using dbms_metadata.get_xml, maybe there is an issue there?

When I call get_xml this line of code is:

<SOURCE>-- '0123456789 ~!@#$%^&*()_+=-`{}[]|\?><,./"''',

</SOURCE>

I’m using SQL Developer Version 19.1.0.094 Build 094.2042, but should be independent and works with older versions.

Thanks,

Lukas

Comments

Processing

Post Details

Added on May 1 2019
1 comment
334 views