How to compare content in different versions of case?

Need to compare attributes of tables, columns, sequences etc between case115 and case121. Think I should be able to use views like ci_table_definitions to do that so tried setting up an account that dblinks to the different case dbs. Problem seems to be that I get duplicate rows retrieved from those views. If I sqlplus directly into case115
and run exec jr_context.set_workarea('GLOBAL SHARED WORKAREA') it seems to setup session so the view gives single row. So is there some sql to add to a query running from my dev account that would achieve the same filter? Alternativly is the source for jr_context available so I can build that in dev account? Any better ideas?
Thanks , Aidan

Thanks John, I'll look into that approach. This repository is shared by 100s of developers across multiple products so I'm not sure what licence I have to do much in the repository itself. Also although case115 is older version its still being updated - the requirement is not exactly to sync 4 different codelines as new features are added in later codelines but need to do comparisons to verify all essential updates have been made in different levels of schema.
Still be interested if anyone has a method of implementing the filter to avoid duplicate rows retrieved from these views. Currently just using a very basic rownum filter to avoid cartesian:
select ' '
,decode(case115.AUTO_GENERATED,case121.AUTO_GENERATED, null, 'CI_COLUMNS|'||case115_td.name||' | '||case115.name||' | AUTO_GENERATED | case115 | '||case115.AUTO_GENERATED||' | <> case121 | '||case121.AUTO_GENERATED)
,decode(case115.AVERAGE_LENGTH,case121.AVERAGE_LENGTH, null, 'CI_COLUMNS|'||case115_td.name||' | '||case115.name||' | AVERAGE_LENGTH | case115 | '||case115.AVERAGE_LENGTH||' | <> case121 | '||case121.AVERAGE_LENGTH)
.... generated select for all columns in a ci view
from
( select CC.rowid col_rowid, CC.NAME col_name, CC.ivid col_ivid,
CTD.ID ID, CTD.IVID IVID, CTD.NAME NAME, CTD.ALIAS ALIAS,
CTD.USER_DEFINED_PROPERTY_18 USER_DEFINED_PROPERTY_18
from CASE115_TABLE_DEFINITIONS CTD, CASE115_COLUMNS CC
where CTD.name like upper('&table%')
and cc.TABLE_REFERENCE = CTD.id
and cc.rowid = ( select cc_2.rowid from CASE115_COLUMNS cc_2
where cc_2.ID = cc.ID
and rownum = 1)
and CTD.rowid = ( select case115_TD_2.rowid from CASE115_TABLE_DEFINITIONS case115_TD_2
where case115_TD_2.ID = CTD.ID and ROWNUM = 1)) CASE115_TD,
( select CC.rowid col_rowid, CC.NAME col_name, CC.ivid col_ivid,
CTD.ID ID, CTD.IVID IVID, CTD.NAME NAME, CTD.ALIAS ALIAS,
CTD.USER_DEFINED_PROPERTY_18 USER_DEFINED_PROPERTY_18
from CASE121_TABLE_DEFINITIONS CTD, CASE121_COLUMNS CC
where CTD.name like upper('&table%')
and cc.TABLE_REFERENCE = CTD.id
and cc.rowid = ( select cc_2.rowid from CASE121_COLUMNS cc_2
where cc_2.ID = cc.ID
and rownum = 1)
and CTD.rowid = ( select case121_TD_2.rowid from CASE121_TABLE_DEFINITIONS case121_TD_2
where case121_TD_2.ID = CTD.ID and ROWNUM = 1)) CASE121_TD,
CASE115_COLUMNS case115, CASE121_COLUMNS case121
where CASE115.rowid = CASE115_TD.col_rowid
and CASE121.rowid = CASE121_TD.col_rowid
and case115_TD.name = case121_TD.name(+)
and case115_TD.col_name = case121_TD.col_name(+)
ORDER BY CASE115_TD.name, CASE115.order_sequence, CASE115_TD.col_name
So this works from a dev db that dblinks to 4 case repository dbs. Sql generates lots of blank lines that are stripped out. Its pretty slow! So be useful to replace the rownum filter with equivelent of jr_context.set_workarea('GLOBAL SHARED WORKAREA')
Regards, Aidan

Similar Messages

  • How to compare table in different versions?

    Hi,
    Please let me know how to comare table fields in different versions?
    Ex: I need to compare the table fields of version 4.5 with ECC6.0.
    Thank you.

    Hi,
      goto Se11 Transaction -> enter table -> display.
    Utilities ->Version -> version management
    now click on remote comparison -> enter target system.
    Regards
    Kiran Sure

  • I need Firefox 10.0 or 19.25 instead of 24.0, how do I get a different version?

    Firefox version 24.0 is not compatible with a website I frequent. I was told I need to use FIrefox 10.0 ,19.25 or Explorer 9.0 for the documents to be compatible. How do I download a different version of Firefox?

    In what way is Firefox not compatible with that website?
    Is that a problem with the user agent that is detected wrongly?

  • I've downloaded Adobe acrobat standard Dc only to find out it's not compatible w/windows XP.  How do I get a different version?

    I've downloaded Adobe acrobat standard Dc only to find out it's not compatible w/windows XP.  How do I get a different version?

    Hi vincelucy,
    If you've purchased a previous version, you can download older installers from this page: Download Acrobat products | Standard, Pro | DC, XI, X (you'll need your serial number to complete the installation).
    Best,
    Sara

  • How can I run two different versions of Firefox, the latest does not work with an important site I need to use?

    With the latest version of Firefox I cannot send "Quick Mails" to my students using the college's ANGEL system. I had to uninstall it and go to an earlier version. I prefer the newest rev.
    Any way to run two different versions. It does not have to be simultaniously. Seems to be a problem on both my Mac and XP systems.
    Thanks,
    Kim

    Currently I don't think there is a way to run two version of firefox at the same time. But you can install Firefox Beta or Aurora instead (which is build for future release for firefox) and help test it! Here's the link:
    http://www.mozilla.org/en-US/firefox/channel/

  • How can i deploy two different versions of the same application on the same server??

    I have two different versions of an application. One is a released version. And another version under development. I need to port this version of the application to the same server. I'm using the same classes and packages(except for some new ones). Is it sufficient if i change the name of my ear(application name). Or should i change my code also.

    Hi
    You can repackage the new versions of ear,jar and war with different names. I hope that should work well.
    Cheers
    -pradeep

  • How do I set up different versions of FF so that they do not interact?

    Changes to the 'safety' of FF mean that some HTML script applications will not allow loading of a file from your own hard drive through Windows File Picker. This eliminates use of FF for some hobby research.
    I've tried to install 2.0.0.20 [latest version with this working] and then use current versions for on line. However they interact, using the same profile and preferences.
    Can I have two, independent versions on the same computer? How is it set up to keep them completely 'isolated'? Two drives are available [and tried!]
    Until I can solve this, I've reverted to version 2-20
    Thanks!

    >> I'm not looking for different profiles in the -=same=- version of Firefox,
    >> but looking to run -=separate=- versions.
    Doesn't make any difference the answer is still the same, did you read the MozillaZine links that John99 provided, you can ONLY have one default browser. Your separate versions of Firefox and profiles that are not the default firefox and profile must all use '''-no-remote''' or you will be in trouble.
    Using multiple profiles - Firefox - MozillaZine Knowledge Base
    : http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox
    Version 2 was the same way..
    More Information &amp; Pictures -- Running on Windows 7
    * '''User:Dmcritchie''' - MozillaZine Knowledge Base<br>http://kb.mozillazine.org/User:Dmcritchie
    ** ff_colorized_profiles.png (PNG Image, 1280x768 pixels) - Scaled (79%)<br>('''Shows several versions of Firefox running at the same time''')<br>http://dmcritchie.mvps.org/icons/ff_colorized_profiles.png
    ** Color Toolbar(s) to identify profile (DM*) - Themes and Skins for Browser <br>http://userstyles.org/styles/9514/color-toolbar-s-to-identify-profile-dm
    * '''Windows 7 Home Premium'''<br>http://dmcritchie.mvps.org/windows-7/win7.htm
    ** win7_quicklaunch_large.png (PNG Image, 1366x768 pixels) - Scaled (79%)<br>(Shows my Quick Launch & folders Running on Win7 -- yes you can still have Quick Launch on Win7)<br>http://dmcritchie.mvps.org/icons/win7_quicklaunch_large.png

  • How to compare content of two text file using StreamTokenizer

    hi....
    i have two text files...containg field like(name,number,scheme) and(number,date,value)... i want to create a third file containg field like (name,number,date,scheme,value) by using these two table. how to create

    I think this code can solve your problem.
    private static final String DELIM = ",";
    * Compile two files.
    * @param file1 String the input file 1
    * @param file2 String the input file 2
    * @param file3 String the output file
    * @throws IOException error in reading/writing
    public void compileFiles(String file1, String file2, String file3) throws
            IOException {
            BufferedReader reader1 = new BufferedReader(new InputStreamReader(
                new FileInputStream(file1)));
            BufferedReader reader2 = new BufferedReader(new InputStreamReader(
                new FileInputStream(file2)));
            BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(
                new FileOutputStream(file3)));
            String line1 = reader1.readLine();
            String line2 = reader2.readLine();
            while (line1 != null && line2 != null) {
                writer.write(compileLines(line1, line2));
                writer.newLine();
                line1 = reader1.readLine();
                line2 = reader2.readLine();
            reader1.close();
            reader2.close();
            writer.close();
        private String compileLines(String line1, String line2) {
            StringTokenizer tok1 = new StringTokenizer(line1, DELIM);
            StringTokenizer tok2 = new StringTokenizer(line2, DELIM);
            String name = tok1.nextToken();
            String number = tok1.nextToken();
            String scheme = tok1.nextToken();
            // ignore number
            tok2.nextToken();
            String date = tok2.nextToken();
            String value = tok2.nextToken();
            StringBuffer buffer = new StringBuffer();
            buffer.append(name);
            buffer.append(DELIM);
            buffer.append(number);
            buffer.append(DELIM);
            buffer.append(date);
            buffer.append(DELIM);
            buffer.append(scheme);
            buffer.append(DELIM);
            buffer.append(value);
            return buffer.toString();
        }

  • How to export/import Agenda different versions contacts  .

    I bought a MacBook Pro Os X version 10.8.2 with Agenda version 7.1 (1167) and I am trying to export contacs to a MacBook OS X version 10.7.4 with Agenda version 6.1.2 (1090).
    Using standard procedure export/import menus does not work.
    Any suggestions.
    THANKS

    I bought a MacBook Pro Os X version 10.8.2 with Agenda version 7.1 (1167) and I am trying to export contacs to a MacBook OS X version 10.7.4 with Agenda version 6.1.2 (1090).
    Using standard procedure export/import menus does not work.
    Any suggestions.
    THANKS

  • How to compare tables from different schema.

    Edited by: Adi's on 24-Jan-2010 03:30

    i am done with this report...
    sorry for editing it like that
    Edited by: Adi's on 24-Jan-2010 03:31

  • How to compare the contents of two different tables

    hello. can somebody give me an idean on how to compare the contents of two different tables in mysql?
    example, i have a table named Main List and a table named New List.
    The contents of the New List should be compared to the contents of the
    Main List, to check if they are equal. I don't have any idea how to manipulate
    this data. Hoping for your help. Thanks.

    it is better to comapre it using java.. try get the resultset first and store that in collections then comapre the two collections

  • How to compare 2 different versions of a document in Lion?

    Supported applications in Lion reduntantly autosave several versions of a document, even if the user does not want to.
    Does anybody know how to compare two arbitrary versions and see in what they differ (kind of the old good diff command in Unix)?
    Thank you

    If yo will click on the name/title of the document (there'll be a small arrow on the right of it), you will get this menu:
    You can choose to browse all versions....

  • How to compare 2 different repositories in Designer 2000?

    How to compare 2 different repositories in Designer 2000?
    Is it possible to compare repositories?
    If yes, how can i do that? Is there a tool for this?
    Situation:
    I've 2 different designer repositories. I've compared in the database schema DES2_MANAGER the table SDD_ELEMENTS with the second database.
    I've compared the modules, where the last_update_date was different.
    Result was 10 screens. So now i want to compare these modules(SCREEN) in designer with an other designer Repositorie.
    Thanks anyway

    If yo will click on the name/title of the document (there'll be a small arrow on the right of it), you will get this menu:
    You can choose to browse all versions....

  • Compare different versions of a workflow template

    Hi,
    How can we compare workflow templates? We need to compare the different
    versions available in our Quality and development systems for any kind of
    changes -
    1. new steps added
    2. steps deleted
    3. other changes related to binding, events etc..
    What is best way to compare different versions of a workflow template??
    regards,
    revoori

    Try from t-code..
    PFTC..

  • How to compare between two versions of template project???

    Dear All,
    We are doing some cleanup activity in our solution manager system. For this actually we have created the replica of this project from production system to a sandbox system. We can do the cleanup of this project and can transport this new project to our production system and can move on.
    But the pbm we are facing now is, how do we bring in the data captured or added to the production system after we have copied it to the sandbox system?
    Can anybody throw in some light into this issue?
    We tried the option of creating different version for the template and using the sa_project_upgrade transaction to compare between two versions of the template using "Current Version in Project" option. Not sure whether this will work out.
    {{We thought that if we try in this way, we can find the difference between the two versions of the template project, and from there, might be we can bring in the new changes into our new project manually. We do agree that this is not the right approach.}}
    But the end result we got was like we got the information regarding where all there is the difference between the current version in the template project to that of the original(in our case it checked against BPR as we selected the scenarios from BPR for this template). But what we expected was a difference between two versions of the template.
    Pls help. Pls make a try to help. Any thoughts in this direction will help us to move forward.
    Any info will be suitably rewarded.
    best regards,
    Krishna.

    Hi Andreas,
    Thanks a lot for your immediate reply.
    I too had that doubt that my appraoch will not work. But wanted to get confirmation that it will not work. Also wanted to know about any other approach. Thank you for providing me with some alternative approach.
    I tried the option suggested by you. But while running the comparison report for the newly copied project with the option "New Version of Original", I am getting the below error. I do agree that this approach should work. But for some reason I am getting the below error. Can you pls look into the same and help me out.
    Internal error
    Message no. AI_COMPARE006
    Diagnosis
    An unexpected error has occurred in:
               program CL_SA_PROJECT_UPGRADE_ONLINE==CP
               include CL_SA_PROJECT_UPGRADE_ONLINE==CM002
               line                                                  102
    Procedure
    Restart the transaction. If the problem persists, check if a SAP note is existing for this problem. If not please send a message to the SAP hotline.
    Thanks a lot in advance.
    best regards,
    Krishna.

Maybe you are looking for

  • Will doing a teathered restore to iOS 5.1.1 help my battery life?

    OK I waited over a month to update my iPhone 4s to iOS 5.1.1.  I did an OTA update (Which I think was my problem)  I got hit with the battery drain bug that apparently comes with an OTA update of the OS. I Did the following: 1. Full backup to iTunes

  • Passing value from JSP to JApplet

    Hello, I am stuck up with a problem, can anyone please tell me how do i pass a value from a JSP page to a JApplet, and the parameter passed through JSP should be displaed in the JTextArea. It would be kindful if any of you could help. Thanks Sanam

  • Unable to install 1.6.0_17 JRE in Linux FC12

    Hi, I am having Linux FC(Fedora) 12 - 64 bit system. I am trying to install JRE 1.6.0_17, and get the following error when trying to install ( jre-6u17-linux-x64.bin). Do you agree to the above license terms? [yes or no] yes Unpacking... Checksumming

  • Lightroom 5.7 import hangs up

    I have Lightroom 5.7 running on a PC, 8.1 Windows op system.  Lightroom 5 opens and I can get to the library but when I try and import more pictures for a new collection, it hangs up and I get a message: "Adobe Photoshop Lightoom 64 has stopped worki

  • Give Support Guys permission to perform remote wipe or remove device from the mailbox

    Hi Guys, Can anyone please advise what group should I put the admin user so that they remote wipe or remove the mobile device from the user mailbox. I thought once user is in Exchange Recipient Administrators group should perform this task but I may