Script for Compare same table 'TAB1' structures in different schemas

Hello, i am having three schema and in all schema i have same table for example TAB1 and i want to Compare TAB1 table structures in all three schema but i don't know the script. the different should content at least  DATA_TYPE,DATA_LENGTH,DECODE(DATA_PRECISION,NULL,NULL,DATA_PRECISION||','||DATA_SCALE) columns in query. Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi Thanks..

If you want a generic script use below function to get the difference.. Run the below script and let me know in case of any issues
CREATE OR REPLACE TYPE nt_username IS TABLE OF VARCHAR2(50);
CREATE OR REPLACE TYPE obj_struc IS OBJECT (user_name1     VARCHAR2(30),
                                           user_name2      VARCHAR2(30),
                                           column_name1    VARCHAR2(30),
                                           column_name2    VARCHAR2(30),
                                           data_type1      VARCHAR2(106),
                                           data_type2      VARCHAR2(106),
                                           data_length1    NUMBER(10),
                                           data_length2    NUMBER(10),
                                           data_precision1 VARCHAR2(50),
                                           data_precision2 VARCHAR2(50),
                                           column_id1      NUMBER(10),
                                           column_id2      NUMBER(10)
CREATE OR REPLACE TYPE nt_struc IS TABLE OF obj_struc;
CREATE OR REPLACE FUNCTION tabstruc_script (p_tabnm   VARCHAR2,
                                            p_usernm  nt_username
RETURN nt_struc
AS
v_nt_struc nt_struc := nt_struc();
v_ntusrnm nt_username := p_usernm;
TYPE rec_stru IS RECORD (column_name    all_tab_columns.column_name%TYPE,
                         data_type      all_tab_columns.data_type%TYPE,
                         data_length    all_tab_columns.data_length%TYPE,
                         data_precision all_tab_columns.data_precision%TYPE,
                         data_scale     all_tab_columns.data_scale%TYPE,
                         column_id      all_tab_columns.column_id%TYPE
TYPE nt_stru IS TABLE OF rec_stru;
v_ntstru nt_stru  := nt_stru();
v_columnname all_tab_columns.column_name%TYPE;
v_reccnt NUMBER;
v_cnt NUMBER;
v_precision1 VARCHAR2(50);
v_precision2 VARCHAR2(50);                    
BEGIN
FOR i IN 1..v_ntusrnm.COUNT
  LOOP
     SELECT COUNT(*) INTO v_reccnt
     FROM all_tables
     WHERE owner = v_ntusrnm(i)
     AND table_name = p_tabnm;
      IF v_reccnt >= 1 THEN
         SELECT column_name,  
                data_type,    
                data_length, 
                data_precision,
                data_scale,
                column_id
         BULK COLLECT INTO v_ntstru
         FROM all_tab_columns
         WHERE owner = v_ntusrnm(i)
         AND table_name = p_tabnm;
          FOR j IN i+1..v_ntusrnm.COUNT
            LOOP
                 FOR k IN 1..v_ntstru.COUNT
                   LOOP
                      SELECT COUNT(*) INTO v_cnt
                      FROM all_tab_columns
                      WHERE owner = v_ntusrnm(j)
                      AND table_name = p_tabnm
                      AND column_name = v_ntstru(k).column_name;
                       IF v_cnt >= 1 THEN
                         FOR l IN (SELECT column_name,  
                                          data_type,    
                                          data_length, 
                                          data_precision,
                                          data_scale,
                                          column_id
                                   FROM all_tab_columns
                                   WHERE owner = v_ntusrnm(j)
                                   AND table_name = p_tabnm
                                   AND column_name = v_ntstru(k).column_name)
                            LOOP
                              IF ((v_ntstru(k).column_id <> l.column_id)
                                  OR (v_ntstru(k).data_type <> l.data_type)
                                  OR (NVL(v_ntstru(k).data_length,0) <> NVL(l.data_length,0))
                                  OR (NVL(v_ntstru(k).data_precision,0) <> NVL(l.data_precision,0))
                                  OR (NVL(v_ntstru(k).data_scale,0) <> NVL(l.data_scale,0))) THEN
                                 v_nt_struc.EXTEND;
                                 SELECT DECODE(v_ntstru(k).data_precision,NULL,NULL,v_ntstru(k).data_precision||','||v_ntstru(k).data_scale),
                                        DECODE(l.data_precision,NULL,NULL,l.data_precision||','||l.data_scale)
                                 INTO v_precision1,
                                      v_precision2
                                 FROM DUAL;
                                 v_nt_struc(v_nt_struc.COUNT) := obj_struc(v_ntusrnm(i),
                                                                           v_ntusrnm(j),
                                                                           v_ntstru(k).column_name,
                                                                           l.column_name,
                                                                           v_ntstru(k).data_type,
                                                                           l.data_type,
                                                                           v_ntstru(k).data_length,
                                                                           l.data_length,
                                                                           v_precision1,
                                                                           v_precision2,
                                                                           v_ntstru(k).column_id,
                                                                           l.column_id);
                              END IF;
                            END LOOP;
                       END IF;
                   END LOOP;
                  FOR m IN(SELECT column_name,  
                                  data_type,    
                                  data_length, 
                                  data_precision,
                                  data_scale,
                                  column_id
                           FROM all_tab_columns
                           WHERE owner = v_ntusrnm(i)
                           AND table_name = p_tabnm
                           AND column_name NOT IN(SELECT column_name
                                                  FROM all_tab_columns
                                                  WHERE owner = v_ntusrnm(j)
                                                  AND table_name = p_tabnm))
                      LOOP                                         
                        v_nt_struc.EXTEND;
                        SELECT DECODE(m.data_precision,NULL,NULL,m.data_precision||','||m.data_scale)
                        INTO v_precision1
                        FROM DUAL;
                        v_nt_struc(v_nt_struc.COUNT) := obj_struc(v_ntusrnm(i),
                                                                  v_ntusrnm(j),
                                                                  m.column_name,
                                                                  NULL,
                                                                  m.data_type,
                                                                  NULL,
                                                                  m.data_length,
                                                                  NULL,
                                                                  v_precision1,
                                                                  NULL,
                                                                  m.column_id,
                                                                  NULL);
                      END LOOP;
                     FOR n IN(SELECT column_name,  
                                      data_type,    
                                      data_length, 
                                      data_precision,
                                      data_scale,
                                      column_id
                               FROM all_tab_columns
                               WHERE owner = v_ntusrnm(j)
                               AND table_name = p_tabnm
                               AND column_name NOT IN(SELECT column_name
                                                      FROM all_tab_columns
                                                      WHERE owner = v_ntusrnm(i)
                                                      AND table_name = p_tabnm))
                       LOOP
                        v_nt_struc.EXTEND;
                        SELECT DECODE(n.data_precision,NULL,NULL,n.data_precision||','||n.data_scale)
                        INTO v_precision2
                        FROM DUAL;
                        v_nt_struc(v_nt_struc.COUNT) := obj_struc(v_ntusrnm(j),
                                                                  v_ntusrnm(i),
                                                                  n.column_name,
                                                                  NULL,
                                                                  n.data_type,
                                                                  NULL,
                                                                  n.data_length,
                                                                  NULL,
                                                                  v_precision2,
                                                                  NULL,
                                                                  n.column_id,
                                                                  NULL);
                       END LOOP;
                    END LOOP;
        END IF;
  END LOOP;
RETURN v_nt_struc;
EXCEPTION
WHEN OTHERS THEN
  RAISE;
END tabstruc_script;
SELECT * FROM TABLE(tabstruc_script(:tabnm,nt_username(:user1,:user2,:user3)));
You need to pass tablename and username to calling this function. Username is a nested table here so you can pass like nt_username(:user1,:user2,:user3)

Similar Messages

  • Errors when browsing same table name in a different schema.

    I have two separate schema in a database and each has a table with the same name but different columns. I used the GUI to change the column order while looking at the data on one table. Now I can't see data in the other table and I get the error message ORA-00904: "DAY_DT": invalid identifier. I have tried to clear the persisted settings on both tables and I have disconnected and logged out SQLDeveloper and the problem still persists. How can I fix this.
    Edited by: user507794 on Apr 14, 2010 8:51 AM

    I had another user try to look at data in the table from his account on his PC and he saw the same error. So I looked a little deeper. The situation seems to be this
    user_a creates a table and a public synonym of the same name. user_a grants select on the table to user_c
    user_b creates a table using the same name as user_a's table with different columns. user_b grants select on the table to user_c
    user_c can use the GUI to see the the data in user_a's table.
    user_c cannot use the GUI to see user_b's table data. The GUI returns an error ORA-00904: "XXX": invalid identifier where XXX is a column on user_a's table.

  • Compare table structures in different schemas. help please

    Hi all,
    I have a question...
    I have tables on different schemas some thing like
    Schema A
    Table 1
    Table 2
    Table 3
    Schema B
    Table 1
    Table 2
    Table 3
    Now situation is Table 1 and Table 2 will have similar structure or Table 1 in Schema B will have additional columns.
    like so... on... for all other tables...
    example !
    Schema A:
    Desc Table 1;
    Name                                  Type            Null
    No                                Number            Notnull
    Name                           Varchar2(10)     Not null
    Fee                              Number (10,2)   Not null
    Scheam B;
    Desc Table1;
    Name                                  Type               Null
    DX_No                                Number            Notnull
    DX_Name                           Varchar2(10)      Not null
    DX_Fee                              Number (10,2)   Not null
    comments                          Varchar(2)        Now I need to write a procedure sort of thing to compare these tables which are in different in column names in both schema and get it exported to Excel sheet.
    and here thing is first three columns SHOULD BE TREATED AS SAME even though prefix of DX_ exist since REST OF THE PART OF COLUMN NAME IS SAME.
    and in same way commets is new coloumn in schema B only..So that should be highlighted excel sheets..
    I am not sure how OAD or SQL Developer handle this...Is there any plsql block I can write to do above..
    Thanks in advance..

    An example of one method (this is just a starting point, you'll have to build it out to suit your needs).
    create table emp as select * from scott.emp where 1=0;
    alter table emp add (junk number(1));
    select
          t1.column_name as t1_column_name
       ,  t2.column_name as t2_column_name
    from
       select column_name
       from
          dba_tab_columns
       where
          table_name  = 'EMP'
       and
          owner       = user
    ) t1
    full outer join
       select column_name
       from
          dba_tab_columns
       where
          table_name  = 'EMP'
       and
          owner       = 'SCOTT'
    ) t2
    on (t1.column_name = t2.column_name)
    where
       t1.column_name is null
    or
       t2.column_name is null;
    T1_COLUMN_NAME                 T2_COLUMN_NAME
    JUNK
    1 row selected.
    TUBBY_TUBBZ?If you need to remove prefix's ... you would just do that in the select list (using regexp_replace, translate, substr, whatever you think is appropriate for your situation).
    Edited by: Tubby on Nov 6, 2010 12:38 PM
    Forgot to mention that this code will report differences between two schemas, regardless of where the additional columns reside ... if you have a 'master' schema that is the definitive source, then you would want to use the query provided by Xtender.

  • Where can I find the script for the sample table?

    Hi,
    Where can I find the script for the sample tables, like emp, dept, ... ?
    Regards,
    Rosaline

    http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/appdev.817/a77069/preface.htm#420431
    Hi,
    Where can I find the script for the sample tables, like emp, dept, ... ?
    Regards,
    Rosaline

  • JDBC Lookup - Import table data from a different schema in same DB

    Hi XI Experts,
    We are facing an issue while importing a Database table into the external definition in PI 7.1.
    The details are as below:
    I have configured user 'A' in PI communication channel to access the database. But the table that I want to access is present in schema "B". Due to this, I am unable to view the table that I have to import in the list available.
    In other words, I am trying to access a table present in a different schema in the same database. Please note that my user has been given all the required permissions to access different schema. Even then, I am unable to access the table in different schema.
    Kindly provide your valuable suggestions as to how I can import table which is present in another schema but in the same Database.
    Regards,
    Subbu

    If you are using PI 7.1, then you can do JDBC Lookup to import JDBC meta data (table structures from DB). Configure a jdbc receiver communication channel where you specify username and password which has permission to access schema A and Schema B of database. Specify database name in the connection string. Then you might have access to import both schema.
    Please refer these links
    SAP PI 7.1 Mapping Enhancements Series: Graphical Support for JDBC and RFC Lookups
    How to use JDBC Lookup in PI 7.1 ?

  • HT3702 I have two charges to my credit card for the same dollar amount at two different times. First on 2/27/14 & second on 3/25/14 for $4.34. today's is pending payment and last months has been removed form my account. I have not purchased anything.

    I have two charges to my credit card for the same dollar amount at two different times. First on 2/27/14 & second on 3/25/14 for $4.34. today's is pending payment and last months has been removed from my account. I have not purchased anything.

    If they are regular payments for the same amount then it sounds like you have an auto-renewing subscription - there are instructions on this page for managing and stopping them : http://support.apple.com/kb/HT4098

  • Sinlge select query in diff schemas for same table(Indentical Structure)

    Scenario :
    Table XYZ is created in Schema A
    After an year, the old data from the previous year would be moved to different schema. However in the other schema the same table name would be used.
    For eg
    Schema A contains table XYZ with data of 2012 yr
    Schema B contains table XYZ with data of 2011 yr
    Table XYZ in both the schemas have identical structure.
    So can we fire a single select query to read the data from both the tables in effective way.
    Eg select * from XYZ where date range between 15-Oct-2011 to 15-Mar-2012.
    However the data resides in 2 different schema altogether.
    Creating an view is an option.
    But my problem, there is ORM layer(either Hibernate or Eclipse Top Link) between the application and the database.
    So the queries would be formed by the ORM layer and are not hand generated.
    So i cannot use view.
    So is there any option that would allow me to use single query on different schema's ?

    Hi,
    970773 wrote:
    Scenario :
    Table XYZ is created in Schema A
    After an year, the old data from the previous year would be moved to different schema. However in the other schema the same table name would be used.
    For eg
    Schema A contains table XYZ with data of 2012 yr
    Schema B contains table XYZ with data of 2011 yr
    Table XYZ in both the schemas have identical structure.
    So can we fire a single select query to read the data from both the tables in effective way.That depends on what you mean by "effective".
    Eg select * from XYZ where date range between 15-Oct-2011 to 15-Mar-2012.
    However the data resides in 2 different schema altogether.You can do a UNION, so the data from the two years appears together. The number of actual tables may make the query slower, but it won;t change the results.
    Given that you have 2 tables, the fact that they are in different schemas doesn't matter. Just make sure the user running the query has SELECT privileges on both of them.
    Creating an view is an option.Is it? You seem to say it is not, below.
    But my problem, there is ORM layer(either Hibernate or Eclipse Top Link) between the application and the database.
    So the queries would be formed by the ORM layer and are not hand generated.
    So i cannot use view.So creating a view is not an option. Or is it?
    So is there any option that would allow me to use single query on different schema's ?Anything that you can do with a view, you can do with sub-queries. A view is merely a convenience; it just saves a sub-query, so you don't have to re-code it every time you use it. Assuming you have privilges to query the base tables, you can always avoid using a view by repeating the query that defines the view in your own query. It will not be any slower

  • Script to compare 2 tables and retrieve the differences in records data

    Dear All,
    please I need a script to compare two oracle database tables and retrieves the differences in data records between the two tables.
    I have tried this one :
    -- all rows that are in T1 but not in T2
    (select * from T1 minus select * from T2)
    union all
    -- all rows that are in T2 but not in T1
    (select * from T2 minus select * from T1);
    But it generates the following error:
    ORA-01789: query block has incorrect number of result columns
    Thank you for your cooperation , please it is urgent

    ok I used this statement with dblink, the problem is that i cannot use PL/SQL developer since it is a process repeated for 300 tables , that why i am trying to automate it:
    -- all rows that are in T1 but not in T2
    (select * from schema.T1minus select * from T2@dblink_name)
    union all
    -- all rows that are in T2 but not in T1
    (select * from T2@dblink_name minus select * from schema.T1);
    I created the db link on a database A and when i run the statement
    (select * from schema.T1minus select * from T2@dblink_name)
    on the database B i get the error ORA-02019: CONNECTION DESCRIPTION FOR REMOTE DATABASE NOT FOUND.
    DOes anybody have an idea please

  • For the same table in the same page, how to use 2 different forms (simple and tabular)?

    Hello! How I can be on the same page with the same table insert and update operations using 2 different forms (single form and tabular form)
    I have little knowledge of Apex, but I know PLSQL
    Thanks
    Ginger
    Ecuador

    Thank you Gramps.  It took some time, but I've got it working now.  I had to re-do all the user authentication actions from scratch for one of the databases, but it's finally behaving itself now.  I appreciate you pointing me in the right direction.

  • Creating view for DataSource from table containing Structures.

    Hello All,
    I need to make a datasource for HR PY master data from a table PA9004(its special for a HR infotype) which needs some fields like PFOBEE(PF-Opening Balance-Ee).
    Field(PFOBEE) is part of a structure(PS0008) which is included in the table PA9004.I tried where-used list for this structure in programs,FuncModules,Tables but got no result of any transparent table.
    To form my Datasource I tried creating the Database view, which had inconsistencies. I tried using the table PA9004, which said "This operation failed, because the template structure quantity fields or currency fields, for example, field PFOBEE refer to a different table."
    Also Projection view cant be used for generic datasources.
    Even Create Infostructure(MC21) does not work for HR: PY-IO.
    All suggestions welcome.Mail me at [email protected]

    Hello All,
    I solved this problem by forming my generic datasource(TCode RSO2) on a Infoset which had the table pa9004. There were some warnings regarding the use of the development class, but finally I had the datasource ready.
    I checked the datasource is working using the RSA3 TCode and the DS is perfectly extracting the data. I replicated this DS in BW server and it appears exactly where I wanted.
    Some colleages had suggested writing a functional module to extract the data, which must be right but I have not tried this option yet.
    Experts may please review my solution and offer tips. I am willing to offer points to anyone offering a more elegant solution.

  • SLT Replication for the same table from Multiple Source Systems

    Hello,
    With HANA 1.0 SP03, it is now possible to connect multiple source systems to the same SLT Replication server and from there on to the same schema in SAP HANA - does this mean same table as well? Or will it be different tables?
    My doubt:
    Consider i am replicating the information from KNA1 from 2 Source Systems - say SourceA and SourceB.
    If I have different records in SourceA.KNA1 and SourceB.KNA1, i believe the records will be added during the replication and as a result, the final table has 2 different records.
    Now, if the same record appears in the KNA1 tables from both the sources, the final table should hold only 1 record.
    Also, if the same Customer's record is posted in both the systems with different values, it should add the records.
    How does HANA have a check in this situation?
    Please throw some light on this.

    Hi Vishal,
    i suggest you to take a look to SAP HANA SPS03 Master Guide. There is a comparison table for the three replication technologies available (see page 25).
    For Multi-System Support, there are these values:
    - Trigger-Based Replication (SLT Replication): Multiple source systems to multiple SAP  HANA instances (one  source system can be connected to one SAP HANA schema only)
    So i think that in your case you should consider BO Data Services (losing real-time analytics capabilities of course).
    Regards
    Leopoldo Capasso

  • Regarding locks in SAP ( concurrent access by two reports for a same table)

    Hi All,
    I have a problem regarding locks. I have designed a report using lock function modules to set locks and release them after the database operations and it works perfectly. There is another report which also does some DB operation on the same table but there are no table locks using enqueue function module implemented in this report and despite of lock set by first report on the table it is able to do the changes on the db table. I need to know how to overcome this problem.
    Thanks for your solutions.
    Regards,
    Sachin

    Sachin Dangayach wrote:
    Hi All,
    >
    > I have a problem regarding locks. I have designed a report using lock function modules to set locks and release them after the database operations and it works perfectly. There is another report which also does some DB operation on the same table but there are no table locks using enqueue function module implemented in this report and despite of lock set by first report on the table it is able to do the changes on the db table. I need to know how to overcome this problem.
    > Thanks for your solutions.
    >
    > Regards,
    > Sachin
    lock procedure requires that all programs involved cooperate. Inconsistencies can occur if a program reads or changes data without having previously locked it. When a lock is set, the data records are only protected against changes by another program if this program also requests a lock before accessing the data.
    Please check the above extract from [SAP help|http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eed9446011d189700000e8322d00/frameset.htm],  to maintain data consistency, it must be ensured that all the programs should lock the data before changing.
    -Rajesh.

  • Comparing same tables from two schemas

    I had already posted a similair thread on this . So, i thought i would start a new thread on this to avoid confusion
    I want to generate a report which will show the difference in data type of columns from same tables in two different schemas.
    The below query using MINUS shows the difference.
    create table SCOTT.mytab1 (empid number);
    create table HR.mytab1 (empid varchar2(34));
    SELECT   table_name, column_name, OWNER schema, data_type
    FROM     dba_tab_cols where owner = 'SCOTT'
    AND TABLE_NAME = 'MYTAB1'
    MINUS
    SELECT   table_name, column_name, OWNER schema, data_type
    FROM     dba_tab_cols where owner = 'HR'
    AND TABLE_NAME = 'MYTAB1'
    Result:
    TABLE_NAME      COLUMN_NAME     SCHEMA     DATA_TYPE
    MYTAB1          EMPID           SCOTT      NUMBERBut , since it is a report, i want to show results form both schemas who has column of different data types with same table names
    Expected output:
    TABLE_NAME      COLUMN_NAME     SCHEMA     DATA_TYPE
    MYTAB1          EMPID           SCOTT      NUMBER
    MYTAB1          EMPID           HR         VARCHAR2Anyway i could achieve this?

    Hello,
    I can explain the analytical part, it is not so hard to understand (at least in this case).
    I've created the tables with 2 columns : EMPID has different datatype, but NAME has the same datatype :
    create table SCOTT.mytab1 (empid number, name varchar2(50));
    create table HR.mytab1 (empid varchar2(34), name varchar2(50));Then I run only the subquery with the analytical part :
        SELECT   OWNER schema,table_name, column_name  , data_type,
        count(*) over (partition by table_name, column_name, data_type) c
        FROM     dba_tab_cols
        where owner in ( 'SCOTT','HR')
        AND TABLE_NAME = 'MYTAB1' ;
    SCHEMA     TABLE_NAME COLUMN_NAME DATA_TYPE           C
    SCOTT      MYTAB1     EMPID       NUMBER              1
    HR         MYTAB1     EMPID       VARCHAR2            1
    SCOTT      MYTAB1     NAME        VARCHAR2            2
    HR         MYTAB1     NAME        VARCHAR2            2This query returns all columns for MYTAB1 in the 2 schemas. The analytical function count how many rows you have for each existing group of TABLE_NAME, COLUMN_NAME, DATA_TYPE, just like a normal count(*) with a GROUP BY, but it does not change the number of rows of the result (unlike the GROUP BY function).
    As you can see in the result above, when you have columns with different datatype, the group appears once, so C=1. When the datatype is the same, the group appears twice, so C=2.
    So I have put a filter on C=1 :
    SELECT * FROM (
        SELECT   table_name, column_name, OWNER schema, data_type,
        count(*) over (partition by table_name, column_name, data_type) c
        FROM     dba_tab_cols
        where owner in ( 'SCOTT','HR')
        AND TABLE_NAME = 'MYTAB1'
    ) WHERE c=1;
    TABLE_NAME COLUMN_NAME SCHEMA     DATA_TYPE           C
    MYTAB1     EMPID       SCOTT      NUMBER              1
    MYTAB1     EMPID       HR         VARCHAR2            1You can do many things with analytical functions, but for beginning with them, you can use them when you need something with a GROUP BY, but you want to keep all rows in the result. You just have to put in the PARTITION BY clause the columns you would have used in the GROUP BY clause.
    I hope I am clear, but if not, do not hesitate to ask for more information.
    Regards,
    Sylvie

  • EJB with same tables names on differents oracle schemas

    Hi,
    I need to deploy 2 ejbs in one database oracle 10g instance with 2 schemas. The 2 EJBs have some tables with the same name.
    When I try to deploy the second EJB (after I deployed successfully the first on the first schema) on the second empty schema, it gives me the following error:
    10:28:27,135 ERROR [SchemaUpdate] Unsuccessful: alter table T_ACTIVITY add constraint FKF970329A403565CA foreign key (LAST_UPDATE_USER_KEY) references T_USER
    10:28:27,135 ERROR [SchemaUpdate] ORA-00942: tabella o vista inesistenteand the table for the second schema is not created.
    This error is repeated for all the tables that have the same name on the first and on the second ejb,
    even if the table exists only on the first schema.
    How can I solve it?
    Thank you in advance.
    Alessandro Rossi

    Thank you so much, I found the solution and I've seen your post at the same time :)
    Specifying the schema attribute on @table annotation all works properly. I thought that the default schema was taken from the user specified on the data source, but obviously this is not enough.
    Alessandro Rossi.

  • Solution Manager key for ERP upgrade for the same system ID on a different

    Hi there,
    We have  migrated our R/3 DEV system (4.7) running on Windows 2003 to 64 bit and copied existing system using system copy for testing ECC 6.0 upgrades. Both the DEV systems, with the same system id, will be available for a short period. However, the new system, which also has same system id i.e DEV is not created in the Solution Manager landscape, as the system id with the same name already exists. Both the systems are created in SLD.
    Can anyone  clarify whether i can create the license key from the existing DEV system and use the same key for upgrade of DEV system running on different server? If not I will have to delete the current DEV system and create new DEV system running on 64 bit.
    Thanks in advance,
    Regards
    Chandu

    Hi,
    You cannot use the old solman key as systems are on different server.
    I think you have to delete the old Dev system and then generate new solman key.
    Thanks
    Sunny

Maybe you are looking for