How to compare the structure of multiple tables... have just TOAD & CAULK

Hello

Several times, I get a request to load the data in the tables of one schema to another. But before doing that I need to compare the structures of tables in the source and target schema.

How can I do? The list of tables to continue to change every now and then. A TOAD there is no option to compare a selected table list. Comparing schemas whole is not an option before me that patterns are too huge and it takes a lot of time to do the level schema comparison.
Note This is a client machine, and we are not allowed to install any s/w.


I'm working on the provision of a unix script that does this for me. But that may take some time given the intense work schedule and my lack of knowledge of unix scripting languages.

Can anyone suggest a way to do it?

Regds,
Malika

I need to compare the structures of tables in the schema source & target.

SELECT THE TABLE TABLE_NAME, COLUMN_NAME, DATA_TYPE, DATA_TYPE_MOD, DATA_TYPE_OWNER, DATA_LENGTH, DATA_PRECISION, DATA_SCALE DBA_TAB_COLUMNS WHERE OWNER = 'SOURCE '.
LESS
SELECT THE TABLE TABLE_NAME, COLUMN_NAME, DATA_TYPE, DATA_TYPE_MOD, DATA_TYPE_OWNER, DATA_LENGTH, DATA_PRECISION, DATA_SCALE DBA_TAB_COLUMNS WHERE OWNER = 'TARGET'
UNION
SELECT THE TABLE TABLE_NAME, COLUMN_NAME, DATA_TYPE, DATA_TYPE_MOD, DATA_TYPE_OWNER, DATA_LENGTH, DATA_PRECISION, DATA_SCALE DBA_TAB_COLUMNS WHERE OWNER = 'TARGET'
LESS
SELECT THE TABLE TABLE_NAME, COLUMN_NAME, DATA_TYPE, DATA_TYPE_MOD, DATA_TYPE_OWNER, DATA_LENGTH, DATA_PRECISION, DATA_SCALE DBA_TAB_COLUMNS WHERE OWNER = 'SOURCE '.

Tags: Database

Similar Questions

  • How to compare the original value of table size and the changed value

    juice I took a table and then took the function of the size of the array so that it shows me the number of the elements present in it. so it'll be the original table size value. If the items in the table even changes another value, then I want to compare the original table size value and the value of table size has changed. How to compare... Please help me. you are looking for a possible solution. Thank you

    Hi stara,

    the attached picture shows the ony solution.

    It will be useful.

    Mike

  • How to integrate the structures of different tables in different databases?

    Hello

    I am new to oracle... well help me with the below question...

    I have the same set of attributes linked together (a, b, c and d) in two different databases A and B.

    The structure of the tables at the same time the database are different, but they carry the same attributes in the same relationship.

    I have to integrate these attributes to object unique db such as any update to the base tables updates my object. How can I do this and what object will be useful?


    Thank you

    Hi Arun,

    Then as you say they are of different databases, we can create a link between the databases and
    can create view based on the Tables.

    (i.e.) if the data in the base table changes the data in the view should also change in real time.

    Arun, of course, the view will also change in real time, because the view is nothing more than a virtual table.

    When you query on a view, he questioned the details of the * "Base Table" * only. If the data will be updated, i.e.
    existing in the Base Table.

    Thank you
    Shankar

  • How to compare the 3 values in table

    Hi all

    This is my first post so be tolerant

    I need to find "bad values" in the table, it will be easier to explain with example:

    I have a table like this: 0 0 0 0 0 0 0 0 5 0 0 0 0<- so="" "5"="" is="" the="" bad="" value,="" my="" method="" is="" to="" check="" two="" of="" nearby="" values="" so="" x(i-1)="0," x(i)="5" x(i+1)="0," and="" if="" checked="" value="" is="" more="" than="" 25%="" bigger="" or="" smaller="" it="" should="" be="" replaced="" by="" average="" of="">

    example: 0 1 2 3 4 9 6 7 8<- bad="" value="" is="" 9,="" and="" result="" of="" my="" filter="" should="" be="" (4+6)/2="">

    I did it using the formula node (not 20% and no way, but the point is the same) and it works but now I want to do without C and I had a lot of problems because of the size of the array memory is 10000.

    I joined thah vi and signal, you can test that it works very well

    Thank you

    Mike

    MeeHow wrote:

    ... What is the problem?

    Because the first incorrect value is the point of 2780, because it is also disabled because the average of neighbour is biased by the incorrect value to 2781.

    You could jut blindly replace all values with the value that has the lowest absolute value among the three points that we have. Here's a quick project, seems pretty good, but it really depends what you want.

  • Rights to the resources on the areas of multiple tables

    Hello
    I'm doing a full import to a database. Before this, I created user accounts. A user has rights to resources on the areas of multiple tables. How to assign multiple tables of user spaces? I have already assigned a temp tablespace and by default.

    Product information:

    Oracle Database 10g Enterprise Edition Release 10.1.0.5.0 - Prod
    PL/SQL Release 10.1.0.5.0 - Production

    Thank you.

    To allocate quotas on tables spaces multiple using ALTER USER statement

    alter user username quota 10M on ts1;
    alter user username quota 10M on ts2;
    

    However, to import database, a user must be granted IMP_FULL_DATABASE

    grant IMP_FULL_DATABASE to username;
    

    With greetings
    Krystian Zieja
    http://www.projectenvision.com

  • How to compare the contents of the cell against a series list range of values?

    Hi all! I really need help.

    I have tried to help myself using the formula of numbers and other discussions Apple guide but do not find a method using the info. Unfortunately, in two days and no work done, I feel rather useless! I read the guides but I can't understand the syntax, or the use, if, AND, OR, etc..

    I have a list of about 800 alphanumeric codes. There are about 80 I want to "stand out". About 30 of them I can isolate content in the adjacent cell, but the other 50 are repeats of the first 30 but are without cells adjacent "filterable" so I can't isolate easily. I thought that I could create a formula that would give rise to 'TRUE' IF (-none of the 30 listed alphanumeric codes appear in column A). Something like:

    = IF (A2 = (AFS4572 OR HFU9372 OR UWK1993 OR EPD5490), "TRUE", "FALSE")

    or written more readable

    = IF (A2 = (AFS4572, HFU9372, UWK1993, EPD5490), 'TRUE', 'FALSE')

    Can someone help me with a formula?

    Or at least some information on:

    (a) how to think straight

    (b) recommend a reasonable way to learn the syntax of the formula numbers?

    Hello

    COUNTIF() would be your friend as shown in column B in the following example. Column C shows how to use the OR() function if you have a particular reason to select.

    For example,.

    Table 1 (excerpt)
    
    A1  code
    A2  HFU9372
    A3  EPD5490
    A4  AFS4572
       
    B1 
    B2  =COUNTIF(CODES::A,A2)>0
    B3  =COUNTIF(CODES::A,A3)>0
    B4  =COUNTIF(CODES::A,A4)>0
       
    C1 
    C2  =OR(A2="AFS4572",A2="HFU9372",A2="UWK1993",A2="EPD5490")
    C3  =OR(A3="AFS4572",A3="HFU9372",A3="UWK1993",A3="EPD5490")
    C4  =OR(A4="AFS4572",A4="HFU9372",A4="UWK1993",A4="EPD5490")
    

    Notes.

    Formula in B2 and C2 can be filled down.

    The table is bulit with numbers v2.

    Kind regards

    H

  • How to compare the 2 versions of the same document in Pages?

    How to compare the 2 versions of the same document on Pages?

    There is no OS X Visual tool which can open two Pages document and show the differences between them - other than the human eye.

    What information are you interested in identify as different between the two documents? What specific version of Pages?

  • How to compare the content of two Wordpad / documents notebook without reading them line by line?

    How to compare the content of two Wordpad / documents notebook without reading them line by line?

    Hello

    Without this feature is included in the operating system.

    However, you can use your favorite search engine to look for software that needs to perform these tasks.

    WARNING of THIRD PARTY SOFTWARE: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Hope this information helps.

  • How to reduce the height of a table which is with PanelCollection and pc will find panelbox and pb is panelgridlayout and pgl is at the center of tableFirstTemplate?

    Mr President.

    How to reduce the height of a table which is with PanelCollection and pc will find panelbox and pb is panelgridlayout and pgl is at the center of tableFirstTemplate?

    Concerning

    Normally at the height of the table control you need property autoheightRows -1 and then set height in the table like this inlinestyle

    height: 300px;

  • How to get the title of a table with FDK?

    How to get the title of a table with ad FDK C++?

    I did people. I get objects table paragraph and later the textual elements for each of them.

  • How to compare the DOF of the OWNER. Table_name two DB in a single query?

    Hello community,

    I am trying to compare the DDL from a table that is located in two databases with the same name and the same pattern:

    select my_files.schema_name || '.' || my_files.table_name as table_name
         , case ( select dbms_lob.compare( dbms_metadata.get_ddl(one.object_type, one.object_name, one.owner)
                                         , dbms_metadata.get_ddl(two.object_type, two.object_name, two.owner)
                                         )
                    from all_objects  one
                       , all_objects@db_link  two
                   where one.object_type = 'TABLE'
                     and one.owner = my_files.schema_name
                     and one.object_name = my_files.table_name
                     and two.object_type = one.object_type
                     and two.owner = one.owner
                     and two.object_name = one.object_name
                )
             when 0 then 'Y'
             else 'N'
           end as ddl_equal_flag
      from my_files;
    

    When I run the query above in SQL Developer, I get results like:

    Table-name DDL_EQUAL_FLAG
    MY_SCHEMA. TABLE_1THERE
    MY_SCHEMA. TABLE_2THERE
    MY_SCHEMA. TABLE_3THERE
    etc.etc.

    But I wonder if it really works... I suspect DBMS_METADATA. GET_DDL returns the DDL of the database where I am connected, regardless of the database link, I used. Is this correct?

    And if so, is there another approach that gives me the expected results?

    Your help is very appreciated!

    Best regards, Yvo

    I would not use DBMS_METADATA, but the DBA_TAB_COLUMNS query directly.

  • HOW TO COMPARE THE REGULAR TEACHER VS VERSIONS?

    HOW TO COMPARE THE REGULAR TEACHER VS VERSIONS?

    Thank you

    An educational version of Photoshop Elements are totally same (feature wise) than the regular commercial versions. So, it is unnecessary to compare.

  • RICs when MergeTable using with the names of multiple tables

    Hello world!

    I just saw, as v11 OWM MergeTable media with the names of multiple tables. As I couldn't find anything in the documentation, here's a question:

    It also means, that RICs are automatically taken into account regarding the order of INSERTS/CHANGES/DELETES?

    That would actually really great and simplify the merge of our application mechanism a lot.

    Kind regards

    Andreas

    Hi Andreas,

    This feature works the same MergeWorkspace, but with a smaller set of tables.  Tables will always be merged into the order of the child table first, then the parent tables.  However, foreign key constraints are not validated until all tables have been merged.  This would prevent a mistake to be triggered when the child table merging before the parent merging table data in the parent workspace.

    Kind regards

    Ben

  • How to compare the new values with the old values in triggers.

    Dear all,

    Please tell me how to compare the new values with the old values in triggers.

    Hi, the employee example is in the document. You'd better read yourself.

    CREATE OR REPLACE TRIGGER Print_salary_changes
      BEFORE DELETE OR INSERT OR UPDATE ON Emp_tab
      FOR EACH ROW
    WHEN (new.Empno > 0)
    DECLARE
        sal_diff number;
    BEGIN
        sal_diff  := :new.sal  - :old.sal;
        dbms_output.put('Old salary: ' || :old.sal);
        dbms_output.put('  New salary: ' || :new.sal);
        dbms_output.put_line('  Difference ' || sal_diff);
    END;
    /
    
  • How to use the Type of Oracle Table values in the Select statement.

    Hello

    I get the initial set of values in the Table of Type Records of the Oracle and want to use the list of values in the Select statement.

    For example, try something like the following:

    TYPE t_record () IS RENDERING
    ID TABLEA.ID%type,
    NO TABLEA.NO%type

    );
    v_record t_record;
    T_table TYPE IS the v_record TABLE % TYPE;
    v_table t_table;

    -Code to fill the values of v_table here.

    SELECT ID, NO, COLLECT in BULK IN < some other table variabes here > FROM TABLEA
    WHERE ID IN (i) v_table USER.USER;

    I want to know how to use the Type of Oracle Table values in the Select statement.

    Something like this:

    create or replace type t_record as  object (
    id number,
    no number
    )
    /
    
    CREATE or replace type t_table AS TABLE OF t_record;
    /
    
    set serveroutput on
    declare
    
      v_table t_table := t_table();
      v_t1 t_table := t_table();
    
    begin
    
      v_table.extend(1);
      v_table(1).ID := 1;
      v_table(1).No := 10;
    
      v_table.extend(1);
      v_table(2).ID := 2;
      v_table(2).ID := 20;
    
      SELEC t_record (ID,NO) BULK COLLECT INTO v_t1
      from TableA
      FROM TABLEA
      WHERE ID IN (select t.ID from table(v_Table) t);
    
      for i in 1..v_t1.count loop
        dbms_output.put_line(v_t1(i).ID);
        dbms_output.put_line(v_t1(i).No);
      end loop;
    end;
    /
    

    No test!

    P;

    Published by: bluefrog on March 5, 2010 17:08

Maybe you are looking for

  • What is tha giving version of Firefox compatile with MAC OS 10.4.11

    When I load the latest version of firefox supposidly compatible with my calculation I get a message, it is not compatible and should I dowm load the latest version tha it is compatible with my system, 10.4.11 running on a 5 G machine based. INTELL NO

  • Adding a radio station as identified in windows media

    Hello I find it really frustrating with Microsoft because they don't publish easy guides... which are easy to find on what should be simple subjects. I recently split to a radio station who was listed in the radio on windows media guide section. I am

  • Unable to connect to the profile

    I am the administrator on my computer.  When I try to log on to my profile, there is an error message that it could not load my profile.  The password that I entered IS correct.  I can't connect to the profile of my husband very well, but it doesn't

  • Acquisition of software disks

    I bought a Toshiba laptop through my former employer.  After I left the company, I found that they did not provide records of software to me, that I bought with the laptop.  Now, nobody seems to know where are my records of software.  My certificate

  • Pure install Windows8 on Dell XPS one 27

    Hey there I buy a Dell XPS 27 last week, unfortunately it is installed with a windows 7. When I try to install Windows 8 Pro I can not find any hard disk-> RAID is installed in cache Mode with the mSata card. Which driver should I use to do the 2 TB